已合并
[v2.9.0] cherry-pick v2.7.1_fix_ut: remove unskip #37616
ffmh创建于 6月4日
[v2.9.0] cherry-pick v2.7.1_fix_ut: remove unskip #37616
已合并
ffmh成员
6月4日
6月4日
# 【合入来源】
> **如有社区issue,请关联issue链接**\
> **请勿携带内部流程信息(需求链接、问题单、内部issue等)**
- [ ] 需求
- [x] 问题单
- [ ] issue/工单
- [ ] 重构优化
- [ ] 资料更新
# 【修改方案】
> 请描述修改内容的具体实现,涉及哪些组件之间进行交互,可以用1、2、3、...进行罗列\
> 如果是需求或者重构类的PR,需要补充详细设计文档(说明上下游组件关系、时序图、类图、DFX能力等内容)
Cherry-pick de67e68db from v2.7.1_fix_ut
移除 test/optim/test_fused_optimizers.py 中 3 处 `@unittest.skip("Temporarily skipping")` 装饰器,重新启用以下测试用例:
1. test_unscale
2. test_simple_model_train_dynamic
3. test_simple_model_train_static
# 【资料变更】
> 请确认是否涉及资料变更。如涉及,需要在PR中体现,并简要说明修改内容。如不涉及,需填写"不涉及"
不涉及
# 【接口变更】
> 请确认是否涉及跨代码仓或者客户面可见的接口变更。如涉及,需要详细说明接口以及对应的变更内容,同时需要在资料中体现。如不涉及,需填写"不涉及"
不涉及
# 【功能验证】
> 说明测试场景,测试方法。如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤\
> 新增/变更内容是否已新增/适配UT测试用例看护,并补充测试自验证截图
重新启用 test_fused_optimizers.py 中被跳过的 3 个测试用例,验证 NPU 上 fused optimizer 的 unscale 和 dynamic/static training 功能正常。
# 【CheckList】
> PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x]
- [x] 代码注释完备,正确记录错误日志
- [x] 代码实现进行了返回值、空指针等校验
- [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等
- [x] PR持续集成流水线(CI)执行通过,代码检查无异常


Pull Request已成功合入, 合并人@ascend-robot
(感谢 ffmh 的贡献)ascend-robot
6月4日 评论:
6月4日 评论:
6月4日 添加了label:ascend-cla/yes
ascend-robot
6月4日 评论:
6月4日 评论:
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
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| test | ✅ liangsongwei, chengpeng25 (2/2) | ✅ liangsongwei (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
ffmh, thanks for your pull request. All authors of the commits have signed the CLA. 👍


ascend-robot
6月4日 评论:
6月4日 评论:
当前仓库存在以下 保护分支 :
| Protected Branch | Version | Release |
|---|---|---|
| master | ||
| v2.7.1 | ||
| v2.10.0 | ||
| v2.9.0 | ||
| v2.11.0 | ||
| v2.12.0 | ||
| ci-test | ||
| sync-pr28113--to-v2.9.0 |
评论 /sync <branch1> <branch2> ... 可将当前 PR 修改同步到其它分支(创建同步 PR):
a) 如果当前 PR 是 Open 状态,同步操作将延迟到 PR 被合并时执行
b) 如果当前 PR 已经 Merged,将立即执行同步操作
注意:
- /sync 命令可以指定同步到多个分支,仅最后一个 /sync 命令生效
- 如果创建的同步 PR 不正确,可通过向同步 PR 的源分支提交轻量级 PR 完善,或使用 /close 命令关闭


此处折叠了60条消息 查看更多
6月8日 合入了pull request
ascend-robot
6月8日 评论:
6月8日 评论:
流水线 pytorch_gitcode_PR_multiVersion#10237 [ commitID:8539eff2 ] 已完成


ffmh
6月10日 评论:
6月10日 评论:
/sync v2.9.0-26.1.0


ascend-robot
6月10日 评论:
6月10日 评论:
In response to this:
/sync v2.9.0-26.1.0
同步操作执行结果:
| Branch | Status | Pull Request |
|---|---|---|
| v2.9.0-26.1.0 | 创建同步 PR | https://gitcode.com/Ascend/pytorch/merge_requests/38151 |


6月12日 added a commit that referenced this pull request
- 99258382 - [sync] PR-37616: [v2.9.0] cherry-pick v2.7.1_fix_ut: remove unskip
Co-authored-by: ffmh
# message auto-generated for no-merge-commit merge:
!38151 merge sync-pr37616-v2.9.0_fix_ut-to-v2.9.0-26.1.0 into v2.9.0-26.1.0
[sync] PR-37616: [v2.9.0] cherry-pick v2.7.1_fix_ut: remove unskip
Created-by: ascend-ds-bot
Commit-by: ffmh
Merged-by: ascend-robot
Description:
### 1. Origin pull request:
https://gitcode.com/Ascend/pytorch/merge_requests/37616
### 2. Original pull request related issue(s):
### 3. Original pull request related commit(s):
| Sha | Datetime | Message |
|---|---|---|
|[8539eff2](https://gitcode.com/Ascend/pytorch/commit/8539eff2a64807f1bc4451fcb3ecb988dc8fd108)|2026-06-05 15:09:52 +0800 CST|fix lint: remove trailing whitespace
| |[f9e715d7](https://gitcode.com/Ascend/pytorch/commit/f9e715d73d44224c560cab65cd042eded4a1f5fc)|2026-06-04 17:06:55 +0800 CST|remove unskip
| See merge request: Ascend/pytorch!38151- [#37616](https://gitcode.com/Ascend/pytorch/merge_requests/37616)
6月12日 added a commit that referenced this pull request
- 99258382 - [sync] PR-37616: [v2.9.0] cherry-pick v2.7.1_fix_ut: remove unskip
Co-authored-by: ffmh
# message auto-generated for no-merge-commit merge:
!38151 merge sync-pr37616-v2.9.0_fix_ut-to-v2.9.0-26.1.0 into v2.9.0-26.1.0
[sync] PR-37616: [v2.9.0] cherry-pick v2.7.1_fix_ut: remove unskip
Created-by: ascend-ds-bot
Commit-by: ffmh
Merged-by: ascend-robot
Description:
### 1. Origin pull request:
https://gitcode.com/Ascend/pytorch/merge_requests/37616
### 2. Original pull request related issue(s):
### 3. Original pull request related commit(s):
| Sha | Datetime | Message |
|---|---|---|
|[8539eff2](https://gitcode.com/Ascend/pytorch/commit/8539eff2a64807f1bc4451fcb3ecb988dc8fd108)|2026-06-05 15:09:52 +0800 CST|fix lint: remove trailing whitespace
| |[f9e715d7](https://gitcode.com/Ascend/pytorch/commit/f9e715d73d44224c560cab65cd042eded4a1f5fc)|2026-06-04 17:06:55 +0800 CST|remove unskip
| See merge request: Ascend/pytorch!38151- [#37616](https://gitcode.com/Ascend/pytorch/merge_requests/37616)