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. 370 #6116

Merged
merged 2 commits into from
Sep 4, 2023
Merged

映射文档 No. 370 #6116

merged 2 commits into from
Sep 4, 2023

Conversation

co63oc
Copy link
Contributor

@co63oc co63oc commented Aug 22, 2023

PaddlePaddle/PaConvert#112

370 torch.nn.functional.dropout1d

paddle.nn.functional.dropout(x, p=0.5, axis=None, training=True, mode='upscale_in_train', name=None)
```

其中 PyTorch 相比 Paddle 支持更多其他参数,具体如下:
Copy link
Collaborator

Choose a reason for hiding this comment

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

可以再详细一点解释下两者细微差异,torch对于dropout1d/dropout2d/dropout3d,是将某个Channel以一定概率全部置0,paddle是所有元素以一定概率置0
然后再说下 但该差异一般不影响网络训练效果

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.

dropout2d、dropout3d的文档也顺便一起补上吧

@zhwesky2010 zhwesky2010 merged commit 3c32768 into PaddlePaddle:develop Sep 4, 2023
@co63oc
Copy link
Contributor Author

co63oc commented Sep 5, 2023

dropout2d、dropout3d的文档也顺便一起补上吧

增加 torch.nn.functional.dropout2d/dropout3d
#6161

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants