Pull Request已成功合入, 合并人@CANN-robot
(感谢 jianwei10 的贡献)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 |
|---|---|---|
| examples | ✅ YANXI_ZHAO, 诸葛洵 (2/2) | ✅ YANXI_ZHAO (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
Geminiver, thanks for your pull request. All authors of the commits have signed the CLA. 👍


compile


流水线任务触发成功
任务链接 [cec0b1eb9c81475791e076ab5c2bc335][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| SCA | ✅ SUCCESS | >>>>> | |
| anti_virus | ✅ SUCCESS | >>>>> | |
| codecheck | ✅ SUCCESS | >>>>> | |
| Check_Pr | ✅ SUCCESS | >>>>> | |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | |
| StaticCheck_codespell_check | ⚠️ WARNING | >>>>> | |
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_codestyle | ⚠️ WARNING | ||
| UT_Test_3 | ✅ SUCCESS | ||
| UT_Test_2 | ✅ SUCCESS | ||
| UT_Test_1 | ✅ SUCCESS | ||
| UT_Test | ✅ SUCCESS | ||
| API_Check | ✅ SUCCESS | >>>>> | |
| UT_Test_report | ✅ SUCCESS | >>>>> |
[2026-04-14 20:23:59] CI执行结束


这里写“Add/LeakyRelu 与 custom_op 使用相同样例描述”,但本 PR 已将 add_custom 改成扁平结构并删除 framework/tf_plugin、op_host/op_kernel 子工程,和 custom_op 的工程组织已经不一致。建议拆分成两段说明(add_custom 与 leaky_relu_custom 分开描述),避免读者按 custom_op 路径查找时产生误导。


这里 SRC_BASE 使用 CMAKE_SOURCE_DIR,在当前 ExternalProject 场景下能工作,但如果后续把该目录作为子目录引入(add_subdirectory)时,CMAKE_SOURCE_DIR 会指向顶层工程,导致 kernel 源码相对路径解析不稳定。建议改为 CMAKE_CURRENT_SOURCE_DIR,与 add_custom 目录绑定更稳妥。


compile


流水线任务触发成功
任务链接 [2930c7dc97344bd4be927238ea9bafa5][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| SCA | ✅ SUCCESS | >>>>> | |
| anti_virus | ✅ SUCCESS | >>>>> | |
| codecheck | ✅ SUCCESS | >>>>> | |
| Check_Pr | ✅ SUCCESS | >>>>> | |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | |
| StaticCheck_codespell_check | ⚠️ WARNING | >>>>> | |
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_codestyle | ⚠️ WARNING | ||
| UT_Test_3 | ✅ SUCCESS | ||
| UT_Test_2 | ✅ SUCCESS | ||
| UT_Test_1 | ✅ SUCCESS | ||
| UT_Test | ✅ SUCCESS | ||
| API_Check | ✅ SUCCESS | >>>>> | |
| UT_Test_report | ✅ SUCCESS | >>>>> |
[2026-04-14 21:01:32] CI执行结束


/lgtm


/approve


/lgtm


Review Guide
This pull-request passes review.
Committers who wrote a comment of /approve are: YANXI_ZHAO.
Reviewers who wrote a comment of /lgtm are: YANXI_ZHAO, 诸葛洵.


描述
修改 add_custom算子目录结构为扁平结构
关联的Issue
测试
文档更新
类型标签