已关闭
[Bug-Report|缺陷反馈]: 解决代码code_check告警问题 #1244
chenfeng创建于  3月2日关闭于  3月2日
chenfeng
chenfeng成员
3月2日 创建

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

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

kl_div_loss_grad, l1_loss_grad, mse_loss_grad, smooth_l1_loss_grad_v2,存在以下问题需整改
1.不要使用难以理解的字面常量
2.禁止包含用不到的头文件
3.头文件中禁止向全局命名空间中导入符号
4.避免使用reinterpret_cast

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

arch3510

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

代码存在一些code_check问题,整改

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

无code_check问题

using namespace Ops::Base; 等不规范代码

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

likedislike
chenfeng
chenfeng成员
3月2日 评论:

/assign

likedislike
CANN-robotCANN-robot成员
3月2日 将 chenfeng61 设为负责人
CANN-robotCANN-robot成员
3月2日 关闭了 issue
CANN-robotCANN-robot成员
3月20日 添加了label:resolved