-
Notifications
You must be signed in to change notification settings - Fork 762
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
【映射文档】补全缺失的映射文档 #6519
【映射文档】补全缺失的映射文档 #6519
Conversation
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-6519.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
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.
fairscale那些不用写,是一个torch的分布式加速库,是另一名同学开发的Matcher,后续让他统一补充
os、setuptools这些特殊的不用写
你这边只需要补充剩余的 torch.*
| PyTorch | PaddlePaddle | 备注 | | ||
| ------- | ------------ | -- | | ||
| input | x | 输入 Tensor,仅参数名不一致。 | | ||
| p | p | 范数(ord)的种类。PyTorch 支持 "nuc", "fro" 与任意数值(包括 inf 和 -inf),Paddle 暂不支持 "nuc"。 | |
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.
这个Paddle是支持的,注意查一下API升级里面的:linaglg.norm改动
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.norm与torch.linalg.norm的行为不一致,当前是与后者进行了对齐
docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.rrelu.md
Show resolved
Hide resolved
docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.selu.md
Show resolved
Hide resolved
docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.true_divide.md
Show resolved
Hide resolved
|
||
### [torch.utils.data.RandomSampler](https://pytorch.org/docs/stable/data.html#torch.utils.data.RandomSampler) | ||
|
||
``` |
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.
```python
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.
已添加于 #6541
...es/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.data.RandomSampler.md
Outdated
Show resolved
Hide resolved
@@ -1,4 +1,4 @@ | |||
## [ 参数不一致 ]torch.norm | |||
## [ torch 参数更多 ]torch.norm |
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.norm
这个API可能存在一些更深层次的 API功能不一致 的问题,下个PR改一下吧,可能不仅仅是文档,Matcher、单测 同时存在问题 -
torch.trunc_divide
还没有实现,使用组合实现:paddle.divide
+paddle.trunc
,torch.floor_divide
直接对应paddle.floor_divide
,后面确认一下
当前存量的缺失映射文档仍有 33 条,列表如下: