From 5d106954776514c0f6d44b9e87fe557fb8350403 Mon Sep 17 00:00:00 2001 From: YdrMaster Date: Mon, 22 Jul 2024 11:23:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(exercise):=20=E6=94=B9=E6=AD=A3=2029?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: YdrMaster --- exercises/29_std_accumulate/main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/exercises/29_std_accumulate/main.cpp b/exercises/29_std_accumulate/main.cpp index 7d9a8da7..6326929d 100644 --- a/exercises/29_std_accumulate/main.cpp +++ b/exercises/29_std_accumulate/main.cpp @@ -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; }