已关闭
[CleanCode] 修复 AICPU 代码规范告警 #3237
ayuemoon创建于  11 天前关闭于  11 天前
ayuemoon
ayuemoon
11 天前 创建

一、问题描述(必填)

部分 AICPU 实现存在虚析构函数缺少 override、使用 reinterpret_cast、声明与定义参数名不一致,以及三元运算符控制表达式不是布尔值等代码规范告警。

二、环境信息(可选)

ops-math AICPU 算子代码静态检查。

三、重现步骤(可选)

对 TransData、Acosh、Expand 和 GetDynamicDims 的 AICPU 实现执行代码规范检查。

四、预期结果(可选)

消除指定代码规范告警,不改变算子计算逻辑。

💡 备注(选填)

对应 PR:https://gitcode.com/cann/ops-math/merge_requests/5812

likedislike
ayuemoon
ayuemoon
11 天前 评论:

/assign

likedislike
CANN-robotCANN-robot成员
11 天前 将 ayuemoon 设为负责人
CANN-robotCANN-robot成员
11 天前 关闭了 issue
CANN-robotCANN-robot成员
11 天前 添加了label:resolved
ayuemoonayuemoon
10 天前 关联了pull request:fix(aicpu): resolve code quality warnings