Open
docs: align API prototypes with implementation #97
docs: align API prototypes with implementation #97
Open
SuneeAdd on Oct 24
Sunee
SuneeCollaborators
Oct 24

描述

使 docs/api 两处函数原型与实际实现逐字一致:

  1. docs/api/BaseKernelSchedule_Run.md:原型写作 aicore inline void Run(...),实现(include/elewise/kernel/schedule.h:118)为 __aicore__ inline void Run(...)。文档缺少双下划线,照写会编译失败。更正为 __aicore__。
  2. docs/api/PlaceHolderTmpLike.md:原型写作 PlaceHolderTmpLike(Expression),实现(include/expression/expr_template.h:594)为 PlaceHolderTmpLike(Expression<L> /*unused*/)。文档缺少模板参数,形参类型不完整。更正为 Expression<L>。

仅修正文档原型,未改动实现逻辑。

关联的Issue

Fixes #71

测试

  • 对照 include/elewise/kernel/schedule.h:118 确认为 __aicore__ inline void Run(OpParam& cfg, Args... args)。
  • 对照 include/expression/expr_template.h:594 确认为 PlaceHolderTmpLike(Expression<L>)(模板参数 L 已在上方 template <std::size_t N, typename T = void, typename L> 声明)。
  • 文档类改动,无代码运行测试;OAT 合规检查通过。

文档更新

更新 docs/api/BaseKernelSchedule_Run.md、docs/api/PlaceHolderTmpLike.md。

类型标签

likedislike
Merge blocked
SuneeSuneeCollaborators
Oct 24 Created pull request, commit f148a379
SuneeSuneeCollaborators
Oct 24 Modify description of pull request
CANN-robotCANN-robotCollaborators
Oct 24 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
Oct 24 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.
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

⚠️ This PR does not yet meet the following requirements:lgtm (requires ≥ 2 person(s) per module)、approve (requires ≥ 1 person(s) per module)

Module Approval Details

module lgtm status approve status
repo-cann/atvoss ❌ (0/2)(You can also ask: jia0liang, 王瑞, 王林木, 周奇龙, 顾宝成) ❌ (0/1)(You can also ask: jia0liang, 王瑞, 王林木, 周奇龙, 冯彤)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

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

likedislike
CANN-robotCANN-robotCollaborators
Oct 24 Set zhou-qilong,wangrui_,rxtfeng,loov1,jia0liang,llimwang,gubaocheng as approver
CANN-robotCANN-robotCollaborators
Oct 24 Set zhou-qilong,wangrui_,rxtfeng,loov1,jia0liang,llimwang,gubaocheng as approver
Sunee
SuneeCollaborators
Oct 24 Comments:

compile

likedislike
CANN-robotCANN-robotCollaborators
Oct 24 Added label: ci-pipeline-running
CANN-robot
CANN-robotCollaborators
Oct 24 Comments:

流水线任务触发成功
任务链接 [58c10b2108ea47b293a1406b8940c078][流水线指导]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
antipoison ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
pre_comment ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
cocheck_codestyle ✅ SUCCESS
precommit ✅ SUCCESS >>>>>
UT_Test ✅ SUCCESS
ST_Test ✅ SUCCESS
API_Check ✅ SUCCESS >>>>>

[2026-10-24 10:08:44]    CI执行结束

likedislike
CANN-robotCANN-robotCollaborators
Oct 24 Added label: api-check-pass
CANN-robotCANN-robotCollaborators
Oct 24 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Oct 24 Added label: ci-pipeline-passed