-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
replace NaturalExpDecay, ExponentialDecay, InverseTimeDecay with 2.0 version #54424
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
lr = natural_exp_decay( | ||
1.0, lr_decay_steps, lr_scheduler.gamma, True | ||
lr = paddle.optimizer.lr.NaturalExpDecay( | ||
1.0, lr_scheduler.gamma |
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.
这个地方的return从一个 Tensor变成Class了,需要检查下能否这么改
@@ -181,68 +180,6 @@ def exponential_decay(learning_rate, decay_steps, decay_rate, staircase=False): | |||
return decayed_lr | |||
|
|||
|
|||
def natural_exp_decay(learning_rate, decay_steps, decay_rate, staircase=False): |
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.
目前看 https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/jit/dy2static/utils.py#L122 函数式LRDecay提供了动转静的功能,这里不建议直接移除。这个PR中可以专注把fluid旧的class类型的LRDecay替换并移除。
Sorry to inform you that 68ebf55's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
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.
no doc'c changes. LGTM
PR types
Others
PR changes
APIs
Description