已合并
fix test_autograd to avoid calling policy_fn during recompute #44660
SCh_zx创建于 10 天前
fix test_autograd to avoid calling policy_fn during recompute #44660
已合并
Pull Request已成功合入, 合并人@ascend-robot
(感谢 SCh_zx 的贡献)ascend-robot
10 天前 评论:
10 天前 评论:
atomgit-bot
10 天前 评论:
10 天前 评论:
变更摘要
该 PR 主要针对上游社区对设备索引命名的调整,对相关测试用例做适配性修改,属于测试代码的同步更新,不涉及运行时逻辑或接口变更。具体包括将 test/test_autograd.py 中的装饰器 skipIfMps 统一改名为 skipIfMPS,并同步更新 test/unsupported_test_cases/.pytorch-disabled-tests.json 中被禁用用例的设备标识,使其与新的索引命名保持一致。
主要改动
- 装饰器改名: 在
test/test_autograd.py中,将导入项及全部用例装饰器@skipIfMps统一更名为@skipIfMPS,相关跳过逻辑不变,仅符号大小写发生调整。 - 禁用用例名适配: 在
test/unsupported_test_cases/.pytorch-disabled-tests.json中,将test_sparse_ctor_getter_backward_privateuse1_float64改为test_sparse_ctor_getter_backward_npu_float64,将test_view_copy_privateuse1改为test_view_copy_npu。 - 测试适配范围: 上述两处改动均与设备索引(
privateuse1→npu)和装饰器命名同步相关,目的是让测试用例匹配上游最新的索引命名,未改变任何被测功能行为。


atomgit-bot
10 天前 评论:
10 天前 评论:
此处折叠了59条消息 查看更多
8 天前 添加了label:approved
Jingwei Huang
8 天前 评论:
8 天前 评论:
/lgtm


8 天前 添加了label:lgtm
8 天前 合入了pull request
ascend-robot
8 天前 评论:
8 天前 评论:
流水线 pytorch_gitcode_PR_multiVersion#14101 [ commitID:fe58e627 ] 已完成


【合入来源】
【修改方案】
原生社区中针对索引有所修改,修改用例以适配:
【资料变更】
【接口变更】
【功能验证】
【CheckList】