已合并
docs: 补充 fusion pass 样例 es_all.whl 安装步骤 #3794
duhua创建于 6月30日
docs: 补充 fusion pass 样例 es_all.whl 安装步骤 #3794
已合并
duhua创建于 6月30日
duhua
duhua成员
6月30日

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 中英文 README
  • pattern_base_pass/3_fuse_matmul_add_pass_with_pattern_matcher_config/cpp 中英文 README

变更类型

请选择本次引入的变更类型:

关联的Issue

无。

如何测试

描述测试此变更的步骤和前提条件:

  1. 根据readme,example可以正常运行

核对清单

其他信息

本次变更为文档补充,不涉及运行时逻辑、构建脚本或测试用例变更。

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 duhua 的贡献)
duhuaduhua成员
6月30日 添加了label:enhancement
duhuaduhua成员
6月30日 创建了 pull request,commit b4ce7102
CANN-robotCANN-robot成员
6月30日 添加了label:stat/needs-squash
CANN-robotCANN-robot成员
6月30日 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
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 /approve or /lgtm
  • Commenting /approve implies 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. 👍

likedislike
atomgit-bot
atomgit-bot
6月30日 评论:

变更摘要

此 PR 新增了一个完整的 Python 自定义算子(Custom Op)框架,包含 Python 公共 API、C++ pybind11 原生模块绑定、插件发现与加载机制、以及注册/桥接基础设施。该框架允许用户以 Python 类的方式定义 GE 自定义算子,并通过 EagerExecuteOp 接口在运行时与 GE 执行上下文交互。

主要改动

  • custom_op/ 包结构建立:新增 __init__.py(懒加载导出)、base.pyBaseCustomOp / EagerExecuteOp 抽象基类)、registry.pyregister_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_tensormalloc_output_tensormalloc_workspace 等方法),runtime_type_binding.cc 绑定 TensorShapeStorageShapeStorageFormatKernelArgsTensorPlacement 等运行时类型。
  • _ge_custom_op_native.pyi 类型桩文件:为原生模块提供完整的 Python 类型注解(含 ShapeTensorKernelArgsEagerOpExecutionContext 等类的属性与方法签名),支持 IDE 智能提示与静态检查。
  • 单元测试覆盖:新增 python_custom_op_test.py,覆盖 register_custom_op 装饰器注册/去重/校验、桥接持有器生命周期与 call_execute 调用、环境变量路径插件加载、以及错误路径(缺失文件、无效 descriptor_key)的异常断言。
likedislike
atomgit-bot
atomgit-bot
6月30日 评论:

🤖 AI Code Review

⚠️ 自定义模型 Provider 调用失败

本次审查使用的自定义模型 Provider 无法正常调用,已停止重试。

请检查 Provider 配置:

  • Base URL 是否正确、网络是否可达
  • API Key 是否有效
  • 模型名称是否存在

修正配置后,重新触发审查即可。

追踪 ID: task-33227-run-31259

likedislike
duhuaduhua成员
6月30日 update merge request[project id: 8824148, iid: 3794, commit_id: 01a7f78780e84c1c9659aad748e011908c2d3772] virtual merging success
此处折叠了7条事件消息 查看更多
duhuaduhua成员
7月6日 virtual merging failed, update merge request[project_id: 8824148, iid: 3794, target_commit_sha: 89521d71e67c87548daf8376638b73734476bdfe], message: MR has no commits
CANN-robot
CANN-robot成员
7月6日 评论:

Warning

The PR commit(s) can not be got, please check it!

likedislike
duhuaduhua成员
7月6日 update merge request[project id: 8824148, iid: 3794, commit_id: 78a20f18eec93d672b0375f7a697b23315b8c699] virtual merging success
duhuaduhua成员
7月6日 推送  1 个提交:76e12a09-添加安装 es_all.whl 步骤,运行 python es_gen_air.py 依赖
duhuaduhua成员
7月6日 update merge request[project id: 8824148, iid: 3794, commit_id: b445ce8243100685c4fe700945b84b24da4df218] virtual merging success
CANN-robotCANN-robot成员
7月6日 删除了label:stat/needs-squash
CANN-robot
CANN-robot成员
7月6日 评论:

Notification

This pull request has been changed(code update) or closed, so removes the following label(s): stat/needs-squash.

likedislike
CANN-robotCANN-robot成员
7月6日 将yangyongqiang0606,kobemini,tangqunzhang,xchu42,hugo111,lining23666,fu-jun2,depeng1994,wqtshg_wt,peiyang,shengnan666,zhangfan_hanq,zhanj,zhujingjing,Mexyy,wangxiaotian995,stevenaw0,yuht9设为评审人
CANN-robotCANN-robot成员
7月6日 将yangyongqiang0606,kobemini,tangqunzhang,xchu42,hugo111,lining23666,fu-jun2,depeng1994,wqtshg_wt,peiyang,shengnan666,zhangfan_hanq,zhanj,zhujingjing,Mexyy,wangxiaotian995,stevenaw0,yuht9设为审查人
duhua
duhua成员
7月6日 评论:

compile

likedislike
duhuaduhua成员
7月6日 update merge request[project id: 8824148, iid: 3794, commit_id: dda65281e66604c4b0c14271ccfbdc072e23bd89] virtual merging success
CANN-robotCANN-robot成员
7月6日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
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执行结束

likedislike
CANN-robot
CANN-robot成员
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执行结束

likedislike
CANN-robotCANN-robot成员
7月6日 添加了label:api-check-pass
CANN-robotCANN-robot成员
7月6日 删除了label:api-check-pass
CANN-robot
CANN-robot成员
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执行结束

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

/lgtm

likedislike
夏国正成员
7月6日 评论:

/lgtm

likedislike
CANN-robotCANN-robot成员
7月6日 添加了label:lgtm
zhanj
zhanj成员
7月7日 评论:

/approve

likedislike
CANN-robotCANN-robot成员
7月7日 添加了label:approved
CANN-robotCANN-robot成员
7月7日 合入了pull request