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

【Hackathon 5th No.45】映射文档73, 74 #6487

Closed
wants to merge 2 commits into from

Conversation

longranger2
Copy link
Contributor

@longranger2 longranger2 commented Jan 20, 2024

73 torch.optim.Optimizer.zero_grad,pytorch参数更多,标注到 pytorch_api_mapping_cn.md 文件中。
74 torch.nn.modules.batchnorm._NormBase,功能缺失,标注到 pytorch_api_mapping_cn.md 文件中。

Copy link

paddle-bot bot commented Jan 20, 2024

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

@longranger2 longranger2 changed the title 【Hackathon 5th No.45】映射文档64, 68, 74 【Hackathon 5th No.45】映射文档73, 74 Jan 21, 2024
### [paddle.optimizer.Optimizer.clear_grad](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/optimizer/Optimizer_cn.html#clear-grad)

```python
paddle.optimizer.Optimizer.clear_grad()
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个还有一个参数:
infoflow 2024-01-22 11-58-24

@@ -524,6 +524,7 @@
| REFERENCE-MAPPING-ITEM(`torch.nn.parameter.Parameter`, https://github.com/PaddlePaddle/docs/tree/develop/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.nn.parameter.Parameter.md) |
| NOT-IMPLEMENTED-ITEM(`torch.nn.MultiLabelMarginLoss`, https://pytorch.org/docs/stable/generated/torch.nn.MultiLabelMarginLoss) |
| NOT-IMPLEMENTED-ITEM(`torch.nn.CTCLoss`, https://pytorch.org/docs/stable/generated/torch.nn.CTCLoss.html#torch.nn.CTCLoss) |
| [torch.nn.modules.batchnorm._NormBase]([https://pytorch.org/docs/stable/generated/torch.nn.MultiLabelMarginLoss](https://github.com/pytorch/pytorch/blob/a1b3b5748f5b8edfda1ff0fb159037eed3b669f1/torch/nn/modules/batchnorm.py#L17)) | 功能缺失 |
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个你检查下这个文件里的Norm基类class:python/paddle/nn/layer/norm.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor PaddlePaddle Hackathon 飞桨黑客松活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants