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

映射文档 No. 303/330/336 #6076

Merged
merged 1 commit into from
Aug 3, 2023
Merged

Conversation

co63oc
Copy link
Contributor

@co63oc co63oc commented Jul 29, 2023

PaddlePaddle/PaConvert#112

303 torch.special.erfcx 组合替代实现
330 torch.special.xlogy 组合替代实现
336 torch.optim.lr_scheduler.LinearLR 功能缺失

@paddle-bot
Copy link

paddle-bot bot commented Jul 29, 2023

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-6076.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:飞桨文档预览工具

@co63oc co63oc changed the title 映射文档 No. 303 映射文档 No. 303/330/336 Jul 29, 2023
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Jul 31, 2023
### [torch.optim.lr_scheduler.LinearLR](https://pytorch.org/docs/stable/generated/torch.optim.lr_scheduler.LinearLR.html#torch.optim.lr_scheduler.LinearLR)

```python
torch.optim.lr_scheduler.LinearLR(optimizer, start_factor=0.3333333333333333, end_factor=1.0, total_iters=5, last_epoch=- 1, verbose=False)
Copy link
Collaborator

Choose a reason for hiding this comment

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

这两个API是不是差异挺大的,LinearWarmup的输入参数还包含另外一个scheduler

Copy link
Contributor Author

Choose a reason for hiding this comment

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

查看已有 paddle.optimizer.lr.* 文档是这样转写

Copy link
Collaborator

Choose a reason for hiding this comment

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

LinearWarmup的功能主要分两段,后一段的功能应该是对不上的,没有的话就按功能缺失来吧

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已修改

Copy link
Collaborator

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

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

LGTM

@zhwesky2010 zhwesky2010 merged commit dddccd3 into PaddlePaddle:develop Aug 3, 2023
1 check passed
@co63oc co63oc deleted the api303 branch August 30, 2023 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants