已关闭
[Documentation|缺陷反馈]: ops-nn index 目录多算子 README 产品支持声明与 def AddConfig 注册不一致 #4504
daishuangshuang创建于  8月3日关闭于  8月4日
daishuangshuang
8月3日 创建

一、问题描述(必填)

ops-nn 仓库 index/ 目录下 15 个算子的 README.md「产品支持情况」表声明支持 Ascend 950 之外的多个产品(Atlas A3/A2/Atlas推理/Atlas训练等),但对应 op_host/*_def.cppAICore().AddConfig(...) 仅注册了 ascend950 单个 soc,文档与代码不一致。用户按 README 在 A2/A3 等产品上调用时会发现算子未适配,影响可用性判断。

产品名与 soc 对应:Ascend 950→ascend950、Atlas A3→ascend910_93、Atlas A2→ascend910b、Atlas 200I/500 A2→ascend310p、Atlas 推理→ascend310、Atlas 训练→ascend910。

二、问题清单(共 15 个算子)

序号 算子 README 声明支持(√)产品 def AddConfig 注册 def 位置
1 index 950/A3/A2/200I推理/推理/训练(6) 仅 ascend950 index/op_host/index_def.cpp:67
2 gather_v2 950/A3/A2/200I推理/推理/训练(6) 仅 ascend950 gather_v2/op_host/gather_v2_def.cpp:202
3 data_format_dim_map 950/A3/A2/推理/训练(5) 仅 ascend950 data_format_dim_map/op_host/data_format_dim_map_def.cpp:43
4 non_zero 950/A3/A2/推理/训练(5) 仅 ascend950 non_zero/op_host/non_zero_def.cpp:58
5 embedding_dense_grad 950/A3/A2/训练(4) 仅 ascend950 embedding_dense_grad/op_host/embedding_dense_grad_def.cpp:54
6 gather_elements 950/A3/A2/训练(4) 仅 ascend950 gather_elements/op_host/gather_elements_def.cpp:88
7 index_put_v2 950/A3/A2/训练(4) 仅 ascend950 index_put_v2/op_host/index_put_v2_def.cpp:64
8 quant_update_scatter 950/A3/A2/推理(4) 仅 ascend950 quant_update_scatter/op_host/quant_update_scatter_def.cpp:108
9 scatter 950/A3/A2/训练(4) 仅 ascend950 scatter/op_host/scatter_def.cpp:63
10 gather_nd 950/A3/A2(3) 仅 ascend950 gather_nd/op_host/gather_nd_def.cpp:87
11 index_fill_d 950/A3/A2(3) 仅 ascend950 index_fill_d/op_host/index_fill_d_def.cpp:41
12 scatter_add 950/A3/A2(3) 仅 ascend950 scatter_add/op_host/scatter_add_def.cpp:68
13 scatter_elements 950/A3/A2(3) 仅 ascend950 scatter_elements/op_host/scatter_elements_def.cpp:76
14 scatter_nd 950/A3/A2(3) 仅 ascend950 scatter_nd/op_host/scatter_nd_def.cpp:68
15 unique_consecutive 950/A3/A2(3) 仅 ascend950 unique_consecutive/op_host/unique_consecutive_def.cpp:95

README 产品支持表位置:各算子 README.md 第 7-12 行(6 个产品行)。

三、证据示例

index 为例。

README(index/README.md:7-12)声明全部 6 个产品支持:

| <term>Ascend 950PR/Ascend 950DT</term>                             |    √     |
| <term>Atlas A3 训练系列产品/Atlas A3 推理系列产品</term>     |    √     |
| <term>Atlas A2 训练系列产品/Atlas A2 推理系列产品</term> |    √     |
| <term>Atlas 200I/500 A2 推理产品</term>                      |    √     |
| <term>Atlas 推理系列产品</term>                             |    √     |
| <term>Atlas 训练系列产品</term>                              |    √     |

def(index/op_host/index_def.cpp:67)仅注册 ascend950:

this->AICore().AddConfig("ascend950", aicore_config);
likedislike
Ddaishuangshuang
8月3日 修改了issue 的描述
Ddaishuangshuang
8月3日 issue类型由 任务 改变为 缺陷
yuning_chenyuning_chen成员
8月3日 将 sreofwiseone 设为负责人
yuning_chen
yuning_chen成员
8月3日 评论:

您好,感谢反馈,问题已收到,当前 @chenxingyu18 正在跟踪处理。

likedislike
yuning_chen
yuning_chen成员
8月3日 评论:

/assign @chenxingyu18

likedislike
CANN-robotCANN-robot成员
8月3日 将 chenxingyu18 设为负责人,移除负责人 sreofwiseone
Cchenxingyu18成员
8月3日 关联了pull request:docs(index): 修正 15 个算子 README 产品支持声明与 ascend950 注册一致 (#4504)
CANN-robotCANN-robot成员
8月4日 关闭了 issue
CANN-robotCANN-robot成员
8月4日 添加了label:resolved
Ddaishuangshuang
8月4日 issue状态由 待办的 改变为 已完成
CANN-robotCANN-robot成员
8月4日 添加了label:Accepted