| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
feat: 新增 Python 自定义算子样例及文档 Co-authored-by: du-hua1024<duhua2@huawei.com> # message auto-generated for no-merge-commit merge: !3989 merge op into develop feat: 新增 Python 自定义算子样例及文档 Created-by: du-hua1024 Commit-by: du-hua1024 Merged-by: cann-robot Description: # Pull Request ## 描述 在 args_refresh_add_custom 路径下新增 Python 版本样例,展示通过 Python EagerExecuteOp 在 GE 在线执行中加载 Bisheng 预编译产物,并使用 ACL Python runtime 完成 kernel 参数构造和下发。 主要变更: - 将原 args_refresh_add_custom C++ 样例整理到 cpp/ 目录,保持原 ArgsUpdater 对比样例能力。 - 新增 python/ 样例,包括 REG_OP proto、ES wheel 生成、run.sh、Python custom op 实现和 Session.run_graph 入口。 - Python 样例通过 bisheng 编译 host object,并提取 .aicore_binary 后由 acl.rt.binary_load_from_file 加载。 - 更新 custom op 示例总览和 GE Python custom op 设计文档。 ## 变更类型 请选择本次引入的变更类型: <!-- [x] 表示选中 --> - [ ] 🐛 Bug 修复 - [x] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [x] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [x] 📝 文档内容更新 ## 关联的Issue 无 ## 如何测试 - bash -n examples/custom_op/args_refresh_add_custom/python/run.sh ## 核对清单 <!-- [x] 表示选中 --> - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [x] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如:feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 无 See merge request: cann/ge!3989 | 2 个月前 | |
refactor: 删除 Python custom op 历史 execute(ctx) 接口 Co-authored-by: du-hua1024<duhua2@huawei.com> # message auto-generated for no-merge-commit merge: !4500 merge op into develop refactor: 删除 Python custom op 历史 execute(ctx) 接口 Created-by: du-hua1024 Commit-by: du-hua1024 Merged-by: cann-robot Description: # Pull Request ## 描述 删除 Python custom op 历史 execute(ctx) 接口及相关适配逻辑,统一使用基于 canonical IR 的 schema-bound execute 回调。 主要变更: - 删除 BaseCustomOp、EagerExecuteOp 的 Python 外部继承方式及历史 base.py。 - execute 和 declare_launch_args 统一要求显式声明 -> None,并校验回调实际返回值必须为 None。 - 上下文不再作为 execute 入参,通过 get_execute_ctx() 获取 EagerOpExecutionContext。 - 删除 legacy execute 的 bridge、签名校验、示例和测试适配逻辑。 - 补充 EagerOpExecutionContext、get_execute_ctx、execute 及上下文方法的中文 API 文档。 ## 变更类型 - [ ] 🐛 Bug 修复 - [ ] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [x] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [x] 📝 文档内容更新 ## 关联的Issue 无 ## 如何测试 修改用例执行正常,不影响先有execute example ## 核对清单 - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了静态自测 - [x] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如:feat:、fix:、refactor:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 本 PR 仅保留 schema-bound canonical IR 执行路径,不再兼容历史 execute(ctx) 写法。 See merge request: cann/ge!4500 | 1 个月前 |