已合并
test: fix failed test cases in test_optim #35789
test: fix failed test cases in test_optim #35789
已合并
21xiu创建于 5月15日
21xiu
21xiu成员
5月15日

【合入来源】

如有社区issue,请关联issue链接
请勿携带内部流程信息(需求链接、问题单、内部issue等)

【修改方案】

修复test_optim失败的测试用例:

  1. RMSprop优化器内部实现依赖张量操作,将test_rmsprop(optim.test_optim.TestDifferentiableOptimizer)中的state["step"]=0修改为state["step"]=torch.zeros(())
  2. GPU版本已删除代码块,删除用例test_sgd(optim.test_optim.TestOptim)
  3. GPU版本已删除测试,删除用例test_sparse_adam(optim.test_optim.TestOptim)

【资料变更】

不涉及

【接口变更】

不涉及

【功能验证】

test_rmsprop.png

【CheckList】

PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x]

likedislike
Pull Request已成功合入, 合并人@ascend-robot
(感谢 21xiu 的贡献)
21xiu21xiu成员
5月15日 创建了 pull request,commit 541dc279
ascend-robot
ascend-robot成员
5月15日 评论:

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 htchu, ffmh (2/2) htchu (1/1)

💡 Tip:

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

CLA Signature Pass

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

likedislike
ascend-robotascend-robot成员
5月15日 添加了label:ascend-cla/yes
ascend-robot
ascend-robot成员
5月15日 评论:

当前仓库存在以下 保护分支

Protected Branch Version Release
master
v2.7.1
v2.11.0
v2.9.0
v2.10.0
v2.12.0

评论 /sync <branch1> <branch2> ... 可将当前 PR 修改同步到其它分支(创建同步 PR):
a) 如果当前 PR 是 Open 状态,同步操作将延迟到 PR 被合并时执行
b) 如果当前 PR 已经 Merged,将立即执行同步操作

注意:

  1. /sync 命令可以指定同步到多个分支,仅最后一个 /sync 命令生效
  2. 如果创建的同步 PR 不正确,可通过向同步 PR 的源分支提交轻量级 PR 完善,或使用 /close 命令关闭
likedislike
21xiu
21xiu成员
5月15日 评论:

compile

likedislike
ascend-robot
ascend-robot成员
5月15日 评论:

Ascend docs pipeline is running...

likedislike
ascend-robotascend-robot成员
5月15日 添加了label:docs-ci-pipeline-running
ascend-robot
ascend-robot成员
5月15日 评论:

✅ 跳过 docs ci 检查,没有需要检查的文档文件

likedislike
ascend-robotascend-robot成员
5月15日 删除了label:docs-ci-pipeline-running
此处折叠了5条事件消息 查看更多
ascend-robotascend-robot成员
5月15日 添加了label:ci-pipeline-passed
ascend-robot
ascend-robot成员
5月15日 评论:
流水线 PR-pipeline_pytorch#22761 (重试第1次)已完成
阶段 任务名 状态 详情
编译构建 Build_X86 >>>
Build_ARM >>>
Build_LibTorch_x86 >>>
Build_LibTorch_ARM >>>
Build_X86_torchair 🛑 >>>
Build_ARM_torchair 🛑 >>>
patch_test 🛑 >>>
恶意代码检查 Antipoison >>>
编码安全与规范检查 CodeCheck >>>
check_error >>>
开源片段检查 SCA >>>
开发者测试 UT_X86_Part_01 🛑 >>>
UT_X86_Part_02 🛑 >>>
UT_ARM_A3_Part_01 🛑 >>>
UT_ARM_A3_Part_02 🛑 >>>
UT_ARM_A2_Part_01 >>>
UT_ARM_A2_Part_02 >>>
UT_ARM_A2_Part_03 >>>
UT_inductor_Part_01_pool 🛑 >>>
UT_inductor_Part_02_pool 🛑 >>>
UT_inductor_Part_03_pool 🛑 >>>
UT_inductor_Part_04_pool 🛑 >>>
UT_DIST_ARM_Part_01 🛑 >>>
UT_DIST_ARM_Part_02 🛑 >>>
UT_DIST_ARM_Part_03 🛑 >>>
UT_DIST_ARM_Part_04 🛑 >>>
流水线 PR-pipeline_pytorch >>>
likedislike
21xiu21xiu成员
5月20日 update merge request[project id: 7404318, iid: 35789, commit_id: d7aa6d01252f66882aaf0348f8a389a809bdf197] virtual merging success
21xiu21xiu成员
5月20日 推送  1 个提交:8572af7f-fix: ensure state[step] is float64 in test_rmsprop
21xiu21xiu成员
5月20日 update merge request[project id: 7404318, iid: 35789, commit_id: 0cbcd90b87b6c51dd0a7373f0a0fed6aec47d946] virtual merging success
ascend-robotascend-robot成员
5月20日 添加了label:stat/needs-squash
ascend-robotascend-robot成员
5月20日 删除了label:ci-pipeline-passed
ascend-robotascend-robot成员
5月20日 添加了label:ci-pipeline-passed
ascend-robot
ascend-robot成员
5月20日 评论:

Notification

This pull request source branch has changed, so removes the following label(s): ci-pipeline-passed.

likedislike
21xiu
21xiu成员
5月20日 评论:

compile

likedislike
ascend-robotascend-robot成员
5月20日 删除了label:ci-pipeline-passed
ascend-robotascend-robot成员
5月20日 添加了label:ci-pipeline-running
ascend-robot
ascend-robot成员
5月20日 评论:

Ascend docs pipeline is running...

likedislike
ascend-robotascend-robot成员
5月20日 删除了label:docs-ci-pipeline-success
ascend-robotascend-robot成员
5月20日 添加了label:docs-ci-pipeline-running
ascend-robot
ascend-robot成员
5月20日 评论:

✅ 跳过 docs ci 检查,没有需要检查的文档文件

likedislike
ascend-robotascend-robot成员
5月20日 删除了label:docs-ci-pipeline-running
ascend-robotascend-robot成员
5月20日 添加了label:docs-ci-pipeline-success
ascend-robot
ascend-robot成员
5月20日 评论:

Ascend docs pipeline is running...

likedislike
ascend-robotascend-robot成员
5月20日 删除了label:docs-ci-pipeline-success
ascend-robotascend-robot成员
5月20日 添加了label:docs-ci-pipeline-running
ascend-robot
ascend-robot成员
5月20日 评论:

✅ 跳过 docs ci 检查,没有需要检查的文档文件

likedislike
ascend-robotascend-robot成员
5月20日 删除了label:docs-ci-pipeline-running
ascend-robotascend-robot成员
5月20日 添加了label:docs-ci-pipeline-success
ascend-robotascend-robot成员
5月20日 删除了label:ci-pipeline-running
ascend-robotascend-robot成员
5月20日 添加了label:ci-pipeline-passed
ascend-robot
ascend-robot成员
5月20日 评论:
流水线 PR-pipeline_pytorch#23954 [ commitID:8572af7f ] 已完成
阶段 任务名 状态 详情
编译构建 Build_X86 >>>
Build_ARM >>>
Build_LibTorch_x86 >>>
Build_LibTorch_ARM >>>
Build_X86_torchair 🛑 >>>
Build_ARM_torchair 🛑 >>>
patch_test 🛑 >>>
恶意代码检查 Antipoison >>>
编码安全与规范检查 CodeCheck >>>
check_error >>>
CodeCheck_lintrunner >>>
开源片段检查 SCA >>>
开发者测试 UT_X86_Part_01 🛑 >>>
UT_X86_Part_02 🛑 >>>
UT_ARM_A3_Part_01 🛑 >>>
UT_ARM_A3_Part_02 🛑 >>>
UT_ARM_A2_Part_01 >>>
UT_ARM_A2_Part_02 >>>
UT_ARM_A2_Part_03 >>>
UT_inductor_Part_01 🛑 >>>
UT_inductor_Part_02 🛑 >>>
UT_inductor_Part_03 🛑 >>>
UT_inductor_Part_04 🛑 >>>
UT_DIST_ARM_Part_01 🛑 >>>
UT_DIST_ARM_Part_02 🛑 >>>
UT_DIST_ARM_Part_03 🛑 >>>
UT_DIST_ARM_Part_04 🛑 >>>
流水线 PR-pipeline_pytorch >>>
likedislike
ffmh
ffmh成员
5月20日 评论:

/lgtm

likedislike
htchu成员
5月20日 评论:

/approve

likedislike
ascend-robotascend-robot成员
5月20日 添加了label:approvedlgtm
ascend-robot
ascend-robot成员
5月20日 评论:

Review Guide

This pull-request passes review.
Committers who wrote a comment of /approve are: htchu.
Reviewers who wrote a comment of /lgtm are: ffmh, htchu.

likedislike
ascend-robotascend-robot成员
5月20日 合入了pull request