已关闭
[Bug-Report|缺陷反馈]: DynamicBlockQuant算子存在codecheck问题 #1436
wuchengming创建于  3月12日关闭于  3月13日
wuchengming
3月12日 创建

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

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

DynamicBlockQuant算子存在一些codecheck问题,比如存在魔鬼数字、多余空行等问题

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

Ascend950

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

通过codecheck检查工具检查

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

算子内无codecheck问题

G.CNS.02-CPP 不要使用难以理解的字面常量 Do not use magic numbers.The number is 2 ops/ops-nn/quant/dynamic_block_quant/op_host/dynamic_block_quant_tiling.cpp if (xShape.GetDimNum() == 2) { 287 codecheck_ascend_nocom_cpp_codeck
G.CNS.02-CPP 不要使用难以理解的字面常量 Do not use magic numbers.The number is 2 ops/ops-nn/quant/dynamic_block_quant/op_host/dynamic_block_quant_tiling.cpp tilingParam.colNum = xShape.GetDim(2); 295 codecheck_ascend_nocom_cpp_codeck
G.CNS.02-CPP 不要使用难以理解的字面常量 Do not use magic numbers.The number is 3 ops/ops-nn/quant/dynamic_block_quant/op_host/dynamic_block_quant_tiling.cpp } else if (xShape.GetDimNum() == 3) { 243 codecheck_ascend_nocom_cpp_codeck
G.CNS.02-CPP 不要使用难以理解的字面常量 Do not use magic numbers.The number is 2 ops/ops-nn/quant/dynamic_block_quant/op_host/dynamic_block_quant_tiling.cpp if (xShape.GetDimNum() == 2) { 232 codecheck_ascend_nocom_cpp_codeck

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

likedislike
Wwuchengming
3月12日 添加了label:bug-report
wuchengming
3月12日 评论:

/assign

likedislike
CANN-robotCANN-robot成员
3月12日 将 wuchengming123 设为负责人
Wwuchengming
3月12日 关联了pull request:DynamicBlockQuant代码codecheck问题解决
CANN-robotCANN-robot成员
3月13日 关闭了 issue
CANN-robotCANN-robot成员
3月20日 添加了label:resolved