-
Notifications
You must be signed in to change notification settings - Fork 724
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.234/236/237 #5978
映射文档 No.234/236/237 #5978
Conversation
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-5978.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
### [torch.utils.data.Subset](https://pytorch.org/docs/stable/data.html#torch.utils.data.Subset) | ||
|
||
```python | ||
torch.utils.data.Subset(dataset,[0, 2]) |
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.
这个签名不对
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.
Done.
### [paddle.io.Subset](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/io/Subset_cn.html) | ||
|
||
```python | ||
paddle.io.Subset(dataset, [0, 2]) |
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.
这个签名不对
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.
Done.
### [torch.utils.data.TensorDataset](https://pytorch.org/docs/stable/data.html#torch.utils.data.TensorDataset) | ||
|
||
```python | ||
torch.utils.data.TensorDataset(tensor1, tensor2, tensor3) |
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.
这个签名不对
torch是可变参数
paddle是list
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.
Done.
PaddlePaddle/PaConvert#112