Merged
fix(torchair): operator.getitem 保持 python原生执行路径,修复 torch2.15 下 converter 拒收报错 #3933
陈木氵Add on 23 days ago
fix(torchair): operator.getitem 保持 python原生执行路径,修复 torch2.15 下 converter 拒收报错 #3933
Merged
Pull Request has been successfully merged by ascend-robot.
(Thank you for 陈木氵's contribution.)atomgit-bot
23 days ago Comments:
23 days ago Comments:
atomgit-bot
23 days ago Comments:
23 days ago Comments:
23 days ago Added label: ascend-cla/yes
23 days ago Added label: needs-issue
75 messages are collapsed here。 See more
20 days ago Added label: ci-pipeline-passed
20 days ago Closed associated issue
20 days ago Merged pull request
ascend-robot
20 days ago Comments:
20 days ago Comments:
Pull Request 已合并或已关闭。
If you want to solve this problem, you can click here to do it in the FAQs.


ascend-robot
20 days ago Comments:
20 days ago Comments:
Pull Request 已合并或已关闭。
If you want to solve this problem, you can click here to do it in the FAQs.


当前PR是否有AI参与:
[x] 否
[ ] 是
__1. AI Agent 平台:
__2. AI 模型:
__3. Prompt上下文 :
PR功能描述 / 为什么需要这个合入**:
torch 2.15 起 operator.getitem 被注册为 polyfill 并从 trace_rules._builtin_function_ids
移除,_wrap 门控翻转后 getitem 节点落入 converter 分发,因非 OpOverload 被拒收:
普通构图报 "Failed to auto-generated converter ... not an instance of OpOverload",
record_ascend_ir 模式经 mock 路径报 "ge_outputs must be list or a tuple."。
新增 _is_direct_eval_builtin():将 operator.getitem 显式纳入 python原生执行 路径
(对多输出算子的 ValuePack 列表取下标,不产生 GE 节点)。版本比较使用 packaging.version,
不能用字符串比较("2.9" >= "2.15" 按字符串为 True)。torch 2.13/2.15 双版本回归通过。
该PR关联的issue
(格式为fixes #<issue号>, 或者resolves #<issue号>): fixes #933
希望检视人员了解: