已关闭
[Bug-Report|缺陷反馈]: RmsNormQuantV2 tiling 越界读取未注册的 output_rstd 属性 #5652
raoliang_sac创建于  7 天前关闭于  7 天前
raoliang_sac成员
7 天前 创建

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

RmsNormQuantV2 与 RmsNormQuantV3 共用 RegBase tiling 实现。RmsNormQuantV2 仅注册 epsilondiv_modedst_type 三个属性,但共享 tiling 此前会无条件读取索引 3 的 output_rstd,产生属性索引越界的 GE ERROR 日志。由于接口返回空指针并回退,当前计算仍可完成,rstdFlag 保持为 0。

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

  • 硬件:Ascend 950
  • 软件:CANN 9.2.0
  • 模块:norm/rms_norm_quant_v2 RegBase host tiling

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

  1. 在 Ascend 950 环境调用 ACLNN 接口 aclnnRmsNormQuant,进入 RmsNormQuantV2 tiling。
  2. V2 的属性数量为 3。
  3. 共享 tiling 调用 attrs->GetBool(3) 读取未注册的 output_rstd
  4. 查看 debug plog,可观察到属性索引越界错误。

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

RmsNormQuantV2 不应读取未注册的 output_rstd 属性,也不应产生属性索引越界日志;rstdFlag 应保持为 0。RmsNormQuantV3 的 output_rstd=true/false 行为应保持不变。

GetPointerByIndex: index 3 out of range 3

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

修复仅调整 host tiling 的属性访问边界,未修改 ACLNN、PTA 或 Kernel 计算逻辑。

关联 PR:https://gitcode.com/cann/ops-nn/pull/10023

likedislike
Rraoliang_sac成员
7 天前 添加了label:bug-report
raoliang_sac成员
7 天前 评论:

/assign @raoliang_sac

likedislike
CANN-robotCANN-robot成员
7 天前 将 raoliang_sac 设为负责人
CANN-robotCANN-robot成员
7 天前 关闭了 issue
CANN-robotCANN-robot成员
7 天前 添加了label:resolved