Skip to content

Commit 098c765

Browse files
authored
文档格式修改 (#7408)
* update docs * fix format
1 parent 54941df commit 098c765

20 files changed

+39
-39
lines changed

docs/guides/model_convert/convert_from_pytorch/api_difference/torch/torch.abs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ PyTorch 相比 Paddle 支持更多其他参数,具体如下:
2121

2222
| PyTorch | PaddlePaddle | 备注 |
2323
| ------------- | ------------ | ------------------------------------------------------ |
24-
| <font color='red'> input </font> | <font color='red'> x </font> | 输入的 Tensor ,仅参数名不一致。 |
25-
| <font color='red'> out </font> | - | 表示输出的 Tensor,Paddle 无此参数,需要转写。 |
24+
| input | x | 输入的 Tensor ,仅参数名不一致。 |
25+
| out | - | 表示输出的 Tensor,Paddle 无此参数,需要转写。 |
2626

2727

2828
### 转写示例

docs/guides/model_convert/convert_from_pytorch/api_difference/torch/torch.abs_.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ paddle.abs_(x)
1818

1919
| PyTorch | PaddlePaddle | 备注 |
2020
| ------------- | ------------ | ------------------------------------------------------ |
21-
| <font color='red'> input </font> | <font color='red'> x </font> | 输入的 Tensor ,仅参数名不一致。 |
21+
| input | x | 输入的 Tensor ,仅参数名不一致。 |

docs/guides/model_convert/convert_from_pytorch/api_difference/torch/torch.allclose.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ paddle.allclose(x,
2727

2828
| PyTorch | PaddlePaddle | 备注 |
2929
| ------------- | ------------ | ------------------------------------------------------ |
30-
| <font color='red'> input </font> | <font color='red'> x </font> | 输入的 Tensor ,仅参数名不一致。 |
31-
| <font color='red'> other </font> | <font color='red'> y </font> | 输入的 Tensor ,仅参数名不一致。 |
30+
| input | x | 输入的 Tensor ,仅参数名不一致。 |
31+
| other | y | 输入的 Tensor ,仅参数名不一致。 |
3232
| rtol | rtol | 表示相对容忍误差。 |
3333
| atol | atol | 表示绝对容忍误差。 |
3434
| equal_nan | equal_nan | 表示是否将两个 NaN 数值视为相等 。 |

docs/guides/model_convert/convert_from_pytorch/api_difference/torch/torch.argmax.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ paddle.argmax(x,
2323

2424
| PyTorch | PaddlePaddle | 备注 |
2525
| ------------- | ------------ | ------------------------------------------------------ |
26-
| <font color='red'>input</font> | <font color='red'>x</font> | 输入的多维 Tensor ,仅参数名不一致。 |
27-
| <font color='red'> dim </font> | <font color='red'> axis </font> | 指定进行运算的轴,仅参数名不一致。 |
26+
| input | x | 输入的多维 Tensor ,仅参数名不一致。 |
27+
| dim | axis | 指定进行运算的轴,仅参数名不一致。 |
2828
| keepdim | keepdim | 是否在输出 Tensor 中保留减小的维度。 |
29-
| - | <font color='red'> dtype </font> | 输出 Tensor 的数据类型, PyTorch 无此参数, Paddle 保持默认即可。 |
29+
| - | dtype | 输出 Tensor 的数据类型, PyTorch 无此参数, Paddle 保持默认即可。 |

docs/guides/model_convert/convert_from_pytorch/api_difference/torch/torch.argmin.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ paddle.argmin(x,
2323

2424
| PyTorch | PaddlePaddle | 备注 |
2525
| ------------- | ------------ | ------------------------------------------------------ |
26-
| <font color='red'>input</font> | <font color='red'>x</font> | 输入的多维 Tensor ,仅参数名不一致。 |
27-
| <font color='red'> dim </font> | <font color='red'> axis </font> | 指定进行运算的轴,仅参数名不一致。 |
26+
| input | x | 输入的多维 Tensor ,仅参数名不一致。 |
27+
| dim | axis | 指定进行运算的轴,仅参数名不一致。 |
2828
| keepdim | keepdim | 是否在输出 Tensor 中保留减小的维度。 |
29-
| - | <font color='red'> dtype </font> | 输出 Tensor 的数据类型, PyTorch 无此参数, Paddle 保持默认即可。 |
29+
| - | dtype | 输出 Tensor 的数据类型, PyTorch 无此参数, Paddle 保持默认即可。 |

docs/guides/model_convert/convert_from_pytorch/api_difference/torch/torch.argsort.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ paddle.argsort(x, axis=-1, descending=False, stable=False, name=None)
1717

1818
| PyTorch | PaddlePaddle | 备注 |
1919
| ------------- | ------------ | ------------------------------------------------------ |
20-
| <font color='red'>input</font> | <font color='red'>x</font> | 输入的多维 Tensor ,仅参数名不一致。 |
21-
| <font color='red'> dim </font> | <font color='red'> axis </font> | 指定进行运算的轴,仅参数名不一致。 |
20+
| input | x | 输入的多维 Tensor ,仅参数名不一致。 |
21+
| dim | axis | 指定进行运算的轴,仅参数名不一致。 |
2222
| descending | descending | 是否使用降序排列。 |
2323
| stable | stable | 是否使用稳定排序。 |

docs/guides/model_convert/convert_from_pytorch/api_difference/torch/torch.argwhere.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ paddle.nonzero(x, as_tuple=False)
1717

1818
| PyTorch | PaddlePaddle | 备注 |
1919
| ------------- | ------------ | ------------------------------------------------------ |
20-
| <font color='red'>input</font> | <font color='red'>x</font> | 输入的 Tensor ,仅参数名不一致。 |
21-
| - | <font color='red'> as_tuple </font> | 返回格式。是否以 1-D Tensor 构成的元组格式返回。 PyTorch 无此参数, Paddle 保持默认即可。 |
20+
| input | x | 输入的 Tensor ,仅参数名不一致。 |
21+
| - | as_tuple | 返回格式。是否以 1-D Tensor 构成的元组格式返回。 PyTorch 无此参数, Paddle 保持默认即可。 |

docs/guides/model_convert/convert_from_pytorch/api_difference/torch/torch.as_tensor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ paddle.to_tensor(data,
2323
| ------------- | ------------ | ------------------------------------------------------ |
2424
| data | data | 表示输入的 Tensor 。 |
2525
| dtype | dtype | 表示 Tensor 的数据类型。 |
26-
| <font color='red'> device </font> | <font color='red'> place </font> | 表示 Tensor 的存放位置,仅参数名不一致。 |
27-
| - | <font color='red'> stop_gradient </font> | 表示是否阻断梯度传导, PyTorch 无此参数, Paddle 保持默认即可。 |
26+
| device | place | 表示 Tensor 的存放位置,仅参数名不一致。 |
27+
| - | stop_gradient | 表示是否阻断梯度传导, PyTorch 无此参数, Paddle 保持默认即可。 |

docs/guides/model_convert/convert_from_pytorch/api_difference/torch/torch.atleast_1d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ PyTorch 与 Paddle 参数不一致,具体如下:
1818

1919
| PyTorch | PaddlePaddle | 备注 |
2020
| ------------- | ------------ | ------------------------------------------------------ |
21-
| <font color='red'> tensors </font> | <font color='red'> inputs </font> | 输入的 Tensor,仅当 torch 输入为 tuple(Tensor)时,两者处理方式不一致,需要转写。其他情形下均一致。 |
21+
| tensors | inputs | 输入的 Tensor,仅当 torch 输入为 tuple(Tensor)时,两者处理方式不一致,需要转写。其他情形下均一致。 |
2222

2323
PyTorch 与 Paddle 功能一致,但对于由多个 Tensor 组成 tuple|list 输入的处理方式略有不同,具体请看转写示例。
2424

docs/guides/model_convert/convert_from_pytorch/api_difference/torch/torch.atleast_2d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ PyTorch 与 Paddle 参数不一致,具体如下:
1818

1919
| PyTorch | PaddlePaddle | 备注 |
2020
| ------------- | ------------ | ------------------------------------------------------ |
21-
| <font color='red'> tensors </font> | <font color='red'> inputs </font> | 输入的 Tensor,仅当 torch 输入为 tuple(Tensor)时,两者处理方式不一致,需要转写。其他情形下均一致。 |
21+
| tensors | inputs | 输入的 Tensor,仅当 torch 输入为 tuple(Tensor)时,两者处理方式不一致,需要转写。其他情形下均一致。 |
2222

2323
PyTorch 与 Paddle 功能一致,但对于由多个 Tensor 组成 tuple|list 输入的处理方式略有不同,具体请看转写示例。
2424

0 commit comments

Comments
 (0)