| Files | Last commit | Last update |
|---|---|---|
clean code Co-authored-by: sujunwei3<sujunwei3@huawei.com> # message auto-generated for no-merge-commit merge: !5811 merge dev into master clean code Created-by: sujunwei3 Commit-by: sujunwei3 Merged-by: cann-robot Description: ## 描述 对5个AICPU算子进行clean code整改,提升const正确性与代码规范: 1. **const正确性**:将语义上只读成员状态的成员函数声明为 const,涉及调用链连带改造 - greater_equal:SpecialCompute/NoBcastCompute/BcastCompute/GreaterEqualCompute 改为 const - less:SpecialCompute/NoBcastCompute/BcastCompute/LessCompute 改为 const - mul:MulCompute/MulDispatch/MulCalculateWithAlignedCheck/MulCalculate 改为 const - real_div:IsInputHasZero/RealDivCompute 改为 const 2. **lambda显式捕获**:将默认捕获[&]改为显式捕获列表,避免隐式依赖 - greater_equal:BcastCompute和NoBcastCompute中的lambda - mul:BcastCompute和NoBcastCompute中的lambda 3. **override关键字**:为lin_space析构函数添加override,确保正确覆盖基类虚析构函数 ## 关联的Issue #3244 ## 测试 根据代码变更,测试场景如下: 1. **编译构建测试** - 执行 bash build.sh --pkg --soc=ascend910b --ops=greater_equal,less,lin_space,mul,real_div -j16 编包验证 - 验证所有5个算子编译通过,无const正确性或lambda捕获相关报错 2. **GE IR 用例验证** - greater_equal:执行 test_geir_greater_equal 用例验证 - less:执行 test_geir_less 用例验证 - lin_space:执行 test_geir_lin_space 用例验证 - mul:执行 test_geir_mul 用例验证 - real_div:执行 test_geir_real_div 用例验证 - 全部用例返回码为0,日志含 execute samples success 3. **装包验证** - 清理vendors后 --force 装包,验证 uninstall.sh 存在 ## 文档更新 无文档更新,纯代码清理。 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:clean code(const正确性 + lambda显式捕获 + override) See merge request: cann/ops-math!5811 | 1 month ago | |
clean code Co-authored-by: sujunwei3<sujunwei3@huawei.com> # message auto-generated for no-merge-commit merge: !5811 merge dev into master clean code Created-by: sujunwei3 Commit-by: sujunwei3 Merged-by: cann-robot Description: ## 描述 对5个AICPU算子进行clean code整改,提升const正确性与代码规范: 1. **const正确性**:将语义上只读成员状态的成员函数声明为 const,涉及调用链连带改造 - greater_equal:SpecialCompute/NoBcastCompute/BcastCompute/GreaterEqualCompute 改为 const - less:SpecialCompute/NoBcastCompute/BcastCompute/LessCompute 改为 const - mul:MulCompute/MulDispatch/MulCalculateWithAlignedCheck/MulCalculate 改为 const - real_div:IsInputHasZero/RealDivCompute 改为 const 2. **lambda显式捕获**:将默认捕获[&]改为显式捕获列表,避免隐式依赖 - greater_equal:BcastCompute和NoBcastCompute中的lambda - mul:BcastCompute和NoBcastCompute中的lambda 3. **override关键字**:为lin_space析构函数添加override,确保正确覆盖基类虚析构函数 ## 关联的Issue #3244 ## 测试 根据代码变更,测试场景如下: 1. **编译构建测试** - 执行 bash build.sh --pkg --soc=ascend910b --ops=greater_equal,less,lin_space,mul,real_div -j16 编包验证 - 验证所有5个算子编译通过,无const正确性或lambda捕获相关报错 2. **GE IR 用例验证** - greater_equal:执行 test_geir_greater_equal 用例验证 - less:执行 test_geir_less 用例验证 - lin_space:执行 test_geir_lin_space 用例验证 - mul:执行 test_geir_mul 用例验证 - real_div:执行 test_geir_real_div 用例验证 - 全部用例返回码为0,日志含 execute samples success 3. **装包验证** - 清理vendors后 --force 装包,验证 uninstall.sh 存在 ## 文档更新 无文档更新,纯代码清理。 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:clean code(const正确性 + lambda显式捕获 + override) See merge request: cann/ops-math!5811 | 1 month ago | |
feat: migrate math+conversion json ops to opdef pipeline Co-authored-by: zhaowenrui666<zhaowenrui7@huawei.com> # message auto-generated for no-merge-commit merge: !2130 merge mathdef into master feat: migrate math+conversion json ops to opdef pipeline Created-by: zhaowenrui666 Commit-by: zhaowenrui666 Merged-by: cann-robot Description: ## 描述 math仓aicpu算子信息库由json融合修改为op def文件,修改注册方式以及工程适配 ## 关联的Issue https://gitcode.com/cann/ops-math/issues/1271 ## 测试 本次按 ENABLE_CUSTOM=ON 的 custom 路径验收,已验证 OpDef -> libaicpu_ops.so -> op_build --aicpu -> aicpu_kernel.ini -> parser_ini.py -> cust_aicpu_kernel.json 链路跑通,相关产物已生成并校验通过。AICPU before/after 与 I/O 对比已按新规则重评:input/output -> input0/output0 视为规范化差异;RightShift、SearchSorted、Sinh 在整改前 JSON 缺 I/O,但已对齐 CANN 基线 aicpu_kernel.ini,不判缺失;AddN: input0 -> dynamic_input0 和 AddFake -> Add 也已确认接受,不作为阻塞项。 AICore 回归已补做,before/after 经 parser_ini.py 转 json 后无差异。综合结论:本提交满足当前 OpDef 整改验收标准,可通过。 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-math!2130 | 6 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 1 month ago | ||
| 1 month ago | ||
| 6 months ago |