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.64 - 78 #5915

Merged
merged 6 commits into from
Jun 20, 2023
Merged

映射文档 No.64 - 78 #5915

merged 6 commits into from
Jun 20, 2023

Conversation

co63oc
Copy link
Contributor

@co63oc co63oc commented Jun 1, 2023

#5691

映射文档 No.64 65 69 71 73 74 75 76 77 78

paddle.fluid.core.Generator
paddle.optimizer.Optimizer.step 没有文档

部分API未添加为已有文档

@paddle-bot
Copy link

paddle-bot bot commented Jun 1, 2023

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

@huajiao-hjyp
Copy link
Collaborator

@co63oc 冲突也需要解决一下~

@co63oc
Copy link
Contributor Author

co63oc commented Jun 12, 2023

@co63oc 冲突也需要解决一下~

已删除重复接口


| PyTorch | PaddlePaddle | 备注 |
| ------- | ------------ | --------------------------------------------------- |
| arg | layers | Layers 或可迭代的 name Layer 对,仅参数名不一致。 |
Copy link
Collaborator

Choose a reason for hiding this comment

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

torch支持的类型更多

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已修改

m2 = torch.nn.RNNCell(input_size, hidden_size,bias=False)

# Paddle 写法
m1 = paddle.nn.SimpleRNNCell(input_size, hidden_size,
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个写法不是bias_ih_attr=False 吗

@@ -1,4 +1,4 @@
## [参数名不一致]torch.nn.Sequential
## [参数用法不一致]torch.nn.Sequential
Copy link
Collaborator

Choose a reason for hiding this comment

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

分类可以算 参数不一致

具体的用法不一致可以写到下面

@zhwesky2010 zhwesky2010 merged commit a3424f5 into PaddlePaddle:develop Jun 20, 2023
@co63oc co63oc deleted the doc0601 branch July 25, 2023 05:10
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.

4 participants