Pull Request has been successfully merged by CANN-robot.
(Thank you for zhang-song-rui's contribution.)变更摘要
本改动主要围绕 Pow 系列算子接口的文档注释与数据类型约束说明进行修正:在 math/pow/op_api/aclnn_pow_tensor_tensor.h 中统一了 aclnnPowTensorTensor 的入参命名与推导关系描述,并扩充了输出支持的数据类型;在 math/pow/op_graph/pow_proto.h 中修正了 Pow 原型对两个输入与输出 dtype 关系的描述。整体体现为对接口文档中数据类型/推导规则的澄清,未在补丁中体现计算逻辑本身的调整。
主要改动
aclnnPowTensorTensor入参命名与推导描述修正: 在aclnn_pow_tensor_tensor.h中将self参数字段的other统一改为exponent,并将数据类型、broadcast与数据格式的描述改为与exponent构成对应关系。- 输出数据类型支持范围扩充: 同一文件的
out参数说明在原有类型基础上新增UINT16、UINT32、UINT64,并将输出 dtype 与 shape 的推导来源由self与other更正为self与exponent。 Pow原型输入 dtype 约束放宽: 在pow_proto.h中把x2由「与x1相同 dtype」改为支持与x1相同的 dtype 集合且 dtype 可与x1不同。Pow原型输出 dtype 规则更新: 将输出y由「与x1相同 dtype」改为由x1与x2的 dtype 提升(promotion)推导得到。
🧩 本次 Review 已使用自定义 Skill:




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.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| */*/docs/acl*.md | ✅ 陈娇, 王瑞, 杜慧萍 (3/2) | ✅ 陈娇 (1/1) |
| */*/op_api/*.h | ✅ 汤磊, 王瑞 (2/2) | ✅ 汤磊 (1/1) |
| */*/op_graph/*_proto.h | ✅ 汤磊, 王瑞 (2/2) | ✅ 汤磊 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
zhang-song-rui, thanks for your pull request. All authors of the commits have signed the CLA. 👍


/compile


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


/lgtm


/approve


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


描述
修正 Pow 现有接口资料中与参数角色、函数原型及实现不一致的表述:
-改为√,与 ViewCopy 写回行为一致;修正标量 exponent 的公式下标。关联的Issue
Closes #3565
关联文档纠错 Issue:https://gitcode.com/cann/ops-math/issues/3565
对应已确认的 Pow 扫描问题 DOC.02/1、DOC.05/1、DOC.07/1(task 289)及 GEIR.11/1。
测试
git diff --check通过。文档更新
修改 ScalarTensor、TensorScalar 两份 ACLNN 文档,以及
aclnn_pow_tensor_tensor.h、pow_proto.h的注释。本次不增加空 Tensor、动态 shape/rank 等能力说明,也不补充 README 导航、维度约束及错误码条目。类型标签