Skip to content

Conversation

@wangxicoding
Copy link
Contributor

@wangxicoding wangxicoding commented Jan 18, 2021

PR types

Bug fixes

PR changes

APIs

Describe

Fix bug in #30130
We use _lr_to_coeff to cache the coeff result. But in dygraph mode, apply_gradient will be executed every step and recompute a new coeff value. So need to clear _lr_to_coeff every step, otherwise _lr_to_coeff will be fixed.

@paddle-bot-old
Copy link

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

Copy link
Contributor

@gongweibao gongweibao left a comment

Choose a reason for hiding this comment

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

LGTM

@wangxicoding wangxicoding merged commit 7a0a576 into PaddlePaddle:develop Jan 19, 2021
wangxicoding added a commit to wangxicoding/Paddle that referenced this pull request Jan 19, 2021
@wangxicoding wangxicoding deleted the fix_adamw_dygraph branch January 21, 2021 10:38
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