Merged
docs: 补齐op_common公共接口列表并修复AllocTensor函数声明 #588
songkai111Add on Jul 2
docs: 补齐op_common公共接口列表并修复AllocTensor函数声明 #588
Merged
Merged fromsongkai111/opbase_3968masterintocann/opbasemaster
Pull Request has been successfully merged by CANN-robot.
(Thank you for songkai111's contribution.)Jul 2 Added label: cann-cla/yes
CANN-robot
Jul 2 Comments:
Jul 2 Comments:
CANN-robot
Jul 2 Comments:
Jul 2 Comments:
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 |
|---|---|---|
| repo-cann/opbase | ✅ 张磊, 王林木 (2/2) | ✅ 张磊 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
songkai111, thanks for your pull request. All authors of the commits have signed the CLA. 👍


atomgit-bot
Jul 2 Comments:
Jul 2 Comments:
本次 AI 摘要未能生成有效摘要。


Incorrect?
atomgit-bot
Jul 2 Comments:
Jul 2 Comments:
songkai111
Jul 2 Comments:
Jul 2 Comments:
compile


Jul 2 Added label: ci-pipeline-running
CANN-robot
Jul 2 Comments:
Jul 2 Comments:
流水线任务触发成功
任务链接 [2ffe2d187145470eba5165434e4e4676][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| Check_Pr | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test | ❌ FAILED | ||
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_style | ✅ SUCCESS | >>>>> | |
| precommit | ⚠️ WARNING | >>>>> | >>>>> |


Jul 2 Removed label: ci-pipeline-running
Jul 2 Added label: ci-pipeline-failed
CANN-robot
Jul 2 Comments:
Jul 2 Comments:
流水线 PR-pipeline_cann_opbase#1358 [ commitID:be787765 ] 运行失败


Jul 2 Change title to "docs: 补齐op_common公共接口列表并修复AllocTensor函数声明", originally titled "docs: 补齐op_common_interface_list中缺失的20个接口".
Jul 2 Change title to "docs: 补齐op_common公共接口列表并修复AllocTensor函数声明", originally titled "docs: 补齐op_common_interface_list中缺失的20个接口".
Jul 2 Modify description of pull request
songkai111
Jul 2 Comments:
Jul 2 Comments:
compile


Jul 2 Removed label: ci-pipeline-failed
Jul 2 Added label: ci-pipeline-running
CANN-robot
Jul 2 Comments:
Jul 2 Comments:
流水线任务触发成功
任务链接 [4e64f0611f2e439bbdaf19ef6556dca0][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| Check_Pr | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test | ❌ FAILED | ||
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_style | ✅ SUCCESS | >>>>> | |
| precommit | ⚠️ WARNING | >>>>> | >>>>> |


Jul 2 Removed label: ci-pipeline-running
Jul 2 Added label: ci-pipeline-failed
CANN-robot
Jul 2 Comments:
Jul 2 Comments:
流水线 PR-pipeline_cann_opbase#1359 [ commitID:be787765 ] 运行失败


songkai111
Jul 2 Comments:
Jul 2 Comments:
compile


Jul 2 Removed label: ci-pipeline-failed
Jul 2 Added label: ci-pipeline-running
CANN-robot
Jul 2 Comments:
Jul 2 Comments:
流水线任务触发成功
任务链接 [2ec30b295aeb454e9b5660f75e580da9][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| Check_Pr | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test | ❌ FAILED | ||
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_style | ✅ SUCCESS | >>>>> | |
| precommit | ❌ FAILED | >>>>> | >>>>> |


Jul 2 Removed label: ci-pipeline-running
Jul 2 Added label: ci-pipeline-failed
CANN-robot
Jul 2 Comments:
Jul 2 Comments:
流水线 PR-pipeline_cann_opbase#1360 [ commitID:be787765 ] 运行失败


Jul 2 Force-pushed 1 commits:8e3b863b-docs: 补齐op_common_interface_list中缺失的20个接口
Jul 2 Force-pushed 1 commits:fe3a7d0a-docs: 补齐op_common_interface_list中缺失的20个接口
Jul 2 Force-pushed 1 commits:8dc7096c-docs: 补齐op_common_interface_list中缺失的20个接口
songkai111
Jul 2 Comments:
Jul 2 Comments:
compile


Jul 2 Modify description of pull request
Jul 2 Removed label: ci-pipeline-failed
Jul 2 Added label: ci-pipeline-running
CANN-robot
Jul 2 Comments:
Jul 2 Comments:
流水线任务触发成功
任务链接 [30de3757df4e41bdbcb6ee43c4271c2e][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| Check_Pr | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test | ✅ SUCCESS | ||
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_style | ✅ SUCCESS | >>>>> | |
| precommit | ✅ SUCCESS | >>>>> | |
| API_Check | ✅ SUCCESS | >>>>> |
[2026-07-02 15:05:49] CI执行结束


Jul 2 Added label: api-check-pass
Jul 2 Removed label: ci-pipeline-running
Jul 2 Added label: ci-pipeline-passed
CANN-robot
Jul 2 Comments:
Jul 2 Comments:
流水线 PR-pipeline_cann_opbase#1370 [ commitID:8dc7096c ] 已完成


llimwang
Jul 2 Comments:
Jul 2 Comments:
/lgtm


zl_hw
Jul 2 Comments:
Jul 2 Comments:
/lgtm


Jul 2 Added label: lgtm
zl_hw
Jul 2 Comments:
Jul 2 Comments:
/approve


Jul 2 Added label: approved
Jul 2 Closed associated issue
Jul 2 Merged pull request
描述
补齐 op_common 公共接口列表中缺失的 20 个接口,并修复 AllocTensor 函数声明及公共接口目录。
改动原因
op_common_interface_list.md接口列表缺失 20 个已实现接口的文档条目(11 个 log 类、7 个 platform 类、2 个 infershape 类),开发者无法从列表索引到这些接口。AllocTensor.md函数原型缺少op::命名空间前缀和结尾分号,与实际 C++ 签名不一致。00_op_common_list.md目录缺少"预留接口"分类入口。改动方法
op_common_interface_list.md:在 log 分类新增 11 个 OP_LOGE 接口(EZ0028~EZ0038),rowspan 33→44;在 platform 分类新增 7 个接口(GetVRegSize/GetSimtMaxThreadNum/GetSimtMaxDCacheSize/GetCacheLineSize/GetSectorCacheLineSize/GetNddmaDcacheSize/GetWorkspaceSize),rowspan 4→11;在 infershape 分类新增 BroadcastShape(归入 broadcast util,rowspan 1→2)和 InferShape4Reduce,rowspan 6→8。AllocTensor.md:三组函数原型统一为aclTensor*,增加op::命名空间前缀,默认值改为op::Format::FORMAT_ND。00_op_common_list.md:末尾新增"预留接口"条目。关联的Issue
#242
https://gitcode.com/cann/opbase/issues/243
测试
文档变更,无功能代码改动,通过 Markdown 表格格式预览校验。
文档更新
docs/zh/api/op_common/op_common_interface_list.md:补齐 20 个缺失接口。docs/zh/api/nnopbase/opdev/op_executor/AllocTensor.md:修正函数声明。docs/zh/api/op_common/00_op_common_list.md:补充预留接口目录。类型标签