forked from PaddlePaddle/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
【映射文档】在映射主目录中补全已有文档的条目 (PaddlePaddle#6656)
* fix 5 inconsistent api items * update validator * update pytorch_api_mapping_cn.md * pre-commit
- Loading branch information
1 parent
0a895a7
commit 4be8fb4
Showing
6 changed files
with
983 additions
and
629 deletions.
There are no files selected for viewing
This file contains 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 +1,2 @@ | ||
docs_mappings.json | ||
pytorch_api_mapping_cn.tmp.md |
29 changes: 13 additions & 16 deletions
29
...t/convert_from_pytorch/api_difference/functional/torch.nn.functional.softmax.md
This file contains 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,27 +1,24 @@ | ||
## [ 仅参数名不一致 ]torch.nn.functional.softmax | ||
## [ torch 参数更多 ]torch.nn.functional.softmax | ||
|
||
### [torch.nn.functional.softmax](https://pytorch.org/docs/stable/generated/torch.nn.functional.softmax.html?highlight=softmax#torch.nn.functional.softmax) | ||
### [torch.nn.functional.softmax](https://pytorch.org/docs/stable/generated/torch.nn.functional.softmax.html#torch.nn.functional.softmax) | ||
|
||
```python | ||
torch.nn.functional.softmax(input, | ||
dim=None, | ||
dtype=None) | ||
torch.nn.functional.softmax(input, dim=None, _stacklevel=3, dtype=None) | ||
``` | ||
|
||
### [paddle.nn.functional.softmax](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/softmax_cn.html) | ||
### [paddle.nn.functional.softmax](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/softmax_cn.html#softmax) | ||
|
||
```python | ||
paddle.nn.functional.softmax(x, | ||
axis=- 1, | ||
dtype=None, | ||
name=None) | ||
paddle.nn.functional.softmax(x, axis=-1, dtype=None, name=None) | ||
``` | ||
|
||
两者功能一致,仅参数名不一致,具体如下: | ||
PyTorch 相比 Paddle 支持更多其他参数,具体如下: | ||
|
||
### 参数映射 | ||
|
||
| PyTorch | PaddlePaddle | 备注 | | ||
| ------------- | ------------ | ------------------------------------------------------ | | ||
| input | x | 表示输入 Tensor ,仅参数名不一致。 | | ||
| dim | axis | 表示对输入 Tensor 运算的轴 ,仅参数名不一致。 | | ||
| dtype | dtype | 表示输入 Tensor 的数据类型 。 | | ||
| PyTorch | PaddlePaddle | 备注 | | ||
| --------- | -------------- | ----------------------------------------------------- | | ||
| input | x | 表示输入张量,仅参数名不一致。 | | ||
| dim | axis | 表示对输入 Tensor 进行运算的轴,仅参数名不一致。 | | ||
| dtype | dtype | 表示返回张量所需的数据类型。 | | ||
| _stacklevel | - | Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | |
File renamed without changes.
24 changes: 0 additions & 24 deletions
24
...l_convert/convert_from_pytorch/api_difference/nn/torch.nn.functional.softmax.md
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.