Skip to content
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. 362 #6114

Merged
merged 1 commit into from
Aug 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## [ 仅参数名不一致 ]torch.special.softmax

### [torch.special.softmax](https://pytorch.org/docs/stable/special.html#torch.special.softmax)

```python
torch.special.softmax(input, dim, *, dtype=None)
```

### [paddle.nn.functional.softmax](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/softmax_cn.html)

```python
paddle.nn.functional.softmax(x, axis=- 1, dtype=None, name=None)
```

两者功能一致,仅参数名不一致,具体如下:
### 参数映射
| PyTorch | PaddlePaddle | 备注 |
| ------- | ------------ | --------------------------------------------- |
| input | x | 表示输入 Tensor ,仅参数名不一致。 |
| dim | axis | 表示对输入 Tensor 运算的轴 ,仅参数名不一致。 |
| dtype | dtype | 表示输入 Tensor 的数据类型 。 |