已关闭
[Bug-Report|缺陷反馈]: aclnnGroupedQuantMax roundMode 空指针返回码不规范 #5375
majinglan创建于 7 天前关闭于 5 天前
majinglan
7 天前 评论:
7 天前 评论:
7 天前 将 guoxu7 设为负责人
yuning_chen
7 天前 评论:
7 天前 评论:
您好,感谢反馈,问题已收到,当前 @guoxu7 正在跟踪处理。


5 天前 关闭了 issue
5 天前 添加了label:resolved
您好,感谢反馈,问题已收到,当前 @guoxu7 正在跟踪处理。


Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
aclnnGroupedQuantMaxGetWorkspaceSize 的 const char* roundMode 判空失败返回 ACLNN_ERR_PARAM_INVALID(161002)而非 161001。
复现步骤
$BIN --gtest_filter="l2_grouped_quant_max_nullptr_test.grouped_quant_max_nullptr_test_roundmode_nullptr"
退出码 1(期望 161001,实际 161002)
错误码对照
参数 期望 实测
roundMode = nullptr 161001 161002 (ACLNN_ERR_PARAM_INVALID)
缺陷点
文件:quant/grouped_quant_max/op_api/aclnn_grouped_quant_max.cpp
行号::147-149
if (roundMode == nullptr) {
OP_LOGE_FOR_INVALID_VALUE_WITH_REASON(kOpName, "roundMode", "nullptr", "...");
return ACLNN_ERR_PARAM_INVALID; // 应为 ACLNN_ERR_PARAM_NULLPTR
}
修复建议
将 :149 的 ACLNN_ERR_PARAM_INVALID 改为 ACLNN_ERR_PARAM_NULLPTR。建议与 Issue 3 一并修复(同模式系统性问题)。
复现材料
用例:quant/grouped_quant_max/tests/ut/op_api/test_aclnn_grouped_quant_max_nullptr_check.cpp
日志:/opt/mjl/exp0829/ops-nn/nullptr_audit/logs/l2_grouped_quant_max_nullptr_test.log
一键复现:bash /opt/mjl/exp0829/ops-nn/nullptr_audit/repro.sh --case=4
Environment / 环境信息 (Mandatory / 必填)
见问题描述和评论附件
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
见问题描述和评论附件
Describe the expected behavior / 预期结果 (Mandatory / 必填)
见问题描述和评论附件
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
见问题描述和评论附件
Special notes for this issue/备注 (Optional / 选填)