已关闭
[Bug-Report|缺陷反馈]: UnsortedSegmentProd算子空Tensor用例精度问题 #6436
zhangxiyan7创建于  9 天前关闭于  8 天前
zhangxiyan7
zhangxiyan7成员
9 天前 创建

Describe the current behavior / 问题描述 (Mandatory / 必填)

用例规格空Tensor时, UnsortedSegmentProdOutFlTiling::IsCapable直接返回true, 绕过了OutFl模板的dtype支持性检查。当x为uint64/uint32/int64等OutFl不支持的dtype时, KernelOutFlDispatch的if constexpr分支直接return, 连输出初始化(填乘法单位元1)都不执行, 导致空Tensor用例输出全0。

Environment Information / 环境信息 (Mandatory / 必填)

Ascend 950

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

上述环境下执行问题用例即可复现

Describe the expected behavior / 预期结果 (Mandatory / 必填)

用例精度pass

用例精度执行情况如下:


  • DiffThd PctThd PctRlt Result

  • 0.0010 99.77% 0.000000% Failed
  • Max-RelativeError is: 1.0. Threshold is: 999999.0.

Special notes for this issue/备注 (Optional / 选填)

likedislike
zhangxiyan7zhangxiyan7成员
9 天前 添加了label:bug-report
yuning_chenyuning_chen成员
9 天前 将 zhangxiyan7 设为负责人
yuning_chen
yuning_chen成员
9 天前 评论:

初步分析

感谢反馈,我们已开始核对这个问题。

现象理解:UnsortedSegmentProd 在空 Tensor 且 dtype 不被 OutFl 支持时,可能跳过输出初始化,结果全是 0,而乘法单位元应为 1。
当前判断:初步判断,待复现确认。空 Tensor 绕过 dtype 检查的可能性存在,需按 Ascend 950 上的空 Tensor 用例复核。
涉及范围:UnsortedSegmentProd 的 OutFl tiling 与空 Tensor 输出初始化。
下一步:我们会核对空 Tensor 分支是否仍直接返回,并评估补上初始化或 dtype 检查。

likedislike
zhangxiyan7zhangxiyan7成员
9 天前 关联了pull request:修复UnsortedSegmentProd算子空Tensor用例精度问题
zhangxiyan7zhangxiyan7成员
9 天前 关联了pull request:修复UnsortedSegmentProd算子空Tensor用例精度问题
CANN-robotCANN-robot成员
8 天前 关闭了 issue
CANN-robotCANN-robot成员
8 天前 添加了label:resolved