Closed
[Bug-Report|缺陷反馈]: attention算子EZ错误码需要修改 #6443
王云飞Add on Oct 21Closed at 26 days ago
Oct 21 Added label: bug-report
周云飞
Oct 21 Comments:
Oct 21 Comments:
/assign @mirror-center


Oct 21 Assign mirror-center as responsible person
周云飞
Oct 21 Comments:
Oct 21 Comments:
您好,感谢反馈!您提到的错误码分类问题会影响故障定位:如果用户输入不合法、Host/Tiling 处理失败和真正的内部故障都使用同类 EZ 错误码,使用者就难以判断应调整输入还是排查实现。不过,当前缺少具体报错分支,尚不能确认受影响的算子范围及对应错误码是否使用不当。
一个可行的处理方向是按失败原因梳理错误码,而不是仅按 Host/Tiling 所在阶段分类:输入不满足接口约束时,应使用对应的参数错误类别;Host/Tiling 阶段的失败则需进一步区分输入约束、支持范围与内部异常。同时,需要分别核对日志中的 EZ 错误码、内部函数返回值和公开接口返回码,避免只修改日志而未保持错误信息一致。具体分类仍需以现有错误码规范为准,并评估调用方对原错误码的依赖。
请补充一个代表性案例,包含算子名称、使用的 CANN 版本,以及完整 EZ 错误码和对应报错信息;如已定位到源码分支,也可提供链接。这些信息可用于确认分类不当的具体位置及其对外表现。


26 days ago Close issue
26 days ago Added label: resolved
Describe the current behavior / 问题描述 (Mandatory / 必填)
当前内部错误码存在滥用问题,当前同时承载用户输入错误、Host/Tiling 错误和真正内部故障,需要整改清晰化。
Environment Information / 环境信息 (Mandatory / 必填)
无
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
无
Describe the expected behavior / 预期结果 (Mandatory / 必填)
无
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
无
Special notes for this issue/备注 (Optional / 选填)