已合并
test(fx): add NPU coverage for PropagateUnbackedSymInts and rebind_unbacked #37265
lihaofei-2026创建于 5月31日
test(fx): add NPU coverage for PropagateUnbackedSymInts and rebind_unbacked #37265
已合并
从已删除 :symbolic-shapes-propagate-unbacked-symints-v2.9.0合入到Ascend/pytorchv2.9.0
Pull Request已成功合入, 合并人@ascend-robot
(感谢 lihaofei-2026 的贡献)5月31日 创建了 pull request,commit 1a77990b
5月31日 关联了issue:【开源实习】Torch-NPU API一致性对齐:补齐测试用例、API功能对齐、补齐文档(13)
ascend-robot
5月31日 评论:
5月31日 评论:
5月31日 添加了label:ascend-cla/no
ascend-robot
5月31日 评论:
5月31日 评论:
CLA Signature Guide
@lihaofei-2026 , thanks for your pull request.
The following commit(s) have not signed Contributor License Agreement (CLA).
| Commit | Reason |
|---|---|
| 441616fa test(fx): add NPU coverage for P... | it's an invalid email! please check it. |
If you need to sign CLA, you can click here to sign the CLA.
If you need to check if the email is set up correctly, you can click here to do it in the FAQs.
After signing the CLA or updating the email, you must comment /check-cla to check the CLA status again.


此处折叠了54条消息 查看更多
sunyu-xuan
6月4日 评论:
6月4日 评论:
/lgtm


6月5日 添加了label:approvedlgtm
6月5日 合入了pull request
ascend-robot
6月5日 评论:
6月5日 评论:
流水线 pytorch_gitcode_PR_multiVersion#10098 [ commitID:9a329231 ] 已完成


【合入来源】
【修改方案】
PropagateUnbackedSymInts.output
PropagateUnbackedSymInts.placeholder
PropagateUnbackedSymInts.run
PropagateUnbackedSymInts.run_node
rebind_unbacked
新增用例必要性分析:
结论:属于「迁移上游间接覆盖 + NPU 设备路径补齐 + 弱覆盖补独立断言」,不是重复建设
【资料变更】
经核查官方文档目录,本次涉及的 API 属于 torch.fx.experimental 下的编译期实验性内部接口,非对外暴露的常规 Native API,无需在文档中补充登记。
【接口变更】
不涉及
【功能验证】
测试场景:验证 PropagateUnbackedSymInts 类和 rebind_unbacked 函数在NPU张量下的功能正确性
测试方法:
测试用例覆盖:
本 PR 不是对上游已有测试文件进行 NPU 适配,因此不涉及 test_upstream patch 文件修改。

测试命令及结果:
python /workspace/user_data/pytorch-v2.9.0/test/fx/test_fx_propagate_unbacked_symints.py
【CheckList】