Skip to content

Commit 85115d2

Browse files
authored
【映射文档】更新部分修复的 API 文档 part.2 (#6699)
* add torch.nn.GLU.md * update torch.svd_lowrank
1 parent cf335ee commit 85115d2

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## [仅参数名不一致]torch.nn.GLU
2+
3+
### [torch.nn.GLU](https://pytorch.org/docs/stable/generated/torch.nn.GLU.html#torch.nn.GLU)
4+
5+
```python
6+
torch.nn.GLU(dim=-1)
7+
```
8+
9+
### [paddle.nn.GLU](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/GLU_cn.html)
10+
11+
```python
12+
paddle.nn.GLU(axis=-1, name=None)
13+
```
14+
15+
两者功能一致且参数用法一致,仅参数名不一致,具体如下:
16+
17+
### 参数映射
18+
19+
| PyTorch | PaddlePaddle | 备注 |
20+
| ------- | ------------ | --------------------------------------------------------------------------------------------------------------- |
21+
| dim | axis | GLU 划分输入的轴,仅参数名不一致。 |

docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.svd_lowrank.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ torch.svd_lowrank(A, q=6, niter=2, M=None)
99
### [paddle.linalg.svd_lowrank](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/svd_lowrank_cn.html)
1010

1111
```python
12-
paddle.linalg.svd_lowrank(x, q=None, niter=2, M=None name=None)
12+
paddle.linalg.svd_lowrank(x, q=None, niter=2, M=None, name=None)
1313
```
1414

1515
两者功能一致,仅参数名不一致,具体如下:

0 commit comments

Comments
 (0)