已关闭
[Bug-Report|缺陷反馈]: AddRmsNormCast DAV_3510空归约场景被误判为输入shape非法 #5870
liangyuhua创建于 28 天前关闭于 25 天前
28 天前 添加了label:bug-report
28 天前 将 liangyuhua 设为负责人
28 天前 修改标题为 “[Bug-Report|缺陷反馈]: AddRmsNormCast DAV_3510空归约场景被误判为输入shape非法”,原标题为“[Bug-Report|缺陷反馈]: AddRmsNormCast A5空归约场景被误判为输入shape非法”
28 天前 修改标题为 “[Bug-Report|缺陷反馈]: AddRmsNormCast DAV_3510空归约场景被误判为输入shape非法”,原标题为“[Bug-Report|缺陷反馈]: AddRmsNormCast A5空归约场景被误判为输入shape非法”
28 天前 修改了issue 的描述
25 天前 关闭了 issue
25 天前 添加了label:resolved
Describe the current behavior / 问题描述
AddRmsNormCast 输入
x1=(4,0)、x2=(4,0)、gamma=(0)时,InferShape 正确推导rstdOut=(4,1)。该输入对应非 Norm 维度元素总数大于 0、Norm 维度元素总数为 0。DAV_3510 当前尚未支持该执行场景,但公共 tiling 校验将其误判为
x1为空而rstdOut非空的非法输入 shape,错误原因与实际能力限制不一致。Environment Information / 环境信息
Steps to reproduce the issue / 重现步骤
x1shape 为(4,0)。x2shape 为(4,0)。gammashape 为(0)。rstdOut=(4,1)。Describe the expected behavior / 预期结果
rstdOut=(4,1)。x1 shape size == 0 && rstdOut shape size > 0识别该场景,报告“非 Norm 维度元素总数大于 0、Norm 维度元素总数为 0”的场景当前不支持,而不是报告输入 shape 非法。rstdOut为空时仍沿用原公共校验,因此合法推导下numM == 0的原有行为不变。Related log / screenshot / 日志 / 截图
修改前错误信息:
When x1 shape size is 0, rstd shape size should be 0 too修改后的能力限制信息:
The empty tensor case where the non-Norm dimension element count is greater than 0 and the Norm dimension element count is 0 is currently not supported.Special notes for this issue / 备注
本问题仅修正 DAV_3510 tiling 校验语义,不实现空归约 kernel,不改变
numM == 0场景及 A2/A3 行为。关联 PR:https://gitcode.com/cann/ops-nn/merge_requests/10476