-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Dy2St] Refactor dy2st unittest decorators name - Part 4 #58465
[Dy2St] Refactor dy2st unittest decorators name - Part 4 #58465
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
@@ -351,7 +350,7 @@ def init_dygraph_func(self): | |||
self.dygraph_func = test_return_in_while_2 | |||
self.error = "Found return statement in While or For body and loop" | |||
|
|||
@ast_only_test | |||
@test_ast_only | |||
def test_transformed_static_result(self): | |||
super().test_transformed_static_result() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
看了一下,这个文件没必要测 sot,直接在基类上装饰 test_ast_only
即可,没必要 x2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
之前的想法应该是只有部分case想跑ast
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to_static
已经传入 full_graph=True
了,只能跑 AST,即便开启 SOT 也是无效的,参数优先级高于环境变量
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR types
Others
PR changes
Others
Description
替换为全新的动转静单测机制
相关链接: