We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc36a80 commit 5d10695Copy full SHA for 5d10695
exercises/29_std_accumulate/main.cpp
@@ -6,8 +6,12 @@
6
int main(int argc, char **argv) {
7
using DataType = float;
8
int shape[]{1, 3, 224, 224};
9
- // TODO: 调用 `std::accumulate` 计算 `shape` 的元素之积
+ // TODO: 调用 `std::accumulate` 计算:
10
+ // - 数据类型为 float;
11
+ // - 形状为 shape;
12
+ // - 连续存储;
13
+ // 的张量占用的字节数
14
// int size =
- ASSERT(size = 602112, "4x1x3x224x224 = 602112");
15
+ ASSERT(size == 602112, "4x1x3x224x224 = 602112");
16
return 0;
17
}
0 commit comments