-
Notifications
You must be signed in to change notification settings - Fork 871
[Docs] 修改rst文件路径适配paddle url, 同步paconvert修改部分api的类别,完善差异文档生成脚本 #7571
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
Changes from all commits
f99e365
15ca0a6
c40d152
b573125
77e6741
42bc66d
e3ee9df
6b366cd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,21 @@ | ||
| ## [ 仅参数名不一致 ]torch.Tensor.hardshrink | ||
| ### [torch.Tensor.hardshrink](https://pytorch.org/docs/stable/generated/torch.Tensor.hardshrink.html?highlight=torch+tensor+hardshrink#torch.Tensor.hardshrink) | ||
|
|
||
| ### [torch.Tensor.hardshrink](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.hardshrink) | ||
|
|
||
| ```python | ||
| torch.Tensor.hardshrink(lambd=0.5) | ||
| ``` | ||
|
|
||
| ### [paddle.nn.functional.hardshrink](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/hardshrink_cn.html#hardshrink) | ||
| ### [paddle.nn.functional.hardshrink](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/hardshrink_cn.html#paddle/nn/functional/hardshrink_cn#cn-api-paddle-nn-functional-hardshrink) | ||
|
|
||
| ```python | ||
| paddle.nn.functional.hardshrink(x, threshold=0.5, name=None) | ||
| ``` | ||
|
|
||
| 仅参数名不一致,具体如下。 | ||
| 两者功能一致,仅参数名不一致,具体如下: | ||
|
|
||
| ### 参数映射 | ||
|
|
||
| | PyTorch | PaddlePaddle | 备注 | | ||
| |-----------------------------------|------------------------------| ------------------------------------------------------ | | ||
| | <font color='red'> lambd </font> | <font color='red'> threshold </font> | Hardshrink 阈值,仅参数名不一致。 | | ||
| | PyTorch | PaddlePaddle | 备注 | | ||
| | ------- | ------------ | ----------------------------- | | ||
| | lambd | threshold | 阈值,仅参数名不一致,功能一致 | | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 类方法改普通方法,统一在前面加一个 | self | x | (这个描述你想想怎么描述) | |
||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
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.
这里的paconvert实现有点问题,这个数据是冗余的,这个仍然是 仅API调用方式不一致
后面有个地方要注意:就是paconvert数据可能不一定准确,你要注意自己看下api_difference是不是正确的,如果api_difference明显不对,那么说明paconvert可能是错的。paconvert的问题同样需要修复。