-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Fix/adam float64 #10407
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
Fix/adam float64 #10407
Conversation
@dzhwinter Should this also be done in |
That's true. Done. |
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, thanks for the PR Zhihong.
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.
@dzhwinter : It seems that changing the datatype to float64, we get an error:
paddle.fluid.core.EnforceNotMet: Tensor holds the wrong type, it holds f at [/paddle/paddle/fluid/framework/tensor_impl.h:84]
Did I miss something?
@sidgoyal78 also need to change the optimizer datatype. |
@dzhwinter Do you have an example? I don't quite understand how we could change the optimizer datatype. (Since, in the optimizer API we don't have the |
fix #10405