-
Notifications
You must be signed in to change notification settings - Fork 752
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. 46 #5854
映射文档 No. 46 #5854
Conversation
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-5854.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
torch.diag和torch.meshgrid的API 映射已在仓库中存在 |
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 参数更多
,保持和其他文件的统一
@@ -0,0 +1,35 @@ | |||
## [仅 torch 参数更多]torch.gcd |
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参数更多 即可~
| ------- | ------------ | --------------------------------------------------- | | ||
| input | x | 表示输入的第一个 Tensor ,仅参数名不一致。 | | ||
| other | y | 表示输入的第二个 Tensor ,仅参数名不一致。 | | ||
| out | | 表示输出的 Tensor,Paddle 无此参数,需要进行转写。 | |
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.
缺失的参数用 - 替代
@@ -0,0 +1,37 @@ | |||
## [仅 torch 参数更多]torch.histc |
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.histogram(input, bins=100, min=0, max=0, name=None) | ||
``` | ||
|
||
其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: |
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.
应该是 其中 PyTorch 相比 Paddle 支持更多其他参数,具体如下:
| bins | bins | 表示直方图直条的个数。 | | ||
| min | min | 表示范围的下边界。 | | ||
| max | max | 表示范围的上边界。 | | ||
| out | | 表示输出的 Tensor,Paddle 无此参数,需要进行转写。 | |
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.
缺失的参数用 - 替代
| ------- | ------------ | --------------------------------------------------- | | ||
| input | input | 表示输入的 Tensor 。 | | ||
| p | p | 表示 p-范数计算的 p 值。| | ||
| dim | axis | 表示切分的维度。 | |
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.
备注可以补充一句 仅参数名不一致
| p | p | 表示 p-范数计算的 p 值。| | ||
| dim | axis | 表示切分的维度。 | | ||
| maxnorm | max_norm | 表示子张量的 p-范数最大值,仅参数名不一致。 | | ||
| out | | 表示输出的 Tensor,Paddle 无此参数,需要进行转写。 | |
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.
缺失的参数用 - 替代
@@ -0,0 +1,23 @@ | |||
## [仅 torch 参数更多]torch.repeat_interleave |
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 参数更多
| input | x | 表示输入的 Tensor ,仅参数名不一致。 | | ||
| repeats | repeats | 表示指定复制次数的 1-D Tensor 或指定的复制次数。 | | ||
| dim | axis | 表示复制取值的维度,仅参数名不一致。 | | ||
| output_size | | 表示给定维度的总输出尺寸,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | |
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.
缺失的参数可以用 - 代替
@@ -0,0 +1,46 @@ | |||
## [仅 torch 参数更多]torch.searchsorted |
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 参数更多
所有问题均已修改更正。 |
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.
LGTM
hi, @xianyu11-x
|
* add md file * fix bug * fix some errors
完成 #5691 中No.46的文档映射工作,其中新增8个api映射文档,有问题请联系