-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[AMP] For amp.decorate()
optimizers set to None is ok
#37541
[AMP] For amp.decorate()
optimizers set to None is ok
#37541
Conversation
Thanks for your contribution! |
amp.decorate()
optimizers set to None is ok
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.
plz update the docs.
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
…#37541) * amp.decorate optimizers set to None is ok * refine unittest * add unittest and refine example code * refine unittest
PR types
New features
PR changes
APIs
Describe
For amp-02, origin
paddle.amp.decorate()
, input paramoptimizer
should not be None, now support optimizer to be None.Example:
before:
model, optimizer = paddle.amp.decorate(models=model, optimizers=optimizer)
now:
model = paddle.amp.decorate(models=model, optimizers=None)