-
Notifications
You must be signed in to change notification settings - Fork 765
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
Conversation
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-6487.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
### [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() |
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.
@@ -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)) | 功能缺失 | |
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.
这个你检查下这个文件里的Norm基类class:python/paddle/nn/layer/norm.py
73 torch.optim.Optimizer.zero_grad,pytorch参数更多,标注到 pytorch_api_mapping_cn.md 文件中。
74 torch.nn.modules.batchnorm._NormBase,功能缺失,标注到 pytorch_api_mapping_cn.md 文件中。