Skip to content

[Docathon][Update Doc No.28] add the LRScheduler #7182

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

Merged
merged 2 commits into from
Mar 31, 2025

Conversation

Echo-Nie
Copy link
Contributor

@Echo-Nie
Copy link
Contributor Author

@DrRyanHuang pls review

@DrRyanHuang DrRyanHuang self-assigned this Mar 31, 2025
@@ -67,3 +67,6 @@

* :code:`CosineAnnealingWarmRestarts`: 余弦退火学习率,即学习率随 step 数变化呈余弦函数周期变化。
相关 API Reference 请参考 :ref:`cn_api_paddle_optimizer_lr_CosineAnnealingWarmRestarts`

* :code:`LRScheduler`: 学习率策略基类,所有具体策略均继承自此类,需重写 get_lr() 方法实现自定义逻辑。
相关 API Reference 请参考 :ref:`_cn_api_paddle_optimizer_lr_LRScheduler`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
相关 API Reference 请参考 :ref:`_cn_api_paddle_optimizer_lr_LRScheduler`
相关 API Reference 请参考 :ref:`cn_api_paddle_optimizer_lr_LRScheduler `

上面的 _cn_api_paddle_optimizer_lr_CyclicLR_cn_api_paddle_optimizer_lr_LinearLR 也有这个问题

辛苦同学参考预览链接 preview-pr-7182,一起改下

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Collaborator

@DrRyanHuang DrRyanHuang left a comment

Choose a reason for hiding this comment

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

@DrRyanHuang DrRyanHuang merged commit f1c4b19 into PaddlePaddle:develop Mar 31, 2025
2 checks passed
@Echo-Nie Echo-Nie deleted the 28lr branch April 4, 2025 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants