已合并
docs: 补充 fusion pass 样例 es_all.whl 安装步骤 #3794
duhua创建于 6月30日
docs: 补充 fusion pass 样例 es_all.whl 安装步骤 #3794
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 duhua 的贡献)6月30日 添加了label:enhancement
6月30日 添加了label:stat/needs-squash
6月30日 添加了label:cann-cla/yes
CANN-robot
6月30日 评论:
6月30日 评论:
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/ge | ✅ zhanj, kobemini, Mexyy (3/2) | ✅ zhanj (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
du-hua1024, thanks for your pull request. All authors of the commits have signed the CLA. 👍


atomgit-bot
6月30日 评论:
6月30日 评论:
变更摘要
此 PR 新增了一个完整的 Python 自定义算子(Custom Op)框架,包含 Python 公共 API、C++ pybind11 原生模块绑定、插件发现与加载机制、以及注册/桥接基础设施。该框架允许用户以 Python 类的方式定义 GE 自定义算子,并通过 EagerExecuteOp 接口在运行时与 GE 执行上下文交互。
主要改动
custom_op/包结构建立:新增__init__.py(懒加载导出)、base.py(BaseCustomOp/EagerExecuteOp抽象基类)、registry.py(register_custom_op装饰器与CustomOpDescriptor注册中心)及bootstrap.py(通过ASCEND_CUSTOM_OPP_PATH环境变量发现并加载.py插件模块),构成完整的 Python 侧 API 层。_bridge.py桥接层:新增_CustomOpHolder持有器管理与create_custom_op_holder/call_execute/destroy_custom_op_holder等桥接函数,供 C++ 运行时通过 instance_id 创建、调用和销毁 Python 自定义算子实例,并维护线程安全的 holder 字典。- C++ pybind11 原生绑定:新增
binding_utils.h基于共享bool有效标记的BorrowedPtr/BorrowedTensor/BorrowedShape等借用指针包装,context_binding.cc绑定EagerOpExecutionContext(含get_input_tensor、malloc_output_tensor、malloc_workspace等方法),runtime_type_binding.cc绑定Tensor、Shape、StorageShape、StorageFormat、KernelArgs、TensorPlacement等运行时类型。 _ge_custom_op_native.pyi类型桩文件:为原生模块提供完整的 Python 类型注解(含Shape、Tensor、KernelArgs、EagerOpExecutionContext等类的属性与方法签名),支持 IDE 智能提示与静态检查。- 单元测试覆盖:新增
python_custom_op_test.py,覆盖register_custom_op装饰器注册/去重/校验、桥接持有器生命周期与call_execute调用、环境变量路径插件加载、以及错误路径(缺失文件、无效 descriptor_key)的异常断言。


atomgit-bot
6月30日 评论:
6月30日 评论:
6月30日 update merge request[project id: 8824148, iid: 3794, commit_id: 01a7f78780e84c1c9659aad748e011908c2d3772] virtual merging success
6月30日 update merge request[project id: 8824148, iid: 3794, commit_id: 01a7f78780e84c1c9659aad748e011908c2d3772] virtual merging success
此处折叠了7条事件消息 查看更多
7月6日 virtual merging failed, update merge request[project_id: 8824148, iid: 3794, target_commit_sha: 89521d71e67c87548daf8376638b73734476bdfe], message: MR has no commits
7月6日 virtual merging failed, update merge request[project_id: 8824148, iid: 3794, target_commit_sha: 89521d71e67c87548daf8376638b73734476bdfe], message: MR has no commits
CANN-robot
7月6日 评论:
7月6日 评论:
7月6日 update merge request[project id: 8824148, iid: 3794, commit_id: 78a20f18eec93d672b0375f7a697b23315b8c699] virtual merging success
7月6日 update merge request[project id: 8824148, iid: 3794, commit_id: 78a20f18eec93d672b0375f7a697b23315b8c699] virtual merging success
7月6日 update merge request[project id: 8824148, iid: 3794, commit_id: b445ce8243100685c4fe700945b84b24da4df218] virtual merging success
7月6日 update merge request[project id: 8824148, iid: 3794, commit_id: b445ce8243100685c4fe700945b84b24da4df218] virtual merging success
7月6日 删除了label:stat/needs-squash
CANN-robot
7月6日 评论:
7月6日 评论:
7月6日 将yangyongqiang0606,kobemini,tangqunzhang,xchu42,hugo111,lining23666,fu-jun2,depeng1994,wqtshg_wt,peiyang,shengnan666,zhangfan_hanq,zhanj,zhujingjing,Mexyy,wangxiaotian995,stevenaw0,yuht9设为评审人
7月6日 将yangyongqiang0606,kobemini,tangqunzhang,xchu42,hugo111,lining23666,fu-jun2,depeng1994,wqtshg_wt,peiyang,shengnan666,zhangfan_hanq,zhanj,zhujingjing,Mexyy,wangxiaotian995,stevenaw0,yuht9设为评审人
7月6日 将yangyongqiang0606,kobemini,tangqunzhang,xchu42,hugo111,lining23666,fu-jun2,depeng1994,wqtshg_wt,peiyang,shengnan666,zhangfan_hanq,zhanj,zhujingjing,Mexyy,wangxiaotian995,stevenaw0,yuht9设为审查人
7月6日 将yangyongqiang0606,kobemini,tangqunzhang,xchu42,hugo111,lining23666,fu-jun2,depeng1994,wqtshg_wt,peiyang,shengnan666,zhangfan_hanq,zhanj,zhujingjing,Mexyy,wangxiaotian995,stevenaw0,yuht9设为审查人
duhua
7月6日 评论:
7月6日 评论:
compile


7月6日 update merge request[project id: 8824148, iid: 3794, commit_id: dda65281e66604c4b0c14271ccfbdc072e23bd89] virtual merging success
7月6日 update merge request[project id: 8824148, iid: 3794, commit_id: dda65281e66604c4b0c14271ccfbdc072e23bd89] virtual merging success
7月6日 添加了label:ci-pipeline-running
CANN-robot
7月6日 评论:
7月6日 评论:
流水线任务触发成功
任务链接 [764e4158ec97401982ecdc03560c50ab][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_ARM_compiler | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_ARM_executor | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_ARM_dflow | ✅ SUCCESS | >>>>> | >>>>> |
| API_Check | ✅ SUCCESS | >>>>> | |
| PreSmoke_A900_npupool | ✅ SUCCESS | >>>>> |
[2026-07-06 11:06:47] CI执行结束


CANN-robot
7月6日 评论:
7月6日 评论:
流水线任务触发成功
任务链接 [27948ba5655b45a3961795ae420e2659][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_X86_compiler | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_executor | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_dflow | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test_dflow | ✅ SUCCESS | ||
| UT_Test_ge_common | ✅ SUCCESS | ||
| UT_Test_parser | ✅ SUCCESS | ||
| UT_Test_python | ✅ SUCCESS | >>>>> | |
| UT_Test_rt | ✅ SUCCESS | ||
| UT_Test_acl | ✅ SUCCESS | ||
| UT_Test_autofuse | ✅ SUCCESS | ||
| UT_Test_executor | ✅ SUCCESS | ||
| UT_Test_autofuse_ascendc_api | ✅ SUCCESS | ||
| ST_Test_dflow | ✅ SUCCESS | ||
| ST_Test_ge_common | ✅ SUCCESS | ||
| ST_Test_parser | ✅ SUCCESS | ||
| ST_Test_python | ✅ SUCCESS | >>>>> | |
| ST_Test_rt | ✅ SUCCESS | ||
| ST_Test_autofuse | ✅ SUCCESS | ||
| ST_Test_executor | ✅ SUCCESS | ||
| ST_Test_hetero | ✅ SUCCESS | ||
| ST_Test_autofuse_ascendc_api | ✅ SUCCESS | ||
| ST_Test_autofuse_e2e | ✅ SUCCESS | ||
| UT_Test_fe | ✅ SUCCESS | ||
| UT_Test_tefusion | ✅ SUCCESS | ||
| ST_Test_fe | ✅ SUCCESS | ||
| ST_Test_tefusion | ✅ SUCCESS | ||
| ST_Test_ge_common_atc | ✅ SUCCESS | ||
| UT_Test_Report_graphengine | ✅ SUCCESS | >>>>> | |
| UT_Test_Report_ge_executor_c | ✅ SUCCESS | >>>>> | |
| UT_Test_Report_ge_autofuse | ✅ SUCCESS | >>>>> | |
| ST_Test_Report_graphengine | ✅ SUCCESS | >>>>> | |
| ST_Test_Report_ge_executor_c | ✅ SUCCESS | >>>>> | |
| ST_Test_Report_ge_autofuse | ✅ SUCCESS | >>>>> | |
| UT_Test_Report_fe | ✅ SUCCESS | >>>>> | |
| ST_Test_Report_fe | ✅ SUCCESS | >>>>> |
[2026-07-06 11:08:33] CI执行结束


7月6日 添加了label:api-check-pass
7月6日 删除了label:api-check-pass
CANN-robot
7月6日 评论:
7月6日 评论:
流水线任务触发成功
任务链接 [21433341fa2e4c30a5f3b33d11e256ff][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck_Pr | ✅ SUCCESS | ||
| codecheck | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| codecheck_dt | ✅ SUCCESS | >>>>> | |
| codecheck_precommit | ✅ SUCCESS | >>>>> | |
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ⚠️ WARNING | >>>>> |
[2026-07-06 11:07:41] CI执行结束


7月6日 删除了label:ci-pipeline-running
7月6日 添加了label:ci-pipeline-passed
7月6日 修改标题为 “docs: 补充 fusion pass 样例 es_all.whl 安装步骤”,原标题为“【PR】: 简要描述”
7月6日 修改了pull request 的描述
7月6日 修改了pull request 的描述
GengChao
7月6日 评论:
7月6日 评论:
/lgtm


7月6日 添加了label:lgtm
zhanj
7月7日 评论:
7月7日 评论:
/approve


7月7日 添加了label:approved
7月7日 合入了pull request
Pull Request
描述
补充 C++ fusion pass 样例文档中运行前安装
es_all.whl的步骤,确保示例生成的 ES Python 包被安装到${ASCEND_PATH}/python/site-packages/后再执行后续流程。本次更新覆盖:
graph_base_pass/2_move_relu_before_concat_pass/cpp中英文 READMEpattern_base_pass/3_fuse_matmul_add_pass_with_pattern_matcher_config/cpp中英文 README变更类型
请选择本次引入的变更类型:
关联的Issue
无。
如何测试
描述测试此变更的步骤和前提条件:
核对清单
其他信息
本次变更为文档补充,不涉及运行时逻辑、构建脚本或测试用例变更。