| Files | Last commit | Last update |
|---|---|---|
fix(conversion): resolve AICPU codecheck warnings Co-authored-by: hid29204727<wangboyu20@huawei.com> # message auto-generated for no-merge-commit merge: !5825 merge fix/conversion-aicpu-codecheck into master fix(conversion): resolve AICPU codecheck warnings Created-by: hid29204727 Commit-by: hid29204727 Merged-by: cann-robot Description: ## Description Resolve conversion AICPU codecheck findings that are safe to change without altering public behavior: - replace four reinterpret_cast conversions from void* with static_cast; - mark read-only TileWithAxis and TransData helpers as const; - align declaration parameter names with definitions; - make the read-only tensor parameter pointer-to-const; - remove an unused include. The two enum-class findings in formats_definitions.h are intentionally not changed because these dimension enums are used directly as integer indexes across the format-transfer module. The reported TransData reinterpret-cast locations are no longer present on current master and require no code change. ## Tests - Repository clang-format hook: passed. - trailing-whitespace hook: passed. - git diff --check: passed. - GitCode remote hooks: passed. - Full AICPU build/UT not run locally because CMake and the CANN build environment are unavailable on this Windows host. ## Type - [x] Bug fix - [ ] Feature - [ ] Documentation See merge request: cann/ops-math!5825 | 1 month ago | |
fix(aicpu): 补充5处成员函数const修饰(G.CNS.03残留) Co-authored-by: liu-wei<lovline.liuwei@huawei.com> # message auto-generated for no-merge-commit merge: !5897 merge fix/aicpu-cns03-const-residual into master fix(aicpu): 补充5处成员函数const修饰(G.CNS.03残留) Created-by: liu-wei Commit-by: liu-wei Merged-by: cann-robot Description: ## 描述 修复 5 条 G.CNS.03 告警(不修改成员变量的成员函数应使用 const 修饰),共 8 个文件 +10/-10,声明与定义同步修改: | 告警 | 文件 | 修复 | |---|---|---| | G.CNS.03 ×1 | strided_slice_v2_aicpu.h/.cpp | CheckParam 补充 const(4 个被调成员均已为 const) | | G.CNS.03 ×2 | trans_data_aicpu.h/.cpp | DealData/PaddingTwo 补充 const(依赖均为已 const 成员或自由函数) | | G.CNS.03 ×1 | real_div_aicpu.h/.cpp | RealDivSameTypeCompute 补充 const(依赖 RealDivCompute 已 const) | | G.CNS.03 ×1 | mul_aicpu.h/.cpp | MulSameTypeCompute 补充 const(依赖 MulCompute 已 const) | ## 未包含项 - trans_data 的 DispatchDealData G.CNS.04 ×3:维持 PR #5856 的误报结论(aicpu::PtrToPtr<void, T> 无 const 重载,且 output_data_temp 确实被写入,不可 const); - strided_slice 的 G.EXP.27 ×4:由 #3267 另行跟进。 ## 验证 - 二进制级对比(父提交 b7b3d0278 vs 本提交 b51424f97,同编译参数 g++ -O2 -std=c++14):4 个改动 TU 的全部非符号节(共 4598 节,含 trans_data 中 3 个 DealData 模板实例化节与 1 个字符串常量节的 _ZN→_ZNK 重命名配对比对)**逐字节相同**; - 符号差异仅为 5 处 const 化函数的修饰名变化(_ZN→_ZNK,含 _GLOBAL__sub_I 辅助符号名内嵌变化),未定义符号集合一致——**零功能影响**; - CI 流水线待跑。 ## 关联的Issue https://gitcode.com/cann/ops-math/issues/3272 ## 类型 🧹 代码清理 See merge request: cann/ops-math!5897 | 1 month ago | |
fix(aicpu): 补充5处成员函数const修饰(G.CNS.03残留) Co-authored-by: liu-wei<lovline.liuwei@huawei.com> # message auto-generated for no-merge-commit merge: !5897 merge fix/aicpu-cns03-const-residual into master fix(aicpu): 补充5处成员函数const修饰(G.CNS.03残留) Created-by: liu-wei Commit-by: liu-wei Merged-by: cann-robot Description: ## 描述 修复 5 条 G.CNS.03 告警(不修改成员变量的成员函数应使用 const 修饰),共 8 个文件 +10/-10,声明与定义同步修改: | 告警 | 文件 | 修复 | |---|---|---| | G.CNS.03 ×1 | strided_slice_v2_aicpu.h/.cpp | CheckParam 补充 const(4 个被调成员均已为 const) | | G.CNS.03 ×2 | trans_data_aicpu.h/.cpp | DealData/PaddingTwo 补充 const(依赖均为已 const 成员或自由函数) | | G.CNS.03 ×1 | real_div_aicpu.h/.cpp | RealDivSameTypeCompute 补充 const(依赖 RealDivCompute 已 const) | | G.CNS.03 ×1 | mul_aicpu.h/.cpp | MulSameTypeCompute 补充 const(依赖 MulCompute 已 const) | ## 未包含项 - trans_data 的 DispatchDealData G.CNS.04 ×3:维持 PR #5856 的误报结论(aicpu::PtrToPtr<void, T> 无 const 重载,且 output_data_temp 确实被写入,不可 const); - strided_slice 的 G.EXP.27 ×4:由 #3267 另行跟进。 ## 验证 - 二进制级对比(父提交 b7b3d0278 vs 本提交 b51424f97,同编译参数 g++ -O2 -std=c++14):4 个改动 TU 的全部非符号节(共 4598 节,含 trans_data 中 3 个 DealData 模板实例化节与 1 个字符串常量节的 _ZN→_ZNK 重命名配对比对)**逐字节相同**; - 符号差异仅为 5 处 const 化函数的修饰名变化(_ZN→_ZNK,含 _GLOBAL__sub_I 辅助符号名内嵌变化),未定义符号集合一致——**零功能影响**; - CI 流水线待跑。 ## 关联的Issue https://gitcode.com/cann/ops-math/issues/3272 ## 类型 🧹 代码清理 See merge request: cann/ops-math!5897 | 1 month ago | |
[PR3/3] migrate transdata aicpu kernel: remaining formats + OpDef + infershape + full UT Co-authored-by: pan-tong<pantong@huawei.com> # message auto-generated for no-merge-commit merge: !4115 merge transdata_pr3 into master [PR3/3] migrate transdata aicpu kernel: remaining formats + OpDef + infershape + full UT Created-by: pan-tong Commit-by: pan-tong Merged-by: cann-robot Description: ## 描述 将canndev仓TransData算子的AICPU kernel迁移到ops-math仓,PR3/3:remaining formats + OpDef + infershape + full UT + example。 ## 关联的Issue #2231 ## 测试 PR3 of 3 (final): remaining format_transfer + OpDef registration + infershape + full UT + example. - format_transfer_fractalz_3d.{cpp,h}: NCDHW/DHWCN/NDHWC <-> FRACTAL_Z_3D - format_transfer_ndc1hwc0.{cpp,h}: NCDHW/NDHWC -> NDC1HWC0 - format_transfer_transpose.{cpp,h}: format transpose - trans_data_aicpu_def.cpp: AICPU OpDef registration (activates custom_math) - trans_data_infershape.cpp: RT2 InferShape - test_trans_data.cpp: full 23 kernel UT cases - test_trans_data_infershape.cpp: 6 infershape UT cases - test_geir_trans_data.cpp: GE IR example - docs/zh/op_list.md: mark trans_data as AI Core/AI CPU This PR activates custom_math TransData. Depends on PR1 + PR2. ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述:算子迁仓 See merge request: cann/ops-math!4115 | 3 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 1 month ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 3 months ago |