-
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
[Dy2stat] Change the Global Switch Name of ProgramTranslator for API 2.0 #27203
[Dy2stat] Change the Global Switch Name of ProgramTranslator for API 2.0 #27203
Conversation
Thanks for your contribution! |
c843f53
to
0681abf
Compare
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.
LGTM
@@ -300,16 +300,17 @@ def __call__(self, *args, **kwargs): | |||
""" | |||
|
|||
# 1. call dygraph function directly if not enable `declarative` | |||
if not self._program_trans.enable_declarative: | |||
if not self._program_trans.enable_static: |
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.
maybe enable_to_static
is better? keep consistent with paddle.jit.to_static
because we have paddle.disable_static
, users may be confused whether it is related to enable_static
here
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.
Done
702d8e8
… change_global_switch_name, test=develop
… change_global_switch_name, test=develop
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.
LGTM
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.
LGTM
PR types
Others
PR changes
APIs
Describe
Change ProgramTranslator.enable_declarative to ProgramTranslator.enable_to_static to meet API 2.0