Merged
docs: 补齐op_common公共接口列表并修复AllocTensor函数声明 #588
songkai111Add on Jul 2
docs: 补齐op_common公共接口列表并修复AllocTensor函数声明 #588
Merged
songkai111Add on Jul 2
songkai111
songkai111Collaborators
Jul 2

描述

补齐 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:补充预留接口目录。

类型标签

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for songkai111's contribution.)
CANN-robotCANN-robotCollaborators
Jul 2 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
Jul 2 Comments:

CLA Signature Pass

songkai111, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
CANN-robot
CANN-robotCollaborators
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 /approve or /lgtm
  • Commenting /approve implies 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. 👍

likedislike
atomgit-bot
atomgit-bot
Jul 2 Comments:

本次 AI 摘要未能生成有效摘要。

likedislike
Incorrect?
atomgit-bot
atomgit-bot
Jul 2 Comments:

🤖 AI Code Review

⚠️ 审查未能完成

本次代码审查未能完成,可能是临时性故障。

你可以在评论区输入 /ai review 重新发起审查。若多次失败,请联系管理员并附上下方追踪 ID。

追踪 ID: task-39405-run-37225

likedislike
Incorrect?
songkai111
songkai111Collaborators
Jul 2 Comments:

compile

likedislike
CANN-robotCANN-robotCollaborators
Jul 2 Added label: ci-pipeline-running
CANN-robot
CANN-robotCollaborators
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 >>>>> >>>>>
likedislike
CANN-robotCANN-robotCollaborators
Jul 2 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Jul 2 Added label: ci-pipeline-failed
CANN-robot
CANN-robotCollaborators
Jul 2 Comments:
流水线 PR-pipeline_cann_opbase#1358 [ commitID:be787765 ] 运行失败
likedislike
songkai111songkai111Collaborators
Jul 2 Change title to "docs: 补齐op_common公共接口列表并修复AllocTensor函数声明", originally titled "docs: 补齐op_common_interface_list中缺失的20个接口".
songkai111songkai111Collaborators
Jul 2 Modify description of pull request
songkai111
songkai111Collaborators
Jul 2 Comments:

compile

likedislike
CANN-robotCANN-robotCollaborators
Jul 2 Removed label: ci-pipeline-failed
CANN-robotCANN-robotCollaborators
Jul 2 Added label: ci-pipeline-running
CANN-robot
CANN-robotCollaborators
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 >>>>> >>>>>
likedislike
CANN-robotCANN-robotCollaborators
Jul 2 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Jul 2 Added label: ci-pipeline-failed
CANN-robot
CANN-robotCollaborators
Jul 2 Comments:
流水线 PR-pipeline_cann_opbase#1359 [ commitID:be787765 ] 运行失败
likedislike
songkai111
songkai111Collaborators
Jul 2 Comments:

compile

likedislike
CANN-robotCANN-robotCollaborators
Jul 2 Removed label: ci-pipeline-failed
CANN-robotCANN-robotCollaborators
Jul 2 Added label: ci-pipeline-running
CANN-robot
CANN-robotCollaborators
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 >>>>> >>>>>
likedislike
CANN-robotCANN-robotCollaborators
Jul 2 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Jul 2 Added label: ci-pipeline-failed
CANN-robot
CANN-robotCollaborators
Jul 2 Comments:
流水线 PR-pipeline_cann_opbase#1360 [ commitID:be787765 ] 运行失败
likedislike
songkai111songkai111Collaborators
Jul 2 Force-pushed 1 commits:8e3b863b-docs: 补齐op_common_interface_list中缺失的20个接口
songkai111songkai111Collaborators
Jul 2 Force-pushed 1 commits:fe3a7d0a-docs: 补齐op_common_interface_list中缺失的20个接口
songkai111songkai111Collaborators
Jul 2 Force-pushed 1 commits:8dc7096c-docs: 补齐op_common_interface_list中缺失的20个接口
songkai111
songkai111Collaborators
Jul 2 Comments:

compile

likedislike
songkai111songkai111Collaborators
Jul 2 Modify description of pull request
CANN-robotCANN-robotCollaborators
Jul 2 Removed label: ci-pipeline-failed
CANN-robotCANN-robotCollaborators
Jul 2 Added label: ci-pipeline-running
CANN-robot
CANN-robotCollaborators
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执行结束

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

/lgtm

likedislike
zl_hw
zl_hwCollaborators
Jul 2 Comments:

/lgtm

likedislike
CANN-robotCANN-robotCollaborators
Jul 2 Added label: lgtm
zl_hw
zl_hwCollaborators
Jul 2 Comments:

/approve

likedislike
CANN-robotCANN-robotCollaborators
Jul 2 Added label: approved
CANN-robotCANN-robotCollaborators
Jul 2 Closed associated issue
CANN-robotCANN-robotCollaborators
Jul 2 Merged pull request