已关闭
[Bug-Report]: quick_start/first_custom_operator 结构体名称与核函数示例不一致 #375
daishuangshuang创建于  7月31日关闭于  29 天前
daishuangshuang
7月31日 创建

类型: Bug-Report

一、问题描述

quick_start/first_custom_operator 入门教程中正文描述的结构体命名与实际代码定义不一致,示例核函数名与参数个数也与实际实现不符,会误导初学者。

二、问题位置

编号 文件:位置 问题
#8 first_custom_operator/first_custom_operator.ipynb cell d0f9d053(3.3) 正文称 tiling 结构体命名为 AddTilingData,但实际代码(cell e988cab4)定义为 struct AddCustomTilingData,名称不一致
#9 同上 cell 3fde0fb4(4.1) 正文示例核函数名为 add_custom 且示例调用传 3 参 add_custom<<<8, nullptr, stream>>>(x, y, z),而实际核函数(cell 9e2534e9)名为 add、传 4 参(含 tiling),示例与实现不一致

三、修复建议

  1. 正文结构体名改为 AddCustomTilingData,或代码改名为 AddTilingData,保持一致;
  2. 示例核函数名与参数个数对齐实际实现(add + 4 参)。
likedislike
ink_polymer
ink_polymer成员
7月31日 评论:

尊敬的开发者您好,您的建议已收到,待内部评估后反馈,感谢您的支持

likedislike
ink_polymerink_polymer成员
7月31日 将 waimaidaole 设为负责人
Ddaishuangshuang
8月4日 issue类型由 任务 改变为 缺陷
ink_polymerink_polymer成员
8月6日 关联了pull request:fix: 修正first_custom_operator教程中核函数名与参数个数不一致
ink_polymer
ink_polymer成员
8月7日 评论:

尊敬的开发者您好,您提出的问题目前已经解决,该issue即将关闭,若后续还有问题欢迎通过issue与我们交流

likedislike
ink_polymerink_polymer成员
8月7日 issue状态由 待办的 改变为 已确认
Ddaishuangshuang
29 天前 关闭了 issue
Ddaishuangshuang
29 天前 issue状态由 已确认 改变为 已完成
CANN-robotCANN-robot成员
29 天前 添加了label:resolved