Skip to content

Conversation

@wangxicoding
Copy link
Contributor

PR types

Bug fixes

PR changes

APIs

Describe

Cherry-pick from #30526
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.

@wangxicoding wangxicoding requested a review from fuyinno4 January 19, 2021 13:05
@fuyinno4 fuyinno4 merged commit 436144e into PaddlePaddle:release/2.0 Jan 19, 2021
@wangxicoding wangxicoding deleted the cherry_fix_adamw_dygraph branch January 21, 2021 10:37
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