已合并
【社区任务】Ascend for PyTorch测试用例解耦(7)交付件 #40
【社区任务】Ascend for PyTorch测试用例解耦(7)交付件 #40
已合并
costan创建于 19 天前
costan
costan
19 天前

本次提交为【社区任务】 Ascend for PyTorch测试用例解耦(7)交付件,包含解耦交付报告与 NPU 验证结果,用于任务验收。
关联任务issue:https://gitcode.com/Ascend/pytorch-ecosystem/issues/7

任务信息

  • 目标测试文件:test/ao/sparsity/test_scheduler.py
  • 场景:场景三(无需解耦改造,NPU 测试通过)
  • 涉及模块:AO / Sparsity(torch.ao.pruning 稀疏化调度器)
  • 交付路径:01_tasks/2026/test_case_refactoring/test_scheduler_用例硬件解耦交付报告.md

核心结论

1、经逐项排查,test_scheduler.py 无硬件耦合点(无 CUDA 硬编码、无 @onlyCUDA、无设备分支、无 instantiate_device_type_tests),属于社区规范类型三。本次仅按 HardwareClassification 规范为 TestScheduler、TestCubicScheduler 标注 hw_classification = HardwareClassification.GENERIC,未改动任何测试方法、用例数量或执行语义,不影响原有 CPU/GPU 社区 CI。

2、PyTorch 上游社区 PR:https://github.com/pytorch/pytorch/pull/193588 ,状态:Merged。

3、TorchNPU 变更:无需修改。本次仅涉及测试类 GENERIC 标注,不涉及加速器适配代码、算子实现或 Patch 清理,TorchNPU 侧无对应变更。

4、NPU 验证:已在 910B3(A2) 与 Ascend950PR(A5) 完成自测,共 6 个用例,通过 6,失败 0,跳过 0。全部用例 NPU 验证通过。

验证摘要

平台 用例数 通过 失败 跳过 结论
910B3(A2) 6 6 0 0 通过
Ascend950PR(A5) 6 6 0 0 通过

运行命令:

python test/test_ao_sparsity.py -k ao.sparsity.test_scheduler -v
likedislike
Pull Request已成功合入, 合并人@ascend-robot
(感谢 costan 的贡献)
ascend-robotascend-robot成员
19 天前 添加了label:ascend-cla/yes
ascend-robot
ascend-robot成员
19 天前 评论:

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.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.


PR Approval Progress

✅ Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
repo-Ascend/pytorch-ecosystem ✅ qianxiyue, xuyun15 (2/2) ✅ qianxiyue (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

ljfnjj1234567, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
costan
costan
19 天前 评论:

compile

likedislike
costancostan
18 天前 修改标题为 “[社区任务】Ascend for PyTorch测试用例解耦(20)交付件”,原标题为“docs: add test_scheduler case decoupling delivery report”
此处折叠了9条事件消息 查看更多
ascend-robotascend-robot成员
17 天前 删除了label:stat/needs-squash
ascend-robot
ascend-robot成员
17 天前 评论:

Notification

This pull request has been changed(code update) or closed, so removes the following label(s): stat/needs-squash.

likedislike
ascend-robotascend-robot成员
17 天前 添加了label:ascend-cla/yes
此处折叠了12条事件消息 查看更多
ascend-robotascend-robot成员
14 天前 添加了label:ascend-cla/yes
hid87721478成员
13 天前 评论:

/approve

likedislike
ascend-robotascend-robot成员
13 天前 添加了label:approved
xuyun15成员
4 天前 评论:

/lgtm

likedislike
ascend-robotascend-robot成员
4 天前 添加了label:lgtm
ascend-robotascend-robot成员
4 天前 关闭了关联的issue
ascend-robotascend-robot成员
4 天前 合入了pull request