Closed
[Bug-Report|缺陷反馈]: 转置卷积 L0 路由 dtype 不支持时误用 ACLNN_ERR_INNER_NULLPTR 错误码(5 处) #6163
OpenGood_WeChatAdd on Sep 23Closed at Sep 28
yuning_chen
Sep 23 Comments:
Sep 23 Comments:
Sep 23 Assign huafeng793 as responsible person
Sep 28 Associated pull request
Sep 28 Close issue
Sep 28 Added label: resolved


Describe the current behavior / 问题描述 (Mandatory / 必填)
conv/convolution_forward/op_host/op_api/aclnn_convolution.cpp 的
RegisterTransposedConvL0Functions内 5 处 dtype 校验使用错误错误码:CHECK_RET(!CheckUnSupportDtype(input, weight), ACLNN_ERR_INNER_NULLPTR);CheckUnSupportDtype(matmul/common/op_host/op_api/cube_util.cpp:60)在 input/weight 的 HIFLOAT8 设置不匹配时返回 true,属于"参数数据类型不支持"场景,但此时接口返回ACLNN_ERR_INNER_NULLPTR(内部空指针错误码),且该函数内部日志使用ACLNN_ERR_RUNTIME_ERROR——三者语义均不符,会误导用户按空指针/运行时问题排查。Environment Information / 环境信息 (Mandatory / 必填)
仓库:cann/ops-nn(master 最新,代码静态检查确认)
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
代码检视类缺陷,可直接从源码以下 文件:行号 确认:
Describe the expected behavior / 预期结果 (Mandatory / 必填)
dtype 校验失败应返回
ACLNN_ERR_PARAM_INVALID,与仓库既有惯例一致(参考 conv/convolution_backward/op_api/convolution_backward_checker.cpp:951-969 对 dtype 校验的处理);CheckUnSupportDtype内部日志同步修正。同款错误码误用在 cann/ops-math #2967(cdist)已被确认修复。Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
无
Special notes for this issue/备注 (Optional / 选填)
仅影响报错语义与可排查性,不影响正确路径功能。