-
Notifications
You must be signed in to change notification settings - Fork 871
[Doc] 增加api_difference校验脚本,手动修复部分差异文档 #7552
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
Merged
zhwesky2010
merged 4 commits into
PaddlePaddle:develop
from
hd9568:auto_generate_invok_diff_only_doc
Oct 14, 2025
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
4 changes: 0 additions & 4 deletions
4
...vert_from_pytorch/api_difference/args_default_value_diff/torch.alpha_dropout.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
...rom_pytorch/api_difference/args_default_value_diff/torch.cuda.amp.GradScaler.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
...om_pytorch/api_difference/args_default_value_diff/torch.nn.functional.rrelu_.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
...ytorch/api_difference/args_default_value_diff/torch.nn.functional.threshold_.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
...vert/convert_from_pytorch/api_difference/args_default_value_diff/torch.rrelu.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
...onvert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.addmm.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
...nvert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.addmm_.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
...onvert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.atan2.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,17 @@ | ||
| ## [ 仅参数名不一致 ]torch.Tensor.atan2 | ||
|
|
||
| ### [torch.Tensor.atan2](https://pytorch.org/docs/stable/generated/torch.atan2.html#torch.atan2) | ||
|
|
||
| ```python | ||
| torch.Tensor.atan2(other) | ||
| ``` | ||
|
|
||
| ### [paddle.Tensor.atan2](https://www.paddlepaddle.org.cn/documentation/docs/en/develop/api/paddle/Tensor_en.html) | ||
|
|
||
| ```python | ||
| paddle.Tensor.atan2(y, name=None) | ||
| ``` | ||
|
|
||
| 两者功能一致且参数用法一致,仅参数名不一致,具体如下: | ||
|
|
||
| ### 参数映射 | ||
|
|
||
| | PyTorch | PaddlePaddle | 备注 | | ||
| | --------- | ------------ | --------------------------------- | | ||
| | other | y | 表示输入的 Tensor ,仅参数名不一致。 | |
4 changes: 0 additions & 4 deletions
4
...vert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.baddbmm.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
...ert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.baddbmm_.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
.../convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.bitwise_and.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,17 @@ | ||
| ## [ 仅参数名不一致 ]torch.Tensor.bitwise_and | ||
|
|
||
| ### [torch.Tensor.bitwise_and](https://pytorch.org/docs/stable/generated/torch.Tensor.bitwise_and.html) | ||
|
|
||
| ```python | ||
| torch.Tensor.bitwise_and(other) | ||
| ``` | ||
|
|
||
| ### [paddle.Tensor.bitwise_and]() | ||
|
|
||
| ```python | ||
| paddle.Tensor.bitwise_and(y) | ||
| ``` | ||
|
|
||
| 两者功能一致且参数用法一致,仅参数名不一致,具体如下: | ||
|
|
||
| ### 参数映射 | ||
|
|
||
| | PyTorch | PaddlePaddle | 备注 | | ||
| | ------------- | ------------ | ------------------------------------------------------ | | ||
| | other | y | 表示输入的 Tensor ,仅参数名不一致。 | |
4 changes: 0 additions & 4 deletions
4
...convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.bitwise_and_.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,17 @@ | ||
| ## [ 仅参数名不一致 ]torch.Tensor.bitwise_and_ | ||
|
|
||
| ### [torch.Tensor.bitwise_and_](https://pytorch.org/docs/stable/generated/torch.Tensor.bitwise_and_.html) | ||
|
|
||
| ```python | ||
| torch.Tensor.bitwise_and_(other) | ||
| ``` | ||
|
|
||
| ### [paddle.Tensor.bitwise_and_]() | ||
|
|
||
| ```python | ||
| paddle.Tensor.bitwise_and_(y) | ||
| ``` | ||
|
|
||
| 两者功能一致且参数用法一致,仅参数名不一致,具体如下: | ||
|
|
||
| ### 参数映射 | ||
|
|
||
| | PyTorch | PaddlePaddle | 备注 | | ||
| | ------------- | ------------ | ------------------------------------------------------ | | ||
| | other | y | 表示输入的 Tensor ,仅参数名不一致。 | |
4 changes: 0 additions & 4 deletions
4
...t/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.bitwise_or.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,17 @@ | ||
| ## [ 仅参数名不一致 ]torch.Tensor.bitwise_or | ||
|
|
||
| ### [torch.Tensor.bitwise_or](https://pytorch.org/docs/stable/generated/torch.Tensor.bitwise_or.html) | ||
|
|
||
| ```python | ||
| torch.Tensor.bitwise_or(other) | ||
| ``` | ||
|
|
||
| ### [paddle.Tensor.bitwise_or]() | ||
|
|
||
| ```python | ||
| paddle.Tensor.bitwise_or(y) | ||
| ``` | ||
|
|
||
| 两者功能一致且参数用法一致,仅参数名不一致,具体如下: | ||
|
|
||
| ### 参数映射 | ||
|
|
||
| | PyTorch | PaddlePaddle | 备注 | | ||
| | ------------- | ------------ | ------------------------------------------------------ | | ||
| | other | y | 表示输入的 Tensor ,仅参数名不一致。 | |
4 changes: 0 additions & 4 deletions
4
.../convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.bitwise_xor.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,17 @@ | ||
| ## [ 仅参数名不一致 ]torch.Tensor.bitwise_xor | ||
|
|
||
| ### [torch.Tensor.bitwise_xor](https://pytorch.org/docs/stable/generated/torch.Tensor.bitwise_xor.html) | ||
|
|
||
| ```python | ||
| torch.Tensor.bitwise_xor(other) | ||
| ``` | ||
|
|
||
| ### [paddle.Tensor.bitwise_xor]() | ||
|
|
||
| ```python | ||
| paddle.Tensor.bitwise_xor(y) | ||
| ``` | ||
|
|
||
| 两者功能一致且参数用法一致,仅参数名不一致,具体如下: | ||
|
|
||
| ### 参数映射 | ||
|
|
||
| | PyTorch | PaddlePaddle | 备注 | | ||
| | ------------- | ------------ | ------------------------------------------------------ | | ||
| | other | y | 表示输入的 Tensor ,仅参数名不一致。 | |
4 changes: 0 additions & 4 deletions
4
...convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.bitwise_xor_.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,17 @@ | ||
| ## [ 仅参数名不一致 ]torch.Tensor.bitwise_xor_ | ||
|
|
||
| ### [torch.Tensor.bitwise_xor_](https://pytorch.org/docs/stable/generated/torch.Tensor.bitwise_xor_.html) | ||
|
|
||
| ```python | ||
| torch.Tensor.bitwise_xor_(other) | ||
| ``` | ||
|
|
||
| ### [paddle.Tensor.bitwise_xor_]() | ||
|
|
||
| ```python | ||
| paddle.Tensor.bitwise_xor_(y) | ||
| ``` | ||
|
|
||
| 两者功能一致且参数用法一致,仅参数名不一致,具体如下: | ||
|
|
||
| ### 参数映射 | ||
|
|
||
| | PyTorch | PaddlePaddle | 备注 | | ||
| | ------------- | ------------ | ------------------------------------------------------ | | ||
| | other | y | 表示输入的 Tensor ,仅参数名不一致。 | |
4 changes: 0 additions & 4 deletions
4
...convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.broadcast_to.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,17 @@ | ||
| ## [ 仅参数名不一致 ]torch.Tensor.broadcast_to | ||
|
|
||
| ### [torch.Tensor.broadcast\_to](https://pytorch.org/docs/stable/generated/torch.Tensor.broadcast_to.html) | ||
|
|
||
| ```python | ||
| torch.Tensor.broadcast_to(size) | ||
| ``` | ||
|
|
||
| ### [paddle.Tensor.broadcast\_to](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#broadcast-to-shape-name-none) | ||
|
|
||
| ```python | ||
| paddle.Tensor.broadcast_to(shape, name=None) | ||
| ``` | ||
|
|
||
| 其中 PyTorch 和 Paddle 功能一致,仅参数名不一致,具体如下: | ||
|
|
||
| ### 参数映射 | ||
|
|
||
| | PyTorch | PaddlePaddle | 备注 | | ||
| | ------- | ------------ | -- | | ||
| | size | shape | 给定输入 x 扩展后的形状,仅参数名不一致。 | |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
看大部分的改动都是这个空行,这个地方也不用改。
这里是自动生成刷新,还是手动改的。
目前有可以自动生成的没,第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.
有些文件格式不统一,利用脚本对文件进行统一处理了一下,会导致有些文件有一些冗余处理,但是操作应该不可逆