Skip to content

Commit

Permalink
fix(exercise): 改正 29
Browse files Browse the repository at this point in the history
Signed-off-by: YdrMaster <[email protected]>
  • Loading branch information
YdrMaster committed Jul 22, 2024
1 parent dc36a80 commit 5d10695
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions exercises/29_std_accumulate/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@
int main(int argc, char **argv) {
using DataType = float;
int shape[]{1, 3, 224, 224};
// TODO: 调用 `std::accumulate` 计算 `shape` 的元素之积
// TODO: 调用 `std::accumulate` 计算:
// - 数据类型为 float;
// - 形状为 shape;
// - 连续存储;
// 的张量占用的字节数
// int size =
ASSERT(size = 602112, "4x1x3x224x224 = 602112");
ASSERT(size == 602112, "4x1x3x224x224 = 602112");
return 0;
}

0 comments on commit 5d10695

Please sign in to comment.