已合并
【社区任务】Ascend for PyTorch测试用例解耦(1)交付件 #35
村雨雨雨创建于 17 天前
【社区任务】Ascend for PyTorch测试用例解耦(1)交付件 #35
已合并
Pull Request已成功合入, 合并人@ascend-robot
(感谢 村雨雨雨 的贡献)17 天前 关联了issue:【社区任务】Ascend for PyTorch测试用例解耦(1)【已领取】,【社区任务】Ascend for PyTorch测试用例解耦(11)【已领取】
17 天前 添加了label:ascend-cla/yes
ascend-robot
17 天前 评论:
17 天前 评论:
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
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
Murasame_214, thanks for your pull request. All authors of the commits have signed the CLA. 👍


17 天前 修改了pull request 的描述
此处折叠了25条事件消息 查看更多
10 天前 添加了label:ascend-cla/yes
hid87721478
9 天前 评论:
9 天前 评论:
/approve


9 天前 添加了label:approved
2 天前 添加了label:lgtm
2 天前 合入了pull request
本次提交为【社区任务】Ascend for PyTorch测试用例解耦(1)交付件,目录名与改造测试文件保持一致,包含解耦交付报告、NPU 测试日志、运行截图,用于任务验收。
任务信息
test/ao/sparsity/test_activation_sparsifier.pytorch.ao.pruning._experimental.activation_sparsifier(激活稀疏化)核心结论
1、本用例无硬件耦合:无
cuda硬编码与设备实例、无 CUDA 专属装饰器、无写死 CUDA 的算子与张量、无 CUDA 专属判断分支,张量默认在 CPU 创建,因此按指导书判定为无需解耦改造。已按上游规范为TestActivationSparsifier补充类属性hw_classification = HardwareClassification.GENERIC,改造前后用例集合不变(1 个测试方法;剔除分类属性后 AST 与改动前逐字节一致),不影响原有 CPU/GPU 社区 CI。2、PyTorch 上游社区 PR:https://github.com/pytorch/pytorch/pull/192479 ,状态:Merged(2026-09-14 05:49:13 UTC 合入
main,合入提交6996e37e76ee,改动 +3/−0)。3、TorchNPU 变更:无需修改。本次仅为上游测试类补充硬件分类元数据,不引入新的设备接口,TorchNPU 侧无需同步修改,也不涉及既有 Patch 的替换或删除。
4、NPU 验证:在 A2(Ascend910B3)和 A5(950PR)平台完成自测,共 1 个用例,通过 1,失败 0,跳过 0。两平台均以三个入口验证(目标文件直跑 / 聚合入口 pytest / 聚合入口 unittest),全部
exit=0;上游社区 CI 共 320 项检查,无 failure。交付文件清单
task_1_test_activation_sparsifier/test_activation_sparsifier解耦交付报告.mdtask_1_test_activation_sparsifier/log/A2-test_activation_sparsifier.logtask_1_test_activation_sparsifier/log/A5-test_activation_sparsifier.logtask_1_test_activation_sparsifier/screenshots/A2-environment.png、A2-test_activation_sparsifier.pngtask_1_test_activation_sparsifier/screenshots/A5-environment.png、A5-test_activation_sparsifier.png