Closed
[Bug-Report|缺陷反馈]: clipped_swiglu算子tiling侧y dtype校验失效 #6235
wkx12138Add on  Sep 28Closed at  Sep 29
wkx12138
wkx12138Collaborators
Sep 28 Create

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

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

tiling 侧 CheckY 校验存在缺陷:Y_INDEX 对应的是输出张量 y,但代码误用 GetInputDesc(Y_INDEX) 读取其描述符,实际取到的是输入 x 的描述符,导致「y dtype 必须与 x 相同」的校验条件恒真、不可达。当调用方传入与 x dtype 不一致的输出张量时,校验不会触发,存在按错误 dtype 解释/写入数据的风险。

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

-硬件型号Ascend950

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

tiling 侧 CheckY 校验存在缺陷:Y_INDEX 对应的是输出张量 y,但代码误用 GetInputDesc(Y_INDEX) 读取其描述符,实际取到的是输入 x 的描述符,导致「y dtype 必须与 x 相同」的校验条件恒真、不可达。当调用方传入与 x dtype 不一致的输出张量时,校验不会触发,存在按错误 dtype 解释/写入数据的风险。

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

将 arch35 tiling 路径中 CheckY 的 GetInputDesc(Y_INDEX) 改为 GetOutputDesc(Y_INDEX),使用正确的符号校验

tiling 侧 CheckY 校验存在缺陷:Y_INDEX 对应的是输出张量 y,但代码误用 GetInputDesc(Y_INDEX) 读取其描述符,实际取到的是输入 x 的描述符,导致「y dtype 必须与 x 相同」的校验条件恒真、不可达。当调用方传入与 x dtype 不一致的输出张量时,校验不会触发,存在按错误 dtype 解释/写入数据的风险。

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

likedislike
wkx12138wkx12138Collaborators
Sep 28 Added label: bug-report
wkx12138wkx12138Collaborators
Sep 28 Assign wkx12138 as responsible person
CANN-robotCANN-robotCollaborators
Sep 29 Close issue
CANN-robotCANN-robotCollaborators
Sep 29 Added label: resolved