已合并
[UT] adapt 4 official testcase files for dynamo module(test_optimizers.py test_hooks.py test_debug_utils.py test_bytecode_hook.py) #8820
AtomGit-Bot创建于 2024年1月8日
[UT] adapt 4 official testcase files for dynamo module(test_optimizers.py test_hooks.py test_debug_utils.py test_bytecode_hook.py) #8820
已合并
AtomGit-Bot创建于 2024年1月8日
AtomGit-Bot
2024年1月8日

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind bug
/kind task
/kind feature

What does this PR do / why do we need it:
1、Add and Adapt 4 official source UT files for dynamo module
test_optimizers.py
test_hooks.py
test_debug_utils.py
test_bytecode_hook.py

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewers:

likedislike
Pull Request已成功合入, 合并人@
(感谢 AtomGit-Bot 的贡献)
AAtomGit-Bot
2024年1月8日 添加了 &nbsp; ascend-cla/yes 标签
atlasaccount1
atlasaccount1
2024年1月8日 评论:

流水线任务触发成功,正在执行,请稍候。 任务链接[c49517bec3bf47f19541c35a589aa071]

likedislike
atlasaccount1atlasaccount1
2024年1月8日 添加了 &nbsp; ci-pipeline-running 标签
atlasaccount1
atlasaccount1
2024年1月8日 评论:


SCA扫描: success

# check type result report
1 sca success >>>

likedislike
atlasaccount1
atlasaccount1
2024年1月8日 评论:


静态检查: no pass

# check type result report
1 codecheck no pass >>>

likedislike
atlasaccount1atlasaccount1
2024年1月8日 移除了 &nbsp; ci-pipeline-running 标签
atlasaccount1atlasaccount1
2024年1月8日 添加了 &nbsp; ci-pipeline-failed 标签
AAtomGit-Bot
2024年1月8日 推送了代码
atlasaccount1atlasaccount1
2024年1月8日 移除了 &nbsp; ci-pipeline-failed 标签
atlasaccount1atlasaccount1
2024年1月8日 添加了 &nbsp; ci-pipeline-running 标签
atlasaccount1
atlasaccount1
2024年1月8日 评论:


静态检查: no pass

# check type result report
1 codecheck no pass >>>

likedislike
atlasaccount1atlasaccount1
2024年1月8日 移除了 &nbsp; ci-pipeline-running 标签
atlasaccount1atlasaccount1
2024年1月8日 添加了 &nbsp; ci-pipeline-failed 标签
AAtomGit-Bot
2024年1月8日 推送了代码
AAtomGit-Bot
2024年1月8日 强制推送 了代码
atlasaccount1atlasaccount1
2024年1月8日 移除了 &nbsp; ci-pipeline-failed 标签
atlasaccount1atlasaccount1
2024年1月8日 添加了 &nbsp; ci-pipeline-running 标签
atlasaccount1
atlasaccount1
2024年1月8日 评论:


静态检查: no pass

# check type result report
1 codecheck no pass >>>

likedislike
atlasaccount1atlasaccount1
2024年1月8日 移除了 &nbsp; ci-pipeline-running 标签
atlasaccount1atlasaccount1
2024年1月8日 添加了 &nbsp; ci-pipeline-failed 标签
atlasaccount1atlasaccount1
2024年1月8日 移除了 &nbsp; ci-pipeline-failed 标签
atlasaccount1atlasaccount1
2024年1月8日 添加了 &nbsp; ci-pipeline-running 标签
atlasaccount1
atlasaccount1
2024年1月8日 评论:


静态检查: pass

# check type result report
1 codecheck pass >>>

likedislike
atlasaccount1atlasaccount1
2024年1月8日 移除了 &nbsp; ci-pipeline-running 标签
atlasaccount1atlasaccount1
2024年1月8日 添加了 &nbsp; ci-pipeline-passed 标签
misty-rain-typhoid2024年1月8日进行代码检视1
test/dynamo/test_bytecode_hook.py
@@ -0,0 +2,4 @@
2+ 
3+import torch
4+import torch_npu
5+import torch._dynamo.test_case
misty-rain-typhoid2024年1月8日评论:

import库的顺序换一下

likedislike
misty-rain-typhoid2024年1月8日进行代码检视1
test/dynamo/test_bytecode_hook.py
@@ -0,0 +11,4 @@
11+ return a - b * 10
12+ 
13+ def hook(code, out_code):
14+ return code
misty-rain-typhoid2024年1月8日评论:

这个print是为什么存在?

likedislike
AAtomGit-Bot
2024年1月8日 强制推送 了代码
atlasaccount1
atlasaccount1
2024年1月8日 评论:

流水线任务触发成功,正在执行,请稍候。 任务链接[530cef1dff894bbd9902b79d575d4785]

likedislike
atlasaccount1atlasaccount1
2024年1月8日 移除了 &nbsp; ci-pipeline-passed 标签
atlasaccount1atlasaccount1
2024年1月8日 添加了 &nbsp; ci-pipeline-running 标签
atlasaccount1
atlasaccount1
2024年1月8日 评论:


SCA扫描: success

# check type result report
1 sca success >>>

likedislike
atlasaccount1
atlasaccount1
2024年1月8日 评论:


静态检查: pass

# check type result report
1 codecheck pass >>>

likedislike
atlasaccount1atlasaccount1
2024年1月8日 移除了 &nbsp; ci-pipeline-running 标签
atlasaccount1atlasaccount1
2024年1月8日 添加了 &nbsp; ci-pipeline-passed 标签
AAtomGit-Bot
2024年1月9日 添加了 &nbsp; lgtm 标签
dilililiwhy1
2024年1月9日 评论:

/approve

likedislike
AAtomGit-Bot
2024年1月9日 添加了 &nbsp; approved 标签
AAtomGit-Bot
2024年1月9日 合并了Pull Request(通过 API 合并)
atlasaccount1
atlasaccount1
2024年1月9日 评论:


静态检查: pass

# check type result report
1 codecheck pass >>>

likedislike