Skip to content
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

bugfix: param init with fill constant str_value #33381

Merged
merged 1 commit into from
Jun 9, 2021

Conversation

JZ-LIANG
Copy link
Contributor

@JZ-LIANG JZ-LIANG commented Jun 7, 2021

PR types

Bug fixes

PR changes

OPs

Describe

in fp64 setting, user set beta1_pow_acc = 0.9, beta2_pow_acc = 0.999 for adamw,

before bugfix the actual value are: beta1_pow_acc = 0.8999999761581421, beta2_pow_acc = 0.9990000128746033
after bugfix the actual value are: beta1_pow_acc = 0.9000000000000000, beta2_pow_acc = 0.9990000000000000

fill constant should set str_value attr to preserve precision in fp64 setting

@paddle-bot-old
Copy link

paddle-bot-old bot commented Jun 7, 2021

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Member

@ForFishes ForFishes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ForFishes ForFishes merged commit f249a5f into PaddlePaddle:develop Jun 9, 2021
JZ-LIANG added a commit to JZ-LIANG/Paddle that referenced this pull request Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants