Closed
[Documentation|文档反馈]: IndexFillD Proto 文档遗漏 BOOL 类型 #8456
KaranocaVeAdd on  12 days agoClosed at  12 days ago
KaranocaVe
KaranocaVe
12 days ago Create

IndexFillD Proto 文档遗漏 BOOL 类型

固定源码 cann/ops-nn@ae873b119fb5499c41a6893f920171551fb0a197 中,IndexFillD 的 proto 注释对 x、assist1、assist2 均只列出 float16、float32、int32、bfloat16,未列出 BOOL;同一 REG_OP 注册却将 DT_BOOL 纳入三个输入和输出的类型集合。因此从 proto 注释生成的算子文档会低报 BOOL 支持范围。
实现也包含 BOOL 路径:Host OpDef 将 DT_BOOL 加入所有端口类型;tiling 将其按 1 字节元素处理;kernel 对 bool 实例使用 int8 类型运行;ACLNN 910B 类型白名单包含 DT_BOOL。已有 IndexFillD API UT 分别以 BOOL 输入覆盖有输出和原地两个调用,GetWorkspaceSize 预期成功。
修复仅在 proto 注释中为上述三个输入的类型列表补上 bool,不改变注册或执行逻辑。
证据等级:E2。proto 注册、Host 注册、tiling/kernel 分支和现有 API UT 相互印证。

关联 PR: https://gitcode.com/cann/ops-nn/merge_requests/14022

likedislike
KaranocaVeKaranocaVe
12 days ago Modify description of issue
KaranocaVeKaranocaVe
12 days ago Associated pull request
yuning_chenyuning_chenCollaborators
12 days ago Assign KaranocaVe as responsible person
CANN-robotCANN-robotCollaborators
12 days ago Close issue
CANN-robotCANN-robotCollaborators
12 days ago changed custom state from 待办的 to 已完成
CANN-robotCANN-robotCollaborators
12 days ago Added label: resolved
chenjiayi_chenjiayi_Collaborators
2 days ago changed custom category from 任务 to 文档
chenjiayi_chenjiayi_Collaborators
2 days ago Change title to "[Documentation|文档反馈]: IndexFillD Proto 文档遗漏 BOOL 类型", originally titled "IndexFillD Proto 文档遗漏 BOOL 类型".
chenjiayi_chenjiayi_Collaborators
2 days ago Added label: documentation