-
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
[CodeStyle] Add CI for checking enable_to_static
in related test files
#60037
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
可以在 CI 上测一下:
|
✅验证单测中有
|
python/paddle/tensor/math.py
Outdated
""" | ||
paddle.jit.enable_to_static(True) | ||
paddle.jit.enable_to_static(False) | ||
if x.dtype not in [ |
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.
test/legacy_test/test_data.py
Outdated
|
||
paddle.jit.enable_to_static(True) | ||
paddle.jit.enable_to_static(False) | ||
|
||
|
||
if __name__ == "__main__": |
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.
✅验证单测中有 enable_to_static 会报错
2023-12-15 17:52:52 ****************-----------------
2023-12-15 17:52:52 +++ b/test/legacy_test/test_data.py + paddle.jit.enable_to_static(True) + paddle.jit.enable_to_static(False) +
2023-12-15 17:52:52 + paddle.jit.enable_to_static(True) + paddle.jit.enable_to_static(False)
2023-12-15 17:52:52 ****************-----------------
2023-12-15 17:53:25 ****************
2023-12-15 17:53:25 0. You must have one RD (SigureMo, Aurelius84 or 2742195759) approval for using 'paddle.jit.enable_to_static', we recommend using 'enable_to_static_guard' in the related test files.
2023-12-15 17:53:25 There are 1 approved errors.
2023-12-15 17:53:25 ****************
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
添加阻止在单测中使用
paddle.jit.enable_to_static
的 CI。enable_to_static_guard
推全 #59684