已开启
[Documentation|文档反馈]: 【开发者成长计划】04.03 练习 host 侧 %%writefile 内容为空 #688
Glenn创建于  13 天前
Glenn
Glenn
13 天前 创建

一、文档链接 (必填)

https://gitcode.com/cann/cann-learning-hub/blob/master/tutorials/ascendc_operator_development/04_matmul_basic/04.03_matrix_multiplication_operator_development_with_high_level_api.ipynb (cell 44)

二、问题文档片段 (必填)

cell 44 内容仅有一行:
%%writefile Sources/04.03/custom_op/op_host/matmul_custom.cpp
(下面没有任何文件内容)

image.png

三、存在的问题 (选填)

问题概述:04.03「课后实践」中 host 侧的 %%writefile cell(cell 44)只有一行文件名,没有任何文件内容,运行该 cell 只会写出一个空的 matmul_custom.cpp,后续编译必然失败。

具体分析:

  1. cell 44 的内容只有 %%writefile Sources/04.03/custom_op/op_host/matmul_custom.cpp 一行,下面完全为空;练习说明要求「参照课程中 MatmulCustom 的 host 侧实现,修改如下代码」,但「如下代码」并不存在。

  2. 相邻的 tiling.h cell 与 kernel 侧 cell 都给出了可修改的代码骨架,唯独 host 侧为空,前后不一致;与其他章节「留空待补 + 注释提示」的做法也不一致。

  3. 学员按顺序运行该 cell 会覆盖/写出空的 host 源文件,编译时报错,且没有任何提示说明应该从哪里获取参考实现。

建议:为 cell 44 补上带 TODO 注释的 host 侧代码骨架(与 tiling/kernel cell 保持一致),或在 markdown 中明确指向 answer 目录下的参考实现文件。

likedislike
GlennGlenn
13 天前 修改了issue 的描述
Glenn
Glenn
13 天前 评论:

/assign @Glenn_118

likedislike
CANN-robotCANN-robot成员
13 天前 将 Glenn_118 设为负责人
ink_polymerink_polymer成员
12 天前 添加了label:good-first-issue