已合并
feat: 自定义算子 AnnotatedArgsOp 地址刷新接口 Python 化 #4254
shangdf创建于 16 天前
feat: 自定义算子 AnnotatedArgsOp 地址刷新接口 Python 化 #4254
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 shangdf 的贡献)16 天前 添加了label:stat/needs-squash
16 天前 添加了label:cann-cla/yes
CANN-robot
16 天前 评论:
16 天前 评论:
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 | ✅ hugo111, 张德鹏, kobemini (3/2) | ✅ 张德鹏 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
shangdf, thanks for your pull request. All authors of the commits have signed the CLA. 👍


16 天前 将yangyongqiang0606,kobemini,tangqunzhang,xchu42,hugo111,lining23666,fu-jun2,depeng1994,wqtshg_wt,peiyang,shengnan666,zhangfan_hanq,zhanj,zhujingjing,Mexyy,wangxiaotian995,stevenaw0,yuht9设为评审人
16 天前 将yangyongqiang0606,kobemini,tangqunzhang,xchu42,hugo111,lining23666,fu-jun2,depeng1994,wqtshg_wt,peiyang,shengnan666,zhangfan_hanq,zhanj,zhujingjing,Mexyy,wangxiaotian995,stevenaw0,yuht9设为评审人
此处折叠了273条消息 查看更多
9 天前 添加了label:lgtm
9 天前 添加了label:approved
9 天前 合入了pull request
Pull Request
描述
完成
AnnotatedArgsOp地址刷新接口 Python 化。本 PR 仅保留核心实现与测试:declare_launch_args生成 AnnotatedArgs TaskDef。AnnotatedArgsContext、Tensor、workspace、kernel args builder 等 Python 包装,覆盖作用域、签名校验、异常转换和 builder 消费语义。_custom_task_args_mode;模型加载时以该显式模式为准。没有该属性的旧 OM 才使用 registry 查询和args_format兼容兜底。CustomTaskArgsMode,编译期记录最终刷新方式,运行期优先按该模式选择路径并兼容老 OM。资料和可运行 example 已拆分至 PR 4316,本 PR 最终 diff 不再包含
docs/或examples/:本 PR 直接复用
develop已合入的两个前置任务,不再重复实现:append_input/append_output使用 input/output 实例平铺 index。变更类型
关联 Issue
无。
验证结果
develop增量编译:ut_libge_multiparts_utest、graph_engine_test构建通过。2653 passed, 8 skipped。651 passed, 1 skipped。build_fwk.sh在 ASANLD_PRELOAD环境下的子进程gcc探测通过。核对清单
本轮检视修复
CustomTaskArgsMode,显式区分None、AnnotatedArgs和UpdateCallback,保留旧 OM 兼容路径。_validate_args_signature。gcc子进程继承LD_PRELOAD导致 Python CI 在 pytest 前退出的问题。develop的 Python 自定义算子原型类型定义和 workspace 两阶段申请逻辑,PR 冲突已消除。