Pull Request已成功合入, 合并人@CANN-robot
(感谢 liu-wei 的贡献)变更摘要
本次变更是一个纯粹的命名空间重构:将 AscendC 算子内核代码中所有 AscendC::MicroAPI 命名空间下的类型、函数和常量引用,统一替换为新的 AscendC::Reg 命名空间。涉及 10 个文件,涵盖 NMSWithMask、ResizeBilinearV2、ResizeBilinearV2Grad 和 ResizeNearestNeighborV2 四个算子模块的 arch35 内核实现。所有替换均为等量替换(485 行新增,485 行删除),对外部接口和行为无任何影响。
主要改动
-
命名空间从
MicroAPI迁移到Reg:所有文件中的AscendC::MicroAPI::前缀(包括using声明中的AscendC::MicroAPI::RegTensor等)统一替换为AscendC::Reg::,例如using AscendC::Reg::RegTensor、using AscendC::Reg::AddrReg等。 -
核心寄存器类型和运算 API 前缀更新:
RegTensor、MaskReg、UnalignReg、AddrReg等寄存器类型,以及DataCopy、Duplicate、Sub、Mul、Add、Muls、Min、Max、Compare、Cast、Select、Pack、UnPack、MaskAnd、MaskNot、MaskPack、MaskDeInterleave、CreateMask、UpdateMask、CreateAddrReg、LocalMemBar、DataCopyUnAlignPost等所有运算和工具函数的调用,均从MicroAPI::改为Reg::。 -
枚举和配置常量前缀更新:
CastTrait、RegLayout、SatMode、MaskMergeMode、MaskPattern、HighLowPart、LoadDist、StoreDist、MaskDist、PostLiteral、MemType等配置枚举和常量,全部从MicroAPI::改为Reg::,例如Reg::CastTrait、Reg::RegLayout::ZERO、Reg::MaskPattern::ALL等。 -
注释中的术语同步更新:部分文件(如
resize_bilinear_v2_nc.h和resize_bilinear_v2_grad_c_parallel.h)的代码注释也同步将MicroAPI改为Reg,保持文档一致性。


Thanks for your pull-request.
The full list of commands accepted by me can be found at here。
You can get sig-info at here
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| image/resize_bilinear_v2 | ✅ 张磊, 王林木 (2/2) | ✅ 张磊, 王林木 (2/1) |
| image/resize_bilinear_v2_grad | ✅ 张磊, 王林木 (2/2) | ✅ 张磊, 王林木 (2/1) |
| image/resize_nearest_neighbor_v2 | ✅ 王林木, 查建青, 张磊 (3/2) | ✅ 王林木, 查建青 (2/1) |
| repo-cann/ops-cv | ✅ 张磊, 王林木 (2/2) | ✅ 张磊, 王林木 (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
liu-wei, thanks for your pull request. All authors of the commits have signed the CLA. 👍


The following users do not have permission to comment /lgtm or /approve on any module in this PR:
陈风


描述
本 PR 将 ops-cv Regbase kernel 中的
AscendC::MicroAPI命名空间统一替换为AscendC::Reg,用于适配 Ascend C Reg API 命名空间调整。主要改动:
nms_with_mask、resize_bilinear_v2、resize_bilinear_v2_grad、resize_nearest_neighbor_v2的 arch35 Regbase kernel 代码。AscendC::MicroAPI::X、MicroAPI::X、using AscendC::MicroAPI::X分别替换为AscendC::Reg::X、Reg::X、using AscendC::Reg::X。docs/zh/develop/cross_platform_migration_guide.md中 Regbase 编程范式说明和示例代码。本次变更仅调整命名空间引用,不修改算子接口、tiling 数据结构、计算逻辑和构建脚本。
关联的Issue
#675
测试
文档更新
已更新
docs/zh/develop/cross_platform_migration_guide.md,将 Regbase 小节中的MicroAPI表述和代码示例同步调整为AscendC::Reg/Reg。类型标签