Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
tiling 侧 CheckY 校验存在缺陷:Y_INDEX 对应的是输出张量 y,但代码误用 GetInputDesc(Y_INDEX) 读取其描述符,实际取到的是输入 x 的描述符,导致「y dtype 必须与 x 相同」的校验条件恒真、不可达。当调用方传入与 x dtype 不一致的输出张量时,校验不会触发,存在按错误 dtype 解释/写入数据的风险。
-硬件型号Ascend950
将 arch35 tiling 路径中 CheckY 的 GetInputDesc(Y_INDEX) 改为 GetOutputDesc(Y_INDEX),使用正确的符号校验
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),使用正确的符号校验
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
tiling 侧 CheckY 校验存在缺陷:Y_INDEX 对应的是输出张量 y,但代码误用 GetInputDesc(Y_INDEX) 读取其描述符,实际取到的是输入 x 的描述符,导致「y dtype 必须与 x 相同」的校验条件恒真、不可达。当调用方传入与 x dtype 不一致的输出张量时,校验不会触发,存在按错误 dtype 解释/写入数据的风险。
Special notes for this issue/备注 (Optional / 选填)