Skip to content

Commit 5d10695

Browse files
committed
fix(exercise): 改正 29
Signed-off-by: YdrMaster <[email protected]>
1 parent dc36a80 commit 5d10695

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

exercises/29_std_accumulate/main.cpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@
66
int main(int argc, char **argv) {
77
using DataType = float;
88
int shape[]{1, 3, 224, 224};
9-
// TODO: 调用 `std::accumulate` 计算 `shape` 的元素之积
9+
// TODO: 调用 `std::accumulate` 计算:
10+
// - 数据类型为 float;
11+
// - 形状为 shape;
12+
// - 连续存储;
13+
// 的张量占用的字节数
1014
// int size =
11-
ASSERT(size = 602112, "4x1x3x224x224 = 602112");
15+
ASSERT(size == 602112, "4x1x3x224x224 = 602112");
1216
return 0;
1317
}

0 commit comments

Comments
 (0)