diff --git a/ci_scripts/hooks/pre-doc-compile.sh b/ci_scripts/hooks/pre-doc-compile.sh index 16b1400277c..d03723cfae5 100755 --- a/ci_scripts/hooks/pre-doc-compile.sh +++ b/ci_scripts/hooks/pre-doc-compile.sh @@ -52,6 +52,7 @@ fi python ${APIMAPPING_ROOT}/tools/get_api_difference_info.py python ${APIMAPPING_ROOT}/tools/generate_pytorch_api_mapping.py + if [ $? -ne 0 ]; then echo "Error: API mapping generate script failed, please check changes in ${APIMAPPING_ROOT}" exit 1 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.all.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.all.md deleted file mode 100644 index 2a6bbd15009..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.all.md +++ /dev/null @@ -1,24 +0,0 @@ -## [ 仅参数名不一致 ]torch.Tensor.all - -### [torch.Tensor.all](https://pytorch.org/docs/stable/generated/torch.Tensor.all.html?highlight=torch+tensor+all#torch.Tensor.all) - -```python -torch.Tensor.all(dim=None, keepdim=False) -``` - -### [paddle.Tensor.all](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#all-axis-none-keepdim-false-name-none) - -```python -paddle.Tensor.all(axis=None, - keepdim=False, - name=None) -``` - -其中 PyTorch 和 Paddle 功能一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| dim | axis | 表示运算的维度,仅参数名不一致。 | -| keepdim | keepdim | 是否在输出 Tensor 中保留减小的维度,参数完全一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.amax.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.amax.md deleted file mode 100644 index 6c10d1956b3..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.amax.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ 仅参数名不一致 ]torch.Tensor.amax - -### [torch.Tensor.amax](https://pytorch.org/docs/stable/generated/torch.Tensor.amax.html) - -```python -torch.Tensor.amax(dim=None, keepdim=False) -``` - -### [paddle.Tensor.amax](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#amax-axis-none-keepdim-false-name-none) - -```python -paddle.Tensor.amax(axis=None, keepdim=False, name=None) -``` - -其中 PyTorch 和 Paddle 功能一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ------------------ | -| dim | axis | 求最大值运算的维度,仅参数名不一致。 | -| keepdim | keepdim | 是否在输出 Tensor 中保留减小的维度。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.amin.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.amin.md deleted file mode 100644 index fc9aa8da9dd..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.amin.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ 仅参数名不一致 ]torch.Tensor.amin - -### [torch.Tensor.amin](https://pytorch.org/docs/stable/generated/torch.Tensor.amin.html) - -```python -torch.Tensor.amin(dim=None, keepdim=False) -``` - -### [paddle.Tensor.amin](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#amin-axis-none-keepdim-false-name-none) - -```python -paddle.Tensor.amin(axis=None, keepdim=False, name=None) -``` - -其中 PyTorch 和 Paddle 功能一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ------------------ | -| dim | axis | 求最小值运算的维度,仅参数名不一致。 | -| keepdim | keepdim | 是否在输出 Tensor 中保留减小的维度。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.any.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.any.md deleted file mode 100644 index c9f264ba3d6..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.any.md +++ /dev/null @@ -1,24 +0,0 @@ -## [ 仅参数名不一致 ]torch.Tensor.any - -### [torch.Tensor.any](https://pytorch.org/docs/stable/generated/torch.Tensor.any.html?highlight=torch+tensor+any#torch.Tensor.any) - -```python -torch.Tensor.any(dim=None, keepdim=False) -``` - -### [paddle.Tensor.any](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#any-axis-none-keepdim-false-name-none) - -```python -paddle.Tensor.any(axis=None, - keepdim=False, - name=None) -``` - -其中 PyTorch 和 Paddle 功能一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| dim | axis | 表示运算的维度,仅参数名不一致。 | -| keepdim | keepdim | 是否在输出 Tensor 中保留减小的维度,参数完全一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.argmax.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.argmax.md deleted file mode 100644 index 3d8efe05b8b..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.argmax.md +++ /dev/null @@ -1,23 +0,0 @@ -## [ 仅参数名不一致 ]torch.Tensor.argmax - -### [torch.Tensor.argmax](https://pytorch.org/docs/stable/generated/torch.Tensor.argmax.html) - -```python -torch.Tensor.argmax(dim=None, keepdim=False) -``` - -### [paddle.Tensor.argmax](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#argmax-axis-none-keepdim-false-dtype-int64-name-none) - -```python -paddle.Tensor.argmax(axis=None, keepdim=False, dtype=int64, name=None) -``` - -其中 PyTorch 和 Paddle 功能一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ------------------ | -| dim | axis | 指定对输入 Tensor 进行运算的轴,仅参数名不一致。 | -| keepdim | keepdim | 是否在输出 Tensor 中保留减小的维度。 | -| - | dtype | 指定返回类型,PyTorch 无此参数,Paddle 保持默认即可。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.argmin.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.argmin.md deleted file mode 100644 index 9445d4f67a8..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.argmin.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ 仅参数名不一致 ]torch.Tensor.argmin - -### [torch.Tensor.argmin](https://pytorch.org/docs/stable/generated/torch.Tensor.argmin.html) - -```python -torch.Tensor.argmin(dim=None, keepdim=False) -``` - -### [paddle.Tensor.argmin](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#argmin-axis-none-keepdim-false-dtype-int64-name-none) - -```python -paddle.Tensor.argmin(axis=None, keepdim=False, dtype=int64, name=None) -``` - -其中 PyTorch 和 Paddle 功能一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ------------------ | -| dim | axis | 指定对输入 Tensor 进行运算的轴,仅参数名不一致。 | -| keepdim | keepdim | 是否在输出 Tensor 中保留减小的维度。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.argsort.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.argsort.md deleted file mode 100644 index 23ed3908d03..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.argsort.md +++ /dev/null @@ -1,23 +0,0 @@ -## [ 仅参数名不一致 ]torch.Tensor.argsort - -### [torch.Tensor.argsort](https://pytorch.org/docs/stable/generated/torch.Tensor.argsort.html) - -```python -torch.Tensor.argsort(dim=-1, descending=False, *, stable=False) -``` - -### [paddle.Tensor.argsort](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#argsort-axis-1-descending-false-name-none) - -```python -paddle.Tensor.argsort(axis=-1, descending=False, stable=False, name=None) -``` - -其中 PyTorch 和 Paddle 功能一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ---------- | ------------ | -- | -| dim | axis | 指定对输入 Tensor 进行运算的轴,仅参数名不一致。 | -| descending | descending | 指定算法排序的方向。如果设置为 True,算法按照降序排序。如果设置为 False 或者不设置,按照升序排序。默认值为 False。 | -| stable | stable | 是否使用稳定排序。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.bitwise_or_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.bitwise_or_.md deleted file mode 100644 index 11d24e17291..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.bitwise_or_.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 仅参数名不一致 ]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 ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.bmm.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.bmm.md deleted file mode 100644 index 966a3056e5c..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.bmm.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 仅参数名不一致 ]torch.Tensor.bmm - -### [torch.Tensor.bmm](https://pytorch.org/docs/stable/generated/torch.Tensor.bmm.html) - -```python -torch.Tensor.bmm(mat2) -``` - -### [paddle.Tensor.bmm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#bmm-y-name-none) - -```python -paddle.Tensor.bmm(y, name=None) -``` - -其中 PyTorch 和 Paddle 功能一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -- | -| mat2 | y | 输入 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.chunk.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.chunk.md deleted file mode 100644 index b863d198058..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.chunk.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 仅参数名不一致 ] torch.Tensor.chunk - -### [torch.Tensor.chunk](https://pytorch.org/docs/stable/generated/torch.Tensor.chunk.html?highlight=chunk#torch.Tensor.chunk) - -```python -torch.Tensor.chunk(chunks, dim=0) -``` - -### [paddle.Tensor.chunk](paddlepaddle.org.cn/documentation/docs/zh/api/paddle/Tensor_cn.html#chunk-chunks-axis-0-name-none) - -```python -paddle.Tensor.chunk(chunks, axis=0, name=None) -``` - -两者功能一致,仅参数名不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -|------------| ------------ | ------------------------------------------------------ | -| chunks | chunks | 表示将输入 Tensor 划分成多少个相同大小的子 Tensor。 | -| dim | axis | 表示需要分割的维度,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.cumsum.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.cumsum.md deleted file mode 100644 index 839c4143e39..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.cumsum.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ 仅参数名不一致 ]torch.Tensor.cumsum - -### [torch.Tensor.cumsum](https://pytorch.org/docs/stable/generated/torch.Tensor.cumsum.html?highlight=cumsum#torch.Tensor.cumsum) - -```python -torch.Tensor.cumsum(dim, dtype=None) -``` - -### [paddle.Tensor.cumsum](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#cumsum-axis-none-dtype-none-name-none) - -```python -paddle.Tensor.cumsum(axis=None, dtype=None, name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ------------------------------ | -| dim | axis | 需要累加的维度,仅参数名不一致。 | -| dtype | dtype | 输出 Tensor 的数据类型。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.dot.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.dot.md deleted file mode 100644 index 3fb36f220e7..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.dot.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 仅参数名不一致 ]torch.Tensor.dot - -### [torch.Tensor.dot](https://pytorch.org/docs/stable/generated/torch.Tensor.dot.html?highlight=dot#torch.Tensor.dot) - -```python -torch.Tensor.dot(tensor) -``` - -### [paddle.Tensor.dot](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#dot-y-name-none) - -```python -paddle.Tensor.dot(y, name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | --------------------------- | -| tensor | y | 输入 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.expand.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.expand.md deleted file mode 100644 index ce20cb5983d..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.expand.md +++ /dev/null @@ -1,28 +0,0 @@ -## [ 仅参数名不一致 ]torch.Tensor.expand -### [torch.Tensor.expand](https://pytorch.org/docs/stable/generated/torch.Tensor.expand.html?highlight=expand#torch.Tensor.expand) - -```python -torch.Tensor.expand(*size) -``` - -### [paddle.Tensor.expand](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#expand-shape-name-none) - -```python -paddle.Tensor.expand(shape, name=None) -``` - -两者功能一致,仅参数名不一致,具体差异如下: -### 参数映射 -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| size | shape | 扩张后的维度,size 是可变参数,paddle 是 list/tuple | - -### 转写示例 -#### size: 扩张后的维度 -```python -# torch 写法 -x.expand(3, 4) - -# paddle 写法 -x.expand(shape=[3, 4]) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.expand_as.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.expand_as.md deleted file mode 100644 index ff732e2a693..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.expand_as.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 仅参数名不一致 ]torch.Tensor.expand_as - -### [torch.Tensor.expand_as](https://pytorch.org/docs/stable/generated/torch.Tensor.expand_as.html?highlight=expand_as) - -```python -torch.Tensor.expand_as(other) -``` - -### [paddle.Tensor.expand_as](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#expand-as-y-name-none) - -```python -paddle.Tensor.expand_as(y) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ------------------------------------ | -| other | y | 给定输入扩展后的形状,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.flatten.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.flatten.md deleted file mode 100644 index 093db48771d..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.flatten.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ 仅参数名不一致 ]torch.Tensor.flatten - -### [torch.Tensor.flatten](https://pytorch.org/docs/stable/generated/torch.Tensor.flatten.html?highlight=flatten#torch.Tensor.flatten) - -```python -torch.Tensor.flatten(start_dim=0, end_dim=- 1) -``` - -### [paddle.Tensor.flatten](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#flatten-start-axis-0-stop-axis-1-name-none) - -```python -paddle.Tensor.flatten(start_axis=0, stop_axis=-1, name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| --------- | ------------ | ------------------------------ | -| start_dim | start_axis | 展开的起始维度,仅参数名不一致。 | -| end_dim | stop_axis | 展开的结束维度,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.index_select.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.index_select.md deleted file mode 100644 index 5dfdf5ade8a..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.index_select.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ 仅参数名不一致 ]torch.Tensor.index_select - -### [torch.Tensor.index\_select](https://pytorch.org/docs/stable/generated/torch.Tensor.index_select.html) - -```python -torch.Tensor.index_select(dim, index) -``` - -### [paddle.Tensor.index\_select](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#index-select-index-axis-0-name-none) - -```python -paddle.Tensor.index_select(index, axis=0, name=None) -``` - -其中 PyTorch 和 Paddle 功能一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -- | -| dim | axis | 索引轴,仅参数名不一致。 | -| index | index | 包含索引下标的 1-D Tensor。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.logical_xor.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.logical_xor.md deleted file mode 100644 index 75374f009d0..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.logical_xor.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 仅参数名不一致 ]torch.Tensor.logical_xor - -### [torch.Tensor.logical_xor](https://pytorch.org/docs/stable/generated/torch.Tensor.logical_xor.html) - -```python -torch.Tensor.logical_xor(other) -``` - -### [paddle.Tensor.logical_xor]() - -```python -paddle.Tensor.logical_xor(y) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| other | y | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.logsumexp.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.logsumexp.md deleted file mode 100644 index a410c9d9e3f..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.logsumexp.md +++ /dev/null @@ -1,26 +0,0 @@ -## [ 仅参数名不一致 ] torch.Tensor.logsumexp - - -### [torch.Tensor.logsumexp](https://pytorch.org/docs/stable/generated/torch.Tensor.logsumexp.html) - -```python -torch.Tensor.logsumexp(dim, - keepdim=False) -``` - -### [paddle.Tensor.logsumexp](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#logsumexp-axis-none-keepdim-false-name-none) - -```python -paddle.Tensor.logsumexp(axis=None, - keepdim=False, - name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -------------------------------------------------------- | -| dim | axis | 表示进行运算的轴,仅参数名不一致。 | -| keepdim | keepdim | 是否在输出 Tensor 中保留减小的维度 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.pow.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.pow.md deleted file mode 100644 index 60aea0daf26..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.pow.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 仅参数名不一致 ] torch.Tensor.pow - -### [torch.Tensor.pow](https://pytorch.org/docs/stable/generated/torch.Tensor.pow.html?highlight=pow#torch.Tensor.pow) - -```python -torch.Tensor.pow(exponent) -``` - -### [paddle.Tensor.pow]() - -```python -paddle.Tensor.pow(y) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| -------- | ------------ | -------------------------------------------------- | -| exponent | y | 一个 N 维 Tensor 或者标量 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.prod.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.prod.md deleted file mode 100644 index 728808f3837..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.prod.md +++ /dev/null @@ -1,24 +0,0 @@ -## [ 仅参数名不一致 ] torch.Tensor.prod - -### [torch.Tensor.prod](https://pytorch.org/docs/stable/generated/torch.prod.html#torch.prod) - -```python -torch.Tensor.prod(dim, keepdim=False, *, dtype=None) -``` - -### [paddle.Tensor.prod](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/prod_cn.html) - -```python -paddle.Tensor.prod(axis=None, keepdim=False, dtype=None, name=None) -``` - -两者功能一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ------------------------------------------------------------- | -| dim | axis | 求乘积运算的维度,仅参数名不一致。 | -| keepdim | keepdim | 是否在输出 Tensor 中保留输入的维度,仅参数名不一致。 | -| dtype | dtype | 输出 Tensor 的数据类型,支持 int32、int64、float32、float64。 | -| - | name | 一般无需设置,默认值为 None。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.squeeze.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.squeeze.md deleted file mode 100644 index 59d4ba597da..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.squeeze.md +++ /dev/null @@ -1,20 +0,0 @@ -## [ 仅参数名不一致 ]torch.Tensor.squeeze - -### [torch.Tensor.squeeze](https://pytorch.org/docs/stable/generated/torch.Tensor.squeeze.html#torch.Tensor.squeeze) - -```python -torch.Tensor.squeeze(dim=None) -``` - -### [paddle.Tensor.squeeze](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#squeeze-axis-none-name-none) - -```python -paddle.Tensor.squeeze(axis=None) -``` -两者功能一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| dim | axis | 输入一个或一列整数,代表要压缩的轴,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.sum.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.sum.md deleted file mode 100644 index f8d00535b0c..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.sum.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ 仅参数名不一致 ]torch.Tensor.sum - -### [torch.Tensor.sum](https://pytorch.org/docs/stable/generated/torch.Tensor.sum.html) - -```python -torch.Tensor.sum(dim=None, keepdim=False, dtype=None) -``` - -### [paddle.Tensor.sum](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#sum-axis-none-dtype-none-keepdim-false-name-none) -```python -paddle.Tensor.sum(axis=None, dtype=None, keepdim=False, name=None) -``` - -两者功能一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------| -| dim | axis | 求和运算的维度,仅参数名不一致。 | -| keepdim | keepdim | 是否在输出 Tensor 中保留减小的维度 。 | -| dtype | dtype | 是输出变量的数据类型 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.take_along_dim.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.take_along_dim.md deleted file mode 100644 index 91e6e8f9de9..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.take_along_dim.md +++ /dev/null @@ -1,23 +0,0 @@ -## [ 仅参数名不一致 ]torch.Tensor.take_along_dim -### [torch.Tensor.take_along_dim](https://pytorch.org/docs/stable/generated/torch.Tensor.take_along_dim.html?highlight=torch+tensor+take_along_dim#torch.Tensor.take_along_dim) - -```python -torch.Tensor.take_along_dim(indices, - dim) -``` - -### [paddle.Tensor.take_along_axis]( ) - -```python -paddle.Tensor.take_along_axis(indices, - axis, - broadcast=True) -``` - -两者功能一致,参数名不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| indices | indices | 索引矩阵,包含沿轴提取 1d 切片的下标,必须和 arr 矩阵有相同的维度,需要能够 broadcast 与 arr 矩阵对齐,数据类型为:int、int64。 | -| dim | axis | 指定沿着哪个维度获取对应的值,数据类型为:int,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.topk.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.topk.md deleted file mode 100644 index e3608fb83a7..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.topk.md +++ /dev/null @@ -1,24 +0,0 @@ -## [ 仅参数名不一致 ] torch.Tensor.topk - -### [torch.Tensor.topk](https://pytorch.org/docs/stable/generated/torch.Tensor.topk.html#torch.Tensor.topk) - -```python -torch.Tensor.topk(k, dim=None, largest=True, sorted=True) -``` - -### [paddle.Tensor.topk](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#topk-k-axis-none-largest-true-sorted-true-name-none) - -```python -paddle.Tensor.topk(k, axis=None, largest=True, sorted=True, name=None) -``` - -两者功能一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -------------------------------- | -| k | k | 表示前 k 个最大项。 | -| dim | axis | 表示排序的维度,仅参数名不一致。 | -| largest | largest | True: 最大值, False: 最小值。 | -| sorted | sorted | 表示是否排序。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.true_divide.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.true_divide.md deleted file mode 100644 index 16961d12aad..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.true_divide.md +++ /dev/null @@ -1,21 +0,0 @@ -## [仅参数名不一致]torch.Tensor.true_divide - -### [torch.Tensor.true_divide](https://pytorch.org/docs/stable/generated/torch.Tensor.true_divide.html#torch.Tensor.true_divide) - -```python -torch.Tensor.true_divide(other) -``` - -### [paddle.Tensor.divide](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#divide-y-name-none) - -```python -paddle.Tensor.divide(y, name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| -------- | ------------ | -------------------------------- | -| other | y | 表示输入的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.unbind.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.unbind.md deleted file mode 100644 index 74c46914260..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.unbind.md +++ /dev/null @@ -1,21 +0,0 @@ -## [仅参数名不一致]torch.Tensor.unbind - -### [torch.Tensor.unbind](https://pytorch.org/docs/stable/generated/torch.Tensor.unbind.html#torch.Tensor.unbind) - -```python -torch.Tensor.unbind(dim=0) -``` - -### [paddle.Tensor.unbind](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#unbind-axis-0) - -```python -paddle.Tensor.unbind(axis=0) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ---------------------------------- | -| dim | axis | 表示进行运算的轴,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.unsqueeze.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.unsqueeze.md deleted file mode 100644 index 98b9b2be484..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.unsqueeze.md +++ /dev/null @@ -1,21 +0,0 @@ -## [仅参数名不一致]torch.Tensor.unsqueeze - -### [torch.Tensor.unsqueeze](https://pytorch.org/docs/stable/generated/torch.Tensor.unsqueeze.html#torch.Tensor.unsqueeze) - -```python -torch.Tensor.unsqueeze(dim) -``` - -### [paddle.Tensor.unsqueeze](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#unsqueeze-axis-name-none) - -```python -paddle.Tensor.unsqueeze(axis, name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ---------------------------------- | -| dim | axis | 表示进行运算的轴,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.all.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.all.md deleted file mode 100644 index db53132ab92..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.all.md +++ /dev/null @@ -1,26 +0,0 @@ -## [ 仅参数名不一致 ]torch.all - -### [torch.all](https://pytorch.org/docs/stable/generated/torch.all.html?highlight=all#torch.all) - -```python -torch.all(input, dim=None, keepdim=False, *, out=None) -``` - -### [paddle.all](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/all_cn.html#all) - -```python -paddle.all(x, - axis=None, - keepdim=False, - name=None) -``` - -其中 PyTorch 和 Paddle 功能一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 输入的多维 Tensor ,参数完全一致。 | -| dim | axis | 表示运算的维度,仅参数名不一致。 | -| keepdim | keepdim | 是否在输出 Tensor 中保留减小的维度,参数完全一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.any.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.any.md deleted file mode 100644 index 212ca1a5f0a..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.any.md +++ /dev/null @@ -1,26 +0,0 @@ -## [ 仅参数名不一致 ]torch.any - -### [torch.any](https://pytorch.org/docs/stable/generated/torch.any.html?highlight=any#torch.any) - -```python -torch.any(input, dim=None, keepdim=False, *, out=None) -``` - -### [paddle.any](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/any_cn.html#any) - -```python -paddle.any(x, - axis=None, - keepdim=False, - name=None) -``` - -其中 PyTorch 和 Paddle 功能一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 输入的多维 Tensor ,仅参数名不一致。 | -| dim | axis | 表示运算的维度,仅参数名不一致。 | -| keepdim | keepdim | 是否在输出 Tensor 中保留减小的维度,参数完全一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.argmax.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.argmax.md deleted file mode 100644 index 74c8d70d375..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.argmax.md +++ /dev/null @@ -1,29 +0,0 @@ -## [ 仅参数名不一致 ]torch.argmax -### [torch.argmax](https://pytorch.org/docs/stable/generated/torch.argmax.html?highlight=argmax#torch.argmax) - -```python -torch.argmax(input, - dim=None, - keepdim=False) -``` - -### [paddle.argmax](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/argmax_cn.html#argmax) - -```python -paddle.argmax(x, - axis=None, - keepdim=False, - dtype='int64', - name=None) -``` - -其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 输入的多维 Tensor ,仅参数名不一致。 | -| dim | axis | 指定进行运算的轴,仅参数名不一致。 | -| keepdim | keepdim | 是否在输出 Tensor 中保留减小的维度。 | -| - | dtype | 输出 Tensor 的数据类型, PyTorch 无此参数, Paddle 保持默认即可。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.argmin.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.argmin.md deleted file mode 100644 index c808d6631dc..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.argmin.md +++ /dev/null @@ -1,29 +0,0 @@ -## [ 仅参数名不一致 ]torch.argmin -### [torch.argmin](https://pytorch.org/docs/stable/generated/torch.argmin.html?highlight=argmin#torch.argmin) - -```python -torch.argmin(input, - dim=None, - keepdim=False) -``` - -### [paddle.argmin](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/argmin_cn.html#argmin) - -```python -paddle.argmin(x, - axis=None, - keepdim=False, - dtype='int64', - name=None) -``` - -其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 输入的多维 Tensor ,仅参数名不一致。 | -| dim | axis | 指定进行运算的轴,仅参数名不一致。 | -| keepdim | keepdim | 是否在输出 Tensor 中保留减小的维度。 | -| - | dtype | 输出 Tensor 的数据类型, PyTorch 无此参数, Paddle 保持默认即可。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.argsort.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.argsort.md deleted file mode 100644 index dd3d6b6324d..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.argsort.md +++ /dev/null @@ -1,23 +0,0 @@ -## [ 仅参数名不一致 ]torch.argsort -### [torch.argsort](https://pytorch.org/docs/stable/generated/torch.argsort.html#torch.argsort) - -```python -torch.argsort(input, dim=-1, descending=False, stable=False) -``` - -### [paddle.argsort](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/argsort_cn.html#argsort) - -```python -paddle.argsort(x, axis=-1, descending=False, stable=False, name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 输入的多维 Tensor ,仅参数名不一致。 | -| dim | axis | 指定进行运算的轴,仅参数名不一致。 | -| descending | descending | 是否使用降序排列。 | -| stable | stable | 是否使用稳定排序。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.as_tensor.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.as_tensor.md deleted file mode 100644 index 32f46945019..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.as_tensor.md +++ /dev/null @@ -1,27 +0,0 @@ -## [ 仅参数名不一致 ]torch.as_tensor -### [torch.as_tensor](https://pytorch.org/docs/stable/generated/torch.as_tensor.html#torch.as_tensor) - -```python -torch.as_tensor(data, - dtype=None, - device=None) -``` - -### [paddle.to_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/to_tensor_cn.html#to-tensor) - -```python -paddle.to_tensor(data, - dtype=None, - place=None, - stop_gradient=True) -``` - -两者功能一致,性能某些用法下比 PyTorch 差(比如如果输入一个 Tensor , PyTorch 会直接返回, Paddle 会复制后返回)。此外, Paddle 相比 PyTorch 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| data | data | 表示输入的 Tensor 。 | -| dtype | dtype | 表示 Tensor 的数据类型。 | -| device | place | 表示 Tensor 的存放位置,仅参数名不一致。 | -| - | stop_gradient | 表示是否阻断梯度传导, PyTorch 无此参数, Paddle 保持默认即可。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.broadcast_to.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.broadcast_to.md deleted file mode 100644 index b59820bb02c..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.broadcast_to.md +++ /dev/null @@ -1,24 +0,0 @@ -## [ 仅参数名不一致 ]torch.broadcast_to - -### [torch.broadcast_to](https://pytorch.org/docs/stable/generated/torch.broadcast_to.html?highlight=broadcast_to#torch.broadcast_to) - -```python -torch.broadcast_to(input, - size) -``` - -### [paddle.broadcast_to](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/broadcast_to_cn.html#broadcast-to) - -```python -paddle.broadcast_to(x, - shape, - name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input| x | 表示输入的 Tensor ,仅参数名不一致。 | -| size | shape | 表示扩展后 Tensor 的 shape,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.chunk.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.chunk.md deleted file mode 100644 index 12f77a26a82..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.chunk.md +++ /dev/null @@ -1,26 +0,0 @@ -## [ 仅参数名不一致 ]torch.chunk -### [torch.chunk](https://pytorch.org/docs/stable/generated/torch.chunk.html?highlight=chunk#torch.chunk) - -```python -torch.chunk(input, - chunks, - dim=0) -``` - -### [paddle.chunk](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/chunk_cn.html#chunk) - -```python -paddle.chunk(x, - chunks, - axis=0, - name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| chunks | chunks | 表示将输入 Tensor 划分成多少个相同大小的子 Tensor。 | -| dim | axis |表示需要分割的维度 ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.finfo.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.finfo.md deleted file mode 100644 index 0eed4a3879c..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.finfo.md +++ /dev/null @@ -1,21 +0,0 @@ -## [仅参数名不一致]torch.finfo - -### [torch.finfo](https://pytorch.org/docs/stable/type_info.html#torch-finfo) - -```python -torch.finfo(type) -``` - -### [paddle.finfo](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/finfo_cn.html) - -```python -paddle.finfo(dtype) -``` - -两者功能一致,参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -------------------------------- | -| type | dtype | 输入的数据类型,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.flatten.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.flatten.md deleted file mode 100644 index 74c04b30245..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.flatten.md +++ /dev/null @@ -1,26 +0,0 @@ -## [ 仅参数名不一致 ]torch.flatten -### [torch.flatten](https://pytorch.org/docs/stable/generated/torch.flatten.html?highlight=flatten#torch.flatten) - -```python -torch.flatten(input, - start_dim=0, - end_dim=-1) -``` - -### [paddle.flatten](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/flatten_cn.html#flatten) - -```python -paddle.flatten(x, - start_axis=0, - stop_axis=-1, - name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| start_dim | start_axis | 表示 flatten 展开的起始维度,仅参数名不一致。 | -| end_dim | stop_axis | 表示 flatten 展开的结束维度,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.from_numpy.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.from_numpy.md deleted file mode 100644 index 5599cc65a7d..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.from_numpy.md +++ /dev/null @@ -1,25 +0,0 @@ -## [ 仅参数名不一致 ]torch.from_numpy -### [torch.from_numpy](https://pytorch.org/docs/stable/generated/torch.from_numpy.html?highlight=from_numpy#torch.from_numpy) - -```python -torch.from_numpy(ndarray) -``` - -### [paddle.to_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/to_tensor_cn.html#to-tensor) - -```python -paddle.to_tensor(data, - dtype=None, - place=None, - stop_gradient=True) -``` - -其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| ndarray | data | 表示需要转换的数据, PyTorch 只能传入 numpy.ndarray , Paddle 可以传入 scalar 、 list 、 tuple 、 numpy.ndarray 、 paddle.Tensor 。 | -| - | dtype | 表示数据类型, PyTorch 无此参数, Paddle 保持默认即可。 | -| - | place | 表示 Tensor 存放位置, PyTorch 无此参数, Paddle 需设置为 paddle.CPUPlace()。 | -| - | stop_gradient | 表示是否阻断梯度传导, PyTorch 无此参数, Paddle 保持默认即可。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.iinfo.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.iinfo.md similarity index 93% rename from docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.iinfo.md rename to docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.iinfo.md index 64dc415e48f..fd2cbacd204 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.iinfo.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.iinfo.md @@ -1,4 +1,4 @@ -## [参数完全一致]torch.iinfo +## [仅参数名不一致]torch.iinfo ### [torch.iinfo](https://pytorch.org/docs/stable/type_info.html#torch-iinfo) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.is_complex.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.is_complex.md deleted file mode 100644 index e25afeb8ea0..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.is_complex.md +++ /dev/null @@ -1,19 +0,0 @@ -## [ 仅参数名不一致 ]torch.is_complex -### [torch.is_complex](https://pytorch.org/docs/stable/generated/torch.is_complex.html?highlight=is_complex#torch.is_complex) - -```python -torch.is_complex(input) -``` - -### [paddle.is_complex](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/is_complex_cn.html#is-complex) - -```python -paddle.is_complex(x) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.is_floating_point.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.is_floating_point.md deleted file mode 100644 index b02175f55d0..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.is_floating_point.md +++ /dev/null @@ -1,20 +0,0 @@ -## [ 仅参数名不一致 ]torch.is_floating_point - -### [torch.is_floating_point](https://pytorch.org/docs/stable/generated/torch.is_floating_point.html?highlight=is_floating_point#torch.is_floating_point) - -```python -torch.is_floating_point(input) -``` - -### [paddle.is_floating_point](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/is_floating_point_cn.html#is-floating-point) - -```python -paddle.is_floating_point(x) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.is_tensor.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.is_tensor.md deleted file mode 100644 index c9e54fa2f38..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.is_tensor.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 仅参数名不一致 ]torch.is_tensor - -### [torch.is_tensor](https://pytorch.org/docs/stable/generated/torch.is_tensor.html?highlight=is_tensor#torch.is_tensor) - -```python -torch.is_tensor(obj) -``` - -### [paddle.is_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/is_tensor_cn.html#is-tensor) - -```python -paddle.is_tensor(x) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| obj | x | 输⼊ Tensor ,被判断的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.isfinite.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.isfinite.md deleted file mode 100644 index 1cf4900ae42..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.isfinite.md +++ /dev/null @@ -1,20 +0,0 @@ -## [ 仅参数名不一致 ]torch.isfinite -### [torch.isfinite](https://pytorch.org/docs/stable/generated/torch.isfinite.html?highlight=isfinite#torch.isfinite) - -```python -torch.isfinite(input) -``` - -### [paddle.isfinite](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/isfinite_cn.html#isfinite) - -```python -paddle.isfinite(x, - name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.isin.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.isin.md deleted file mode 100644 index 30135a8b633..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.isin.md +++ /dev/null @@ -1,24 +0,0 @@ -## [仅参数名不一致]torch.isin - -### [torch.isin](https://pytorch.org/docs/stable/generated/torch.isin.html#torch.isin) - -```python -torch.isin(elements, test_elements, *, assume_unique=False, invert=False) -``` - -### [paddle.isin](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/isin_cn.html) - -```python -paddle.isin(x, test_x, assume_unique=False, invert=False, name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------- | ------------------------------------------------------ | -| elements | x | 表示输入的 Tensor,仅参数名不一致。 | -| test_elements | test_x | 表示用于检验的 Tensor ,仅参数名不一致。 | -| assume_unique | assume_unique | 表示输入的 Tensor 和用于检验的 Tensor 的元素是否唯一。 | -| invert | invert | 表示是否输出反转的结果。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.isinf.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.isinf.md deleted file mode 100644 index 76af28b5b60..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.isinf.md +++ /dev/null @@ -1,20 +0,0 @@ -## [ 仅参数名不一致 ]torch.isinf -### [torch.isinf](https://pytorch.org/docs/stable/generated/torch.isinf.html?highlight=isinf#torch.isinf) - -```python -torch.isinf(input) -``` - -### [paddle.isinf](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/isinf_cn.html#isinf) - -```python -paddle.isinf(x, - name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.isnan.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.isnan.md deleted file mode 100644 index 0febaec1e1d..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.isnan.md +++ /dev/null @@ -1,20 +0,0 @@ -## [ 仅参数名不一致 ]torch.isnan -### [torch.isnan](https://pytorch.org/docs/stable/generated/torch.isnan.html?highlight=isnan#torch.isnan) - -```python -torch.isnan(input) -``` - -### [paddle.isnan](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/isnan_cn.html#isnan) - -```python -paddle.isnan(x, - name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.logical_and.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.logical_and.md deleted file mode 100644 index 38e226bb9ad..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.logical_and.md +++ /dev/null @@ -1,27 +0,0 @@ -## [ 仅参数名不一致 ]torch.logical_and -### [torch.logical_and](https://pytorch.org/docs/stable/generated/torch.logical_and.html?highlight=logical_and#torch.logical_and) - -```python -torch.logical_and(input, - other, - *, - out=None) -``` - -### [paddle.logical_and](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/logical_and_cn.html#logical-and) - -```python -paddle.logical_and(x, - y, - out=None, - name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| other | y | 表示输入的 Tensor ,仅参数名不一致。 | -| out | out | 输出 Tensor。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.logical_not.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.logical_not.md deleted file mode 100644 index ce8acacfd46..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.logical_not.md +++ /dev/null @@ -1,24 +0,0 @@ -## [ 仅参数名不一致 ]torch.logical_not -### [torch.logical_not](https://pytorch.org/docs/stable/generated/torch.logical_not.html?highlight=logical_not#torch.logical_not) - -```python -torch.logical_not(input, - *, - out=None) -``` - -### [paddle.logical_not](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/logical_not_cn.html#logical-not) - -```python -paddle.logical_not(x, - out=None, - name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| out | out | 表示输出的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.logical_or.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.logical_or.md deleted file mode 100644 index 424f77110aa..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.logical_or.md +++ /dev/null @@ -1,27 +0,0 @@ -## [ 仅参数名不一致 ]torch.logical_or -### [torch.logical_or](https://pytorch.org/docs/stable/generated/torch.logical_or.html?highlight=logical_or#torch.logical_or) - -```python -torch.logical_or(input, - other, - *, - out=None) -``` - -### [paddle.logical_or](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/logical_or_cn.html#logical-or) - -```python -paddle.logical_or(x, - y, - out=None, - name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| other | y | 表示输入的 Tensor ,仅参数名不一致。 | -| out | out | 表示输出的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.logical_xor.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.logical_xor.md deleted file mode 100644 index 56ad561e228..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.logical_xor.md +++ /dev/null @@ -1,23 +0,0 @@ -## [ 仅参数名不一致 ]torch.logical_xor - -### [torch.logical_xor](https://pytorch.org/docs/stable/generated/torch.logical_xor.html?highlight=torch+logical_xor#torch.logical_xor) - -```python -torch.logical_xor(input, other, *, out=None) -``` - -### [paddle.logical_xor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/logical_xor_cn.html) - -```python -paddle.logical_xor(x, y, out=None, name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ----------------------------------- | ------------ | ----------------------------------------------------------------------- | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| other | y | 表示输入的 Tensor ,仅参数名不一致。 | -| out | out | 表示输出的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.conv1d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.conv1d.md deleted file mode 100644 index 2f3ac62bc06..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.conv1d.md +++ /dev/null @@ -1,41 +0,0 @@ -## [ 仅参数名不一致 ]torch.nn.functional.conv1d - -### [torch.nn.functional.conv1d](https://pytorch.org/docs/stable/generated/torch.nn.functional.conv1d.html?highlight=conv1d#torch.nn.functional.conv1d) - -```python -torch.nn.functional.conv1d(input, - weight, - bias=None, - stride=1, - padding=0, - dilation=1, - groups=1) -``` - -### [paddle.nn.functional.conv1d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/conv1d_cn.html) - -```python -paddle.nn.functional.conv1d(x, - weight, - bias=None, - stride=1, - padding=0, - dilation=1, - groups=1, - data_format='NCL', - name=None) -``` - -其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor 。 | -| weight | weight | 表示权重 Tensor 。 | -| bias | bias | 表示偏置项 。 | -| stride | stride | 表示步长 。 | -| padding | padding | 表示填充大小 。 | -| dilation | dilation | 表示空洞大小 。 | -| groups | groups | 表示分组数 。 | -| - | data_format | 表示输入 Tensor 的数据格式, PyTorch 无此参数, Paddle 保持默认即可。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.conv2d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.conv2d.md deleted file mode 100644 index 4a60c6dc23e..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.conv2d.md +++ /dev/null @@ -1,41 +0,0 @@ -## [ 仅参数名不一致 ]torch.nn.functional.conv2d - -### [torch.nn.functional.conv2d](https://pytorch.org/docs/stable/generated/torch.nn.functional.conv2d.html?highlight=conv2d#torch.nn.functional.conv2d) - -```python -torch.nn.functional.conv2d(input, - weight, - bias=None, - stride=1, - padding=0, - dilation=1, - groups=1) -``` - -### [paddle.nn.functional.conv2d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/conv2d_cn.html) - -```python -paddle.nn.functional.conv2d(x, - weight, - bias=None, - stride=1, - padding=0, - dilation=1, - groups=1, - data_format='NCHW', - name=None) -``` - -其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor 。 | -| weight | weight | 表示权重 Tensor 。 | -| bias | bias | 表示偏置项 。 | -| stride | stride | 表示步长 。 | -| padding | padding | 表示填充大小 。 | -| dilation | dilation | 表示空洞大小 。 | -| groups | groups | 表示分组数 。 | -| - | data_format | 表示输入 Tensor 的数据格式, PyTorch 无此参数, Paddle 保持默认即可。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.conv3d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.conv3d.md deleted file mode 100644 index afc7b8c5dfa..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.conv3d.md +++ /dev/null @@ -1,41 +0,0 @@ -## [ 仅参数名不一致 ]torch.nn.functional.conv3d - -### [torch.nn.functional.conv3d](https://pytorch.org/docs/stable/generated/torch.nn.functional.conv3d.html?highlight=conv3d#torch.nn.functional.conv3d) - -```python -torch.nn.functional.conv3d(input, - weight, - bias=None, - stride=1, - padding=0, - dilation=1, - groups=1) -``` - -### [paddle.nn.functional.conv3d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/conv3d_cn.html) - -```python -paddle.nn.functional.conv3d(x, - weight, - bias=None, - stride=1, - padding=0, - dilation=1, - groups=1, - data_format='NCDHW', - name=None) -``` - -其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor 。 | -| weight | weight | 表示权重 Tensor 。 | -| bias | bias | 表示偏置项 。 | -| stride | stride | 表示步长 。 | -| padding | padding | 表示填充大小 。 | -| dilation | dilation | 表示空洞大小 。 | -| groups | groups | 表示分组数 。 | -| - | data_format | 表示输入 Tensor 的数据格式, PyTorch 无此参数, Paddle 保持默认即可。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.embedding.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.embedding.md deleted file mode 100644 index b4c015b934b..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.embedding.md +++ /dev/null @@ -1,27 +0,0 @@ -## [ 仅参数名不一致 ]torch.nn.functional.embedding - -### [torch.nn.functional.embedding](https://pytorch.org/docs/stable/generated/torch.nn.functional.embedding.html) - -```python -torch.nn.functional.embedding(input, weight, padding_idx=None, max_norm=None, norm_type=2.0, scale_grad_by_freq=False, sparse=False) -``` - -### [paddle.nn.functional.embedding](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/functional/embedding_cn.html#embedding) - -```python -paddle.nn.functional.embedding(x, weight, padding_idx=None, max_norm=None, norm_type=2.0, sparse=False, scale_grad_by_freq=False, name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------------ | ------------------ | -- | -| input | x | 输入 Tensor,仅参数名不同。 | -| weight | weight | 嵌入矩阵权重。 | -| padding_idx | padding_idx | 视为填充的下标,参数完全一致。 | -| max_norm | max_norm | 如果给定,Embeddding 向量的范数(范数的计算方式由 norm_type 决定)超过了 max_norm 这个界限,就要再进行归一化。 | -| norm_type | norm_type | 应用 max_norm 时所计算的 p 阶范数的 p 值。 | -| scale_grad_by_freq | scale_grad_by_freq | 是否根据单词在 mini-batch 中出现频率的倒数缩放梯度。 | -| sparse | sparse | 是否使用稀疏更新。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.layer_norm.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.layer_norm.md deleted file mode 100644 index 53c5113fd00..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.layer_norm.md +++ /dev/null @@ -1,23 +0,0 @@ -## [ 仅参数名不一致 ]torch.nn.functional.layer_norm - -### [torch.nn.functional.layer_norm](https://pytorch.org/docs/stable/generated/torch.nn.functional.layer_norm.html#torch.nn.functional.layer_norm) - -```python -torch.nn.functional.layer_norm(input, normalized_shape, weight=None, bias=None, eps=1e-05) -``` - -### [paddle.nn.functional.layer_norm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/layer_norm_cn.html#layer-norm) -```python -paddle.nn.functional.layer_norm(x, normalized_shape, weight=None, bias=None, epsilon=1e-05, name=None) -``` - -两者功能相同,仅参数名不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| normalized_shape | normalized_shape | 需规范化的 shape | -| weight | weight | 权重的 Tensor | -| bias | bias | 偏置的 Tensor | -| eps | epsilon | 为了数值稳定加在分母上的值 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.sigmoid.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.sigmoid.md deleted file mode 100644 index 5dd63b94199..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.sigmoid.md +++ /dev/null @@ -1,20 +0,0 @@ -## [ 仅参数名不一致 ]torch.nn.functional.sigmoid - -### [torch.nn.functional.sigmoid](https://pytorch.org/docs/stable/generated/torch.nn.functional.sigmoid.html?highlight=sigmoid#torch.nn.functional.sigmoid) - -```python -torch.nn.functional.sigmoid(input) -``` - -### [paddle.nn.functional.sigmoid](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/sigmoid_cn.html) - -```python -paddle.nn.functional.sigmoid(x, name=None) -``` - -两者功能一致,仅参数名不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.silu.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.silu.md deleted file mode 100644 index a1a78855b8b..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.silu.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ 仅参数名不一致 ]torch.nn.functional.silu - -### [torch.nn.functional.silu](https://pytorch.org/docs/stable/generated/torch.nn.functional.silu.html) - -```python -torch.nn.functional.silu(input, inplace=False) -``` - -### [paddle.nn.functional.silu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/silu_cn.html#silu) - -```python -paddle.nn.functional.silu(x, name=None) -``` - -其中 PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -- | -| input | x | 输入 Tensor,仅参数名不一致。 | -| inplace | - | 表示在不更改变量的内存地址的情况下,直接修改变量的值,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.no_grad.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.no_grad.md deleted file mode 100644 index 20370edffbd..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.no_grad.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 仅参数名不一致 ] torch.no_grad - -### [torch.no_grad](https://pytorch.org/docs/stable/generated/torch.no_grad.html) - -```python -torch.no_grad(orig_func=None) -``` - -### [paddle.no_grad](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/no_grad_cn.html) - -```python -paddle.no_grad(func=None) -``` - -两者功能一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ----------- | ------------ | ----------------------------------------------------------------------------------------- | -| orig_func | func | no_grad 装饰器所应用的对象,仅参数名不同。no_grad 作为上下文管理器使用时,可忽略该参数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.permute.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.permute.md deleted file mode 100644 index ad8e3d19a26..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.permute.md +++ /dev/null @@ -1,23 +0,0 @@ -## [ 仅参数名不一致 ]torch.permute -### [torch.permute](https://pytorch.org/docs/stable/generated/torch.permute.html?highlight=permute#torch.permute) - -```python -torch.permute(input, - dims) -``` - -### [paddle.transpose](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/transpose_cn.html#transpose) - -```python -paddle.transpose(x, - perm, - name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 输入的多维 Tensor,仅参数名不一致。 | -| dims | perm | dims 长度必须和 input 的维度相同,并依照 dims 中数据进行重排,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.prod.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.prod.md deleted file mode 100644 index a8536cff8ab..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.prod.md +++ /dev/null @@ -1,30 +0,0 @@ -## [ 仅参数名不一致 ]torch.prod -### [torch.prod](https://pytorch.org/docs/stable/generated/torch.prod.html?highlight=prod#torch.prod) - - -```python -torch.prod(input, - dim=None, - keepdim=False, - dtype=None) -``` - -### [paddle.prod](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/prod_cn.html#prod) - -```python -paddle.prod(x, - axis=None, - keepdim=False, - dtype=None, - name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| dim | axis | 表示进行乘积运算的轴,仅参数名不一致。 | -| keepdim | keepdim | 表示是否在输出 Tensor 中保留减小的维度。 | -| dtype | dtype | 表示数据类型。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.ravel.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.ravel.md deleted file mode 100644 index e74dca60eae..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.ravel.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 仅参数名不一致 ]torch.ravel -### [torch.ravel](https://pytorch.org/docs/stable/generated/torch.ravel.html?highlight=ravel#torch.ravel) - -```python -torch.ravel(input) -``` - -### [paddle.flatten](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/flatten_cn.html) - -```python -paddle.flatten(x, start_axis=0, stop_axis=- 1, name=None) -``` - -其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| - | start_axis | 表示 flatten 展开的起始维度, PyTorch 无此参数, Paddle 保持默认即可。 | -| - | stop_axis | 表示 flatten 展开的结束维度, PyTorch 无此参数, Paddle 保持默认即可。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.reshape.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.reshape.md deleted file mode 100644 index 983fcede165..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.reshape.md +++ /dev/null @@ -1,23 +0,0 @@ -## [ 仅参数名不一致 ]torch.reshape -### [torch.reshape](https://pytorch.org/docs/stable/generated/torch.reshape.html?highlight=reshape#torch.reshape) - -```python -torch.reshape(input, - shape) -``` - -### [paddle.reshape](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/reshape_cn.html#reshape) - -```python -paddle.reshape(x, - shape, - name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 输入的 N-D Tensor ,仅参数名不一致。 | -| shape | shape | 表示输出 Tensor 的 shape 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.roll.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.roll.md deleted file mode 100644 index 50c8a44cf7e..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.roll.md +++ /dev/null @@ -1,25 +0,0 @@ -## [ 仅参数名不一致 ]torch.roll -### [torch.roll](https://pytorch.org/docs/stable/generated/torch.roll.html?highlight=roll#torch.roll) - -```python -torch.roll(input, - shifts, - dims=None) -``` - -### [paddle.roll](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/roll_cn.html#roll) - -```python -paddle.roll(x, - shifts, - axis=None, - name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: -### 参数映射 -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 输入的 Tensor ,仅参数名不一致。 | -| shifts | shifts | 表示偏移量。 | -| dims | axis | 表示滚动的轴,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.special.softmax.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.special.softmax.md deleted file mode 100644 index 383466744fa..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.special.softmax.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ 仅参数名不一致 ]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 的数据类型 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.sum.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.sum.md deleted file mode 100644 index 7c74c462403..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.sum.md +++ /dev/null @@ -1,29 +0,0 @@ -## [ 仅参数名不一致 ]torch.sum -### [torch.sum](https://pytorch.org/docs/stable/generated/torch.sum.html?highlight=sum#torch.sum) - -```python -torch.sum(input, - dim=None, - keepdim=False, - dtype=None) -``` - -### [paddle.sum](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sum_cn.html#sum) - -```python -paddle.sum(x, - axis=None, - dtype=None, - keepdim=False, - name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| dim | axis | 表示进行运算的轴,仅参数名不一致。 | -| keepdim | keepdim | 是否在输出 Tensor 中保留减小的维度。 | -| dtype | dtype | 表示数据类型。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.tensor_split.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.tensor_split.md deleted file mode 100644 index 7c1afe63dc1..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.tensor_split.md +++ /dev/null @@ -1,66 +0,0 @@ -## [ 仅参数名不一致 ]torch.tensor_split -api 存在重载情况,分别如下: - -------------------------------------------------------------------------------------------------- - -### [torch.tensor_split](https://pytorch.org/docs/stable/generated/torch.tensor_split.html) - -```python -torch.tensor_split(input, indices, dim=0) -``` - -### [paddle.tensor_split](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/tensor_split_cn.html) - -```python -paddle.tensor_split(x, num_or_indices, axis=0, name=None) -``` - -其中 Paddle 相比 PyTorch 仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| indices | num_or_indices | 表示分割的索引,仅参数名不一致。 | -| dim | axis | 表示需要分割的维度,仅参数名不一致。 | - -------------------------------------------------------------------------------------------------- - -### [torch.tensor_split](https://pytorch.org/docs/stable/generated/torch.tensor_split.html) - -```python -torch.tensor_split(input, tensor_indices_or_sections, dim=0) -``` - -### [paddle.tensor_split](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/tensor_split_cn.html) - -```python -paddle.tensor_split(x, num_or_indices, axis=0, name=None) -``` - -paddle 当前无对应功能,功能缺失。 - -------------------------------------------------------------------------------------------------- - -### [torch.tensor_split](https://pytorch.org/docs/stable/generated/torch.tensor_split.html) - -```python -torch.tensor_split(input, sections, dim=0) -``` - -### [paddle.tensor_split](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/tensor_split_cn.html) - -```python -paddle.tensor_split(x, num_or_indices, axis=0, name=None) -``` - -其中 Paddle 相比 PyTorch 仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| sections | num_or_indices | 表示分割的数量,仅参数名不一致。 | -| dim | axis | 表示需要分割的维度,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.unbind.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.unbind.md deleted file mode 100644 index 4f0a2780a31..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.unbind.md +++ /dev/null @@ -1,23 +0,0 @@ -## [ 仅参数名不一致 ]torch.unbind -### [torch.unbind](https://pytorch.org/docs/stable/generated/torch.unbind.html?highlight=unbind#torch.unbind) - -```python -torch.unbind(input, - dim=0) -``` - -### [paddle.unbind](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/unbind_cn.html#unbind) - -```python -paddle.unbind(input, - axis=0) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | input | 输入的多维 Tensor ,参数完全一致。 | -| dim | axis | 表示需要分割的维度,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.unsqueeze.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.unsqueeze.md deleted file mode 100644 index fbf71695b05..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.unsqueeze.md +++ /dev/null @@ -1,23 +0,0 @@ -## [ 仅参数名不一致 ]torch.unsqueeze -### [torch.unsqueeze](https://pytorch.org/docs/stable/generated/torch.unsqueeze.html?highlight=unsqueeze#torch.unsqueeze) - -```python -torch.unsqueeze(input, - dim) -``` - -### [paddle.unsqueeze](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/unsqueeze_cn.html#unsqueeze) - -```python -paddle.unsqueeze(x, - axis, - name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 输入的 Tensor ,仅参数名不一致。 | -| dim | axis | 表示要插入维度的位置,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.view_as_complex.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.view_as_complex.md deleted file mode 100644 index 7f516c30beb..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.view_as_complex.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 仅参数名不一致 ]torch.view_as_complex -### [torch.view_as_complex](https://pytorch.org/docs/stable/generated/torch.view_as_complex.html?highlight=view_as_complex#torch.view_as_complex) - -```python -torch.view_as_complex(input) -``` - -### [paddle.as_complex](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/as_complex_cn.html#as-complex) - -```python -paddle.as_complex(x, - name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.view_as_real.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.view_as_real.md deleted file mode 100644 index 49cf32d6f25..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.view_as_real.md +++ /dev/null @@ -1,20 +0,0 @@ -## [ 仅参数名不一致 ]torch.view_as_real -### [torch.view_as_real](https://pytorch.org/docs/stable/generated/torch.view_as_real.html?highlight=view_as_real#torch.view_as_real) - -```python -torch.view_as_real(input) -``` - -### [paddle.as_real](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/as_real_cn.html#as-real) - -```python -paddle.as_real(x, - name=None) -``` - -两者功能一致且参数用法一致,仅参数名不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Size.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Size.md deleted file mode 100644 index 387a019e9ac..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Size.md +++ /dev/null @@ -1,54 +0,0 @@ -## [组合替代实现]torch.Size - -### [torch.Size](https://pytorch.org/docs/stable/jit_builtin_functions.html#supported-pytorch-functions) - -```python -torch.Size(sizes) -``` - -Paddle 无此 API,需要组合实现。 - -### 转写示例 - -```python -# PyTorch 写法 -torch.Size([1]) - -# Paddle 写法 -(1,) -``` - -```python -# PyTorch 写法 -torch.Size([2, 3]) - -# Paddle 写法 -(2, 3) -``` - -```python -# PyTorch 写法 -torch.Size([2, 3]).count(2) - -# Paddle 写法 -(2, 3).count(2) -``` - -```python -# PyTorch 写法 -torch.Size([2, 3]).index(3,0) - -# Paddle 写法 -(2, 3).index(3,0) -``` - -```python -# PyTorch 写法 -torch.Size([2, 3]).numel() - -# Paddle 写法 -result = (2, 3) -out = 1 -for x in result: - out *= x -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.is_cuda.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.is_cuda.md deleted file mode 100644 index 50a7b432c48..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.is_cuda.md +++ /dev/null @@ -1,21 +0,0 @@ -## [组合替代实现] torch.Tensor.is_cuda - -### [torch.Tensor.is_cuda](https://pytorch.org/docs/stable/generated/torch.Tensor.is_cuda.html?highlight=is_cuda#torch.Tensor.is_cuda) - -```python -torch.Tensor.is_cuda -``` - -判断 Tensor 是否在 gpu 上,PaddlePaddle 目前无对应 API,可使用如下代码组合替代实现: - -### 转写示例 - -```python -# PyTorch 写法 -d = torch.Tensor([1,2,3]) -d.is_cuda - -# Paddle 写法 -d = paddle.to_tensor([1,2,3]) -d.place.is_gpu_place() -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.msort.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.msort.md deleted file mode 100644 index feed58081c4..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.msort.md +++ /dev/null @@ -1,19 +0,0 @@ -## [ 组合替代实现 ]torch.Tensor.msort - -### [torch.Tensor.msort](https://pytorch.org/docs/stable/generated/torch.Tensor.msort.html#torch.Tensor.msort) - -```python -torch.Tensor.msort() -``` - -Paddle 无此 API,需要组合实现。 - -### 转写示例 - -```python -# PyTorch 写法 -y = a.msort() - -# Paddle 写法 -y = paddle.sort(a, axis=0) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.requires_grad.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.requires_grad.md deleted file mode 100644 index a7843f849c4..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.requires_grad.md +++ /dev/null @@ -1,36 +0,0 @@ -## [组合替代实现]torch.Tensor.requires_grad - -### [torch.Tensor.requires_grad](https://docs.pytorch.org/docs/stable/generated/torch.Tensor.requires_grad.html#torch-tensor-requires-grad) - -```python -torch.Tensor.requires_grad -``` - -### [paddle.Tensor.stop_gradient](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#stop-gradient) - -```python -paddle.Tensor.stop_gradient -``` - -Paddle 无此 API,需要组合实现。 - -### 转写示例 -```python -# 当 torch 写法 -x.requires_grad = True - -# paddle 写法 -x.stop_gradient = False - -# 当 torch 写法 -x.requires_grad = False - -# paddle 写法 -x.stop_gradient = True - -# torch 写法 -x.requires_grad - -# paddle 写法 -not x.stop_gradient -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.type_as.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.type_as.md deleted file mode 100644 index 9235c6f69ff..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.type_as.md +++ /dev/null @@ -1,25 +0,0 @@ -## [ 组合替代实现 ] torch.Tensor.type_as - -### [torch.Tensor.type_as](https://pytorch.org/docs/stable/generated/torch.Tensor.type_as.html) - -```python -torch.Tensor.type_as(tensor) -``` - -### [paddle.Tensor.astype](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#astype-dtype) - -```python -paddle.Tensor.astype(dtype=tensor.dtype) -``` - -Paddle 无此 API,需要组合实现。 - -### 转写示例 -#### -```python -# PyTorch 写法 -x.type_as(a) - -# Paddle 写法 -x.astype(dtype=a.dtype) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.cuda.is_available.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.cuda.is_available.md deleted file mode 100644 index 3e1dacb0ec9..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.cuda.is_available.md +++ /dev/null @@ -1,25 +0,0 @@ -## [ 组合替代实现 ]torch.cuda.is_available - -### [torch.cuda.is_available](https://pytorch.org/docs/stable/generated/torch.cuda.is_available.html#torch-cuda-is-available) - -```python -torch.cuda.is_available() -``` - -### [paddle.device.cuda.device_count](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/device/cuda/device_count_cn.html) - -```python -paddle.device.cuda.device_count() -``` - -Paddle 无此 API,需要组合实现。 - -### 转写示例 - -```python -# torch 写法 -torch.cuda.is_available() - -# paddle 写法 -paddle.device.cuda.device_count() >= 1 -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.device.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.device.md deleted file mode 100644 index d4b42ac5e2f..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.device.md +++ /dev/null @@ -1,62 +0,0 @@ -## [ 组合替代实现 ]torch.device - -该 api 有两组参数列表重载,因此有两组差异分析。 - ------------------------------------------------ - -### [torch.device](https://pytorch.org/docs/stable/tensor_attributes.html#torch-device) - -```python -torch.device(type, index) -``` - -Paddle 无此 API,需要组合实现。 - -### 转写示例 - -```python -# PyTorch 写法 -torch.device(type='cuda', index=0) - -# Paddle 写法 -'gpu:0' - -# PyTorch 写法 -torch.device(type='cpu') - -# Paddle 写法 -'cpu' -``` - - ------------------------------------------------ - -### [torch.device](https://pytorch.org/docs/stable/tensor_attributes.html#torch-device) - -```python -torch.device(device) -``` - -Paddle 无此 API,需要组合实现。 - -### 转写示例 - -```python -# PyTorch 写法 -torch.device('cpu') - -# Paddle 写法 -'cpu' - -# PyTorch 写法 -torch.device(1) - -# Paddle 写法 -"gpu:1" - -# PyTorch 写法 -torch.device("cuda:0") - -# Paddle 写法 -"gpu:0" -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.constant_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.constant_.md deleted file mode 100644 index 0aab387a278..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.constant_.md +++ /dev/null @@ -1,35 +0,0 @@ -## [ 组合替代实现 ]torch.nn.init.constant_ - -### [torch.nn.init.constant_](https://pytorch.org/docs/stable/nn.init.html?highlight=constant_#torch.nn.init.constant_) - -```python -torch.nn.init.constant_(tensor, - val) -``` - -### [paddle.nn.initializer.Constant](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/initializer/Constant_cn.html) - -```python -paddle.nn.initializer.Constant(value=0.0) -``` - -两者用法不同:torch 是 inplace 的用法,paddle 是类设置的。PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| tensor | - | n 维 tensor。Paddle 无此参数,因为是通过调用类的 __call__ 函数来进行 tensor 的初始化。 | -| val | value | 用于初始化输入变量的值。PyTorch 无默认值,Paddle 默认值为`0.0`。 | - -### 转写示例 -```python -# PyTorch 写法 -conv = torch.nn.Conv2d(4, 6, (3, 3)) -torch.nn.init.constant_(conv.weight, val=1.0) - -# Paddle 写法 -conv = nn.Conv2D(in_channels=4, out_channels=6, kernel_size=(3,3)) -init_constant = paddle.nn.initializer.Constant(value=1.0) -init_constant(conv.weight) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.dirac_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.dirac_.md deleted file mode 100644 index d30d2b24394..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.dirac_.md +++ /dev/null @@ -1,36 +0,0 @@ -## [ 组合替代实现 ]torch.nn.init.dirac_ - -### [torch.nn.init.dirac_](https://pytorch.org/docs/stable/nn.init.html?highlight=dirac_#torch.nn.init.dirac_) - -```python -torch.nn.init.dirac_(tensor, - groups=1) -``` - -### [paddle.nn.initializer.Dirac](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/initializer/Dirac_cn.html) - -```python -paddle.nn.initializer.Dirac(groups=1, - name=None) -``` - -两者用法不同:torch 是 inplace 的用法,paddle 是类设置的。PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| tensor | - | n 维 tensor。Paddle 无此参数,因为是通过调用类的 __call__ 函数来进行 tensor 的初始化。 | -| groups | groups | 将参数在 0 维上进行等分为 groups 份,每一份执行相同的初始化。参数名和默认值一致。 | - -### 转写示例 -```python -# PyTorch 写法 -conv = torch.nn.Conv2d(4, 6, (3, 3)) -torch.nn.init.dirac_(conv.weight) - -# Paddle 写法 -conv = nn.Conv2D(in_channels=4, out_channels=6, kernel_size=(3,3)) -init_dirac = paddle.nn.initializer.Dirac() -init_dirac(conv.weight) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.eye_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.eye_.md deleted file mode 100644 index fbb69e6d09c..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.eye_.md +++ /dev/null @@ -1,35 +0,0 @@ -## [ 组合替代实现 ]torch.nn.init.eye_ - -### [torch.nn.init.eye_](https://pytorch.org/docs/stable/nn.init.html?highlight=eye_#torch.nn.init.eye_) - -```python -torch.nn.init.eye_(tensor) -``` - -### [paddle.nn.initializer.Assign](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/initializer/Assign_cn.html) - -```python -paddle.nn.initializer.Assign(value, - name=None) -``` - -两者用法不同:torch 是 inplace 的用法,paddle 是类设置的,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| tensor | - | n 维 tensor。Paddle 无此参数,因为是通过调用类的 __call__ 函数来进行 tensor 的初始化。 | -| - | value | 用于初始化参数的一个 Numpy 数组、Python 列表、Tensor。PyTorch 无此参数。此处 Paddle 应使用 paddle.eye 进行参数设置。 | - -### 转写示例 -```python -# PyTorch 写法 -w = torch.empty(3, 5) -torch.nn.init.eye_(w) - -# Paddle 写法 -w = paddle.empty([3, 5]) -init_eye = paddle.nn.initializer.Assign(paddle.eye(w.shape[0], w.shape[1])) -init_eye(w) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.kaiming_normal_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.kaiming_normal_.md deleted file mode 100644 index 77b0e4a96e5..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.kaiming_normal_.md +++ /dev/null @@ -1,45 +0,0 @@ -## [ 组合替代实现 ]torch.nn.init.kaiming_normal_ - -### [torch.nn.init.kaiming_normal_](https://pytorch.org/docs/stable/nn.init.html?highlight=kaiming_normal_#torch.nn.init.kaiming_normal_) - -```python -torch.nn.init.kaiming_normal_(tensor, - a=0, - mode='fan_in', - nonlinearity='leaky_relu', - generator=None) -``` - -### [paddle.nn.initializer.KaimingNormal](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/initializer/KaimingNormal_cn.html) - -```python -paddle.nn.initializer.KaimingNormal(fan_in=None, - negative_slope=0.0, - nonlinearity='relu', - mode='fan_in') -``` - -两者用法不同:torch 是 inplace 的用法,paddle 是类设置的,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| tensor | - | n 维 tensor。Paddle 无此参数,因为是通过调用类的 __call__ 函数来进行 tensor 的初始化。 | -| a | negative_slope | 只适用于使用 leaky_relu 作为激活函数时的 negative_slope 参数。仅参数名不一致。 | -| nonlinearity | nonlinearity | 非线性激活函数。参数默认值不一样,PyTorch 默认值为`leaky_relu`,Paddle 默认值为`relu`,Paddle 需保持与 PyTorch 一致。 | -| mode | mode | "fan_in"(默认)或 "fan_out"。参数完全一致。 | -| generator | - | 用于采样的伪随机数生成器,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| - | fan_in | 可训练的 Tensor 的 in_features 值。PyTorch 无此参数,Paddle 保持默认即可。 | - -### 转写示例 -```python -# PyTorch 写法 -conv = torch.nn.Conv2d(4, 6, (3, 3)) -torch.nn.init.kaiming_normal_(conv.weight) - -# Paddle 写法 -conv = nn.Conv2D(in_channels=4, out_channels=6, kernel_size=(3,3)) -init_kaimingNormal = paddle.nn.initializer.KaimingNormal(nonlinearity='leaky_relu') -init_kaimingNormal(conv.weight) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.kaiming_uniform_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.kaiming_uniform_.md deleted file mode 100644 index c47fe269fdc..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.kaiming_uniform_.md +++ /dev/null @@ -1,43 +0,0 @@ -## [ 组合替代实现 ]torch.nn.init.kaiming_uniform_ - -### [torch.nn.init.kaiming_uniform_](https://pytorch.org/docs/stable/nn.init.html?highlight=kaiming_uniform_#torch.nn.init.kaiming_uniform_) - -```python -torch.nn.init.kaiming_uniform_(tensor, - a=0, - mode='fan_in', - nonlinearity='leaky_relu') -``` - -### [paddle.nn.initializer.KaimingUniform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/initializer/KaimingUniform_cn.html) - -```python -paddle.nn.initializer.KaimingUniform(fan_in=None, - negative_slope=0.0, - nonlinearity='relu', - mode='fan_in') -``` - -两者用法不同:torch 是 inplace 的用法,paddle 是类设置的,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| tensor | - | n 维 tensor。Paddle 无此参数,因为是通过调用类的 __call__ 函数来进行 tensor 的初始化。 | -| a | negative_slope | 只适用于使用 leaky_relu 作为激活函数时的 negative_slope 参数。仅参数名不一致。 | -| nonlinearity | nonlinearity | 非线性激活函数。参数默认值不一样,PyTorch 默认值为`leaky_relu`,Paddle 默认值为`relu`,Paddle 需保持与 PyTorch 一致。 | -| mode | mode | "fan_in"(默认)或 "fan_out"。参数完全一致。 | -| - | fan_in | 可训练的 Tensor 的 in_features 值。PyTorch 无此参数,Paddle 保持默认即可。 | - -### 转写示例 -```python -# PyTorch 写法 -conv = torch.nn.Conv2d(4, 6, (3, 3)) -torch.nn.init.kaiming_uniform_(conv.weight) - -# Paddle 写法 -conv = nn.Conv2D(in_channels=4, out_channels=6, kernel_size=(3,3)) -init_kaimingUniform = paddle.nn.initializer.KaimingUniform(nonlinearity='leaky_relu') -init_kaimingUniform(conv.weight) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.normal_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.normal_.md deleted file mode 100644 index f3f87da19b0..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.normal_.md +++ /dev/null @@ -1,39 +0,0 @@ -## [ 组合替代实现 ]torch.nn.init.normal_ - -### [torch.nn.init.normal_](https://pytorch.org/docs/stable/nn.init.html?highlight=normal_#torch.nn.init.normal_) - -```python -torch.nn.init.normal_(tensor, - mean=0.0, - std=1.0) -``` - -### [paddle.nn.initializer.Normal](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/initializer/Normal_cn.html) - -```python -paddle.nn.initializer.Normal(mean=0.0, - std=1.0, - name=None) -``` - -两者用法不同:torch 是 inplace 的用法,paddle 是类设置的。PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| tensor | - | n 维 tensor。Paddle 无此参数,因为是通过调用类的 __call__ 函数来进行 tensor 的初始化。 | -| mean | mean | 正态分布的平均值。参数名和默认值一致。 | -| std | std | 正态分布的标准差。参数名和默认值一致。 | - -### 转写示例 -```python -# PyTorch 写法 -conv = torch.nn.Conv2d(4, 6, (3, 3)) -torch.nn.init.normal_(conv.weight) - -# Paddle 写法 -conv = nn.Conv2D(in_channels=4, out_channels=6, kernel_size=(3,3)) -init_normal = paddle.nn.initializer.Normal() -init_normal(conv.weight) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.ones_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.ones_.md deleted file mode 100644 index 88cebca42bc..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.ones_.md +++ /dev/null @@ -1,34 +0,0 @@ -## [ 组合替代实现 ]torch.nn.init.ones_ - -### [torch.nn.init.ones_](https://pytorch.org/docs/stable/nn.init.html?highlight=ones_#torch.nn.init.ones_) - -```python -torch.nn.init.ones_(tensor) -``` - -### [paddle.nn.initializer.Constant](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/initializer/Constant_cn.html) - -```python -paddle.nn.initializer.Constant(value=0.0) -``` - -两者用法不同:torch 是 inplace 的用法,paddle 是类设置的,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| tensor | - | n 维 tensor。Paddle 无此参数,因为是通过调用类的 __call__ 函数来进行 tensor 的初始化。 | -| - | value | 用于初始化输入变量的值。PyTorch 无此参数,Paddle 默认值为`0.0`,需设置为`1.0`。 | - -### 转写示例 -```python -# PyTorch 写法 -conv = torch.nn.Conv2d(4, 6, (3, 3)) -torch.nn.init.ones_(conv.weight) - -# Paddle 写法 -conv = nn.Conv2D(in_channels=4, out_channels=6, kernel_size=(3,3)) -init_constant = paddle.nn.initializer.Constant(value=1.0) -init_constant(conv.weight) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.orthogonal_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.orthogonal_.md deleted file mode 100644 index 4b1f427747c..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.orthogonal_.md +++ /dev/null @@ -1,38 +0,0 @@ -## [ 组合替代实现 ]torch.nn.init.orthogonal_ - -### [torch.nn.init.orthogonal_](https://pytorch.org/docs/stable/nn.init.html?highlight=orthogonal_#torch.nn.init.orthogonal_) - -```python -torch.nn.init.orthogonal_(tensor, - gain=1, - generator=None) -``` - -### [paddle.nn.initializer.Orthogonal](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/initializer/Orthogonal_cn.html) - -```python -paddle.nn.initializer.Orthogonal(gain=1.0, - name=None) -``` - -两者用法不同:torch 是 inplace 的用法,paddle 是类设置的。PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| tensor | - | n 维 tensor。Paddle 无此参数,因为是通过调用类的 __call__ 函数来进行 tensor 的初始化。 | -| gain | gain | 参数初始化的增益系数。参数名和参数默认值均一致。 | -| generator | - | 用于采样的伪随机数生成器,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | - -### 转写示例 -```python -# PyTorch 写法 -conv = torch.nn.Conv2d(4, 6, (3, 3)) -torch.nn.init.orthogonal_(conv.weight, gain=2) - -# Paddle 写法 -conv = nn.Conv2D(in_channels=4, out_channels=6, kernel_size=(3,3)) -init_orthogonal = paddle.nn.initializer.Orthogonal(gain=2) -init_orthogonal(conv.weight) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.trunc_normal_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.trunc_normal_.md deleted file mode 100644 index 1093156f4c5..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.trunc_normal_.md +++ /dev/null @@ -1,47 +0,0 @@ -## [ 组合替代实现 ]torch.nn.init.trunc_normal_ - -### [torch.nn.init.trunc_normal_](https://pytorch.org/docs/stable/nn.init.html#torch.nn.init.trunc_normal_) - -```python -torch.nn.init.trunc_normal_(tensor, - mean=0.0, - std=1.0, - a=-2.0, - b=2.0, - generator=None) -``` - -### [paddle.nn.initializer.TruncatedNormal](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/initializer/TruncatedNormal_cn.html) - -```python -paddle.nn.initializer.TruncatedNormal(mean=0.0, - std=1.0, - a=-2.0, - b=2.0, - name=None) -``` - -两者用法不同:torch 是 inplace 的用法,paddle 是类设置的,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| tensor | - | n 维 tensor。Paddle 无此参数,因为是通过调用类的 __call__ 函数来进行 tensor 的初始化。 | -| mean | mean | 正态分布的平均值。参数名和默认值一致。 | -| std | std | 正态分布的标准差。参数名和默认值一致。 | -| a | a | 截断正态分布的下界。参数名和默认值一致。 | -| b | b | 截断正态分布的上界。参数名和默认值一致。 | -| generator | - | 用于采样的伪随机数生成器,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | - -### 转写示例 -```python -# PyTorch 写法 -conv = torch.nn.Conv2d(4, 6, (3, 3)) -torch.nn.init.trunc_normal_(conv.weight) - -# Paddle 写法 -conv = nn.Conv2D(in_channels=4, out_channels=6, kernel_size=(3,3)) -init_trunc_normal = paddle.nn.initializer.TruncatedNormal() -init_trunc_normal(conv.weight) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.uniform_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.uniform_.md deleted file mode 100644 index f3b15ad1175..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.uniform_.md +++ /dev/null @@ -1,41 +0,0 @@ -## [ 组合替代实现 ]torch.nn.init.uniform_ - -### [torch.nn.init.uniform_](https://pytorch.org/docs/stable/nn.init.html?highlight=uniform_#torch.nn.init.uniform_) - -```python -torch.nn.init.uniform_(tensor, - a=0.0, - b=1.0, - generator=None) -``` - -### [paddle.nn.initializer.Uniform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/initializer/Uniform_cn.html) - -```python -paddle.nn.initializer.Uniform(low=-1.0, - high=1.0, - name=None) -``` - -两者用法不同:torch 是 inplace 的用法,paddle 是类设置的。PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| tensor | - | n 维 tensor。Paddle 无此参数,因为是通过调用类的 __call__ 函数来进行 tensor 的初始化。 | -| a | low | 均匀分布的下界,参数默认值不一致, PyTorch 默认为`0.0`,Paddle 为`-1.0`,Paddle 需保持与 PyTorch 一致。 | -| b | high | 均匀分布的上界,仅参数名不一致。 | -| generator | - | 用于采样的伪随机数生成器,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | - -### 转写示例 -```python -# PyTorch 写法 -conv = torch.nn.Conv2d(4, 6, (3, 3)) -torch.nn.init.uniform_(conv.weight) - -# Paddle 写法 -conv = nn.Conv2D(in_channels=4, out_channels=6, kernel_size=(3,3)) -init_uniform = paddle.nn.initializer.Uniform(low=0.0) -init_uniform(conv.weight) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.xavier_normal_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.xavier_normal_.md deleted file mode 100644 index c31a95dc74a..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.xavier_normal_.md +++ /dev/null @@ -1,40 +0,0 @@ -## [ 组合替代实现 ]torch.nn.init.xavier_normal_ - -### [torch.nn.init.xavier_normal_](https://pytorch.org/docs/stable/nn.init.html?highlight=xavier_normal_#torch.nn.init.xavier_normal_) - -```python -torch.nn.init.xavier_normal_(tensor, - gain=1.0) -``` - -### [paddle.nn.initializer.XavierNormal](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/initializer/XavierNormal_cn.html) - -```python -paddle.nn.initializer.XavierNormal(fan_in=None, - fan_out=None, - gain=1.0, - name=None) -``` - -两者用法不同:torch 是 inplace 的用法,paddle 是类设置的,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| tensor | - | n 维 tensor。Paddle 无此参数,因为是通过调用类的 __call__ 函数来进行 tensor 的初始化。 | -| gain | gain | 缩放因子。 | -| - | fan_in | 用于泽维尔初始化的 fan_in。PyTorch 无此参数,Paddle 保持默认即可。 | -| - | fan_out | 用于泽维尔初始化的 fan_out。PyTorch 无此参数,Paddle 保持默认即可。 | - -### 转写示例 -```python -# PyTorch 写法 -conv = torch.nn.Conv2d(4, 6, (3, 3)) -torch.nn.init.xavier_normal_(conv.weight) - -# Paddle 写法 -conv = nn.Conv2D(in_channels=4, out_channels=6, kernel_size=(3,3)) -init_xaiverNormal = paddle.nn.initializer.XavierNormal() -init_xaiverNormal(conv.weight) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.xavier_uniform_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.xavier_uniform_.md deleted file mode 100644 index a6f97798e46..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.xavier_uniform_.md +++ /dev/null @@ -1,42 +0,0 @@ -## [ 组合替代实现 ]torch.nn.init.xavier_uniform_ - -### [torch.nn.init.xavier_uniform_](https://pytorch.org/docs/stable/nn.init.html?highlight=xavier_uniform_#torch.nn.init.xavier_uniform_) - -```python -torch.nn.init.xavier_uniform_(tensor, - gain=1.0, - generator=None) -``` - -### [paddle.nn.initializer.XavierUniform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/initializer/XavierUniform_cn.html) - -```python -paddle.nn.initializer.XavierUniform(fan_in=None, - fan_out=None, - gain=1.0, - name=None) -``` - -两者用法不同:torch 是 inplace 的用法,paddle 是类设置的,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| tensor | - | n 维 tensor。Paddle 无此参数,因为是通过调用类的 __call__ 函数来进行 tensor 的初始化。 | -| gain | gain | 缩放因子。 | -| generator | - | 用于采样的伪随机数生成器,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| - | fan_in | 用于泽维尔初始化的 fan_in。PyTorch 无此参数,Paddle 保持默认即可。 | -| - | fan_out | 用于泽维尔初始化的 fan_out。PyTorch 无此参数,Paddle 保持默认即可。 | - -### 转写示例 -```python -# PyTorch 写法 -conv = torch.nn.Conv2d(4, 6, (3, 3)) -torch.nn.init.xavier_uniform_(conv.weight) - -# Paddle 写法 -conv = nn.Conv2D(in_channels=4, out_channels=6, kernel_size=(3,3)) -init_xaiverUniform = paddle.nn.initializer.XavierUniform() -init_xaiverUniform(conv.weight) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.zeros_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.zeros_.md deleted file mode 100644 index 010ebace8b5..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.init.zeros_.md +++ /dev/null @@ -1,34 +0,0 @@ -## [ 组合替代实现 ]torch.nn.init.zeros_ - -### [torch.nn.init.zeros_](https://pytorch.org/docs/stable/nn.init.html?highlight=zeros_#torch.nn.init.zeros_) - -```python -torch.nn.init.zeros_(tensor) -``` - -### [paddle.nn.initializer.Constant](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/initializer/Constant_cn.html) - -```python -paddle.nn.initializer.Constant(value=0.0) -``` - -两者用法不同:torch 是 inplace 的用法,paddle 是类设置的,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| tensor | - | n 维 tensor。Paddle 无此参数,因为是通过调用类的 __call__ 函数来进行 tensor 的初始化。 | -| - | value | 用于初始化输入变量的值。PyTorch 无此参数,Paddle 默认值为`0.0`,保持默认即可。 | - -### 转写示例 -```python -# PyTorch 写法 -conv = torch.nn.Conv2d(4, 6, (3, 3)) -torch.nn.init.zeros_(conv.weight) - -# Paddle 写法 -conv = nn.Conv2D(in_channels=4, out_channels=6, kernel_size=(3,3)) -init_constant = paddle.nn.initializer.Constant() -init_constant(conv.weight) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.rand_like.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.rand_like.md deleted file mode 100644 index 5b2fe04582c..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.rand_like.md +++ /dev/null @@ -1,39 +0,0 @@ -## [ 组合替代实现 ]torch.rand_like - -### [torch.rand_like](https://pytorch.org/docs/stable/generated/torch.rand_like.html#torch.rand_like) -```python -torch.rand_like(input, *, dtype=None, layout=None, device=None, requires_grad=False, memory_format=torch.preserve_format) -``` - -返回与输入相同大小的张量,该张量由区间[0,1)上均匀分布的随机数填充。 - -### 参数介绍 -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | - | 表示输入的 Tensor | -| dtype | - | 表示数据类型。 | -| layout | - | 表示布局方式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| device | - | 表示 Tensor 存放位置,Paddle 无此参数,需要转写。 | -| requires_grad | stop_gradient | 表示是否不阻断梯度传导,Paddle 无此参数,需要转写。 | -| memory_format | - | 表示内存格式, Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | - -PaddlePaddle 目前无对应 API,可使用如下代码组合实现该 API。 - -### 转写示例 -#### input:表示输入的 Tensor -```python -# PyTorch 写法 -torch.rand_like(x) - -# Paddle 写法 -paddle.rand(shape=x.shape, dtype=x.dtype) -``` - -#### dtype:表示数据类型 -```python -# PyTorch 写法 -torch.rand_like(x,dtype=torch.float64) - -# Paddle 写法 -paddle.rand(shape=x.shape, dtype=paddle.float64) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.ge.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.ge.md deleted file mode 100644 index 2777d08e31f..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.ge.md +++ /dev/null @@ -1,31 +0,0 @@ -## [ 输入参数类型不一致 ]torch.Tensor.ge - -### [torch.Tensor.ge](https://pytorch.org/docs/stable/generated/torch.Tensor.ge.html?highlight=torch+tensor+ge#torch.Tensor.ge) - -```python -torch.Tensor.ge(other) -``` - -### [paddle.Tensor.greater_equal](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#greater-equal-y-name-none) - -```python -paddle.Tensor.greater_equal(y, name=None) -``` - -其中,PyTorch 与 Paddle 的 `other` 参数所支持类型不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -|----------------------------------|------------------------------| ------------------------------------------------------ | -| other | y | 输入的 Tensor ,PyTorch 支持 Tensor 和 Python Number,Paddle 仅支持 Tensor,需要转写。 | - -### 转写示例 -#### other -```python -# PyTorch 写法 -result = x.ge(other=2) - -# Paddle 写法 -result = x.greater_equal(y=paddle.to_tensor(2)) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.gt.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.gt.md deleted file mode 100644 index 56c219ee6da..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.gt.md +++ /dev/null @@ -1,30 +0,0 @@ -## [ 输入参数类型不一致 ]torch.Tensor.gt - -### [torch.Tensor.gt](https://pytorch.org/docs/stable/generated/torch.Tensor.gt.html?highlight=torch+tensor+gt#torch.Tensor.gt) - -```python -torch.Tensor.gt(other) -``` - -### [paddle.Tensor.greater_than](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#greater-than-y-name-none) - -```python -paddle.Tensor.greater_than(y, name=None) -``` - -其中 Paddle 和 PyTorch 的 `other` 参数所支持的数据类型不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -|----------------------------------|------------------------------| ------------------------------------------------------ | -| other | y | 表示输入的 Tensor ,PyTorch 支持 Python Number 和 Tensor 类型, Paddle 仅支持 Tensor 类型。当输入为 Python Number 类型时,需要转写。 | - -### 转写示例 -#### other:输入为 Number -```python -# PyTorch 写法 -result = x.gt(2) - -# Paddle 写法 -result = x.greater_than(paddle.to_tensor(2)) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.le.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.le.md deleted file mode 100644 index 3f990545299..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.le.md +++ /dev/null @@ -1,30 +0,0 @@ -## [ 输入参数类型不一致 ]torch.Tensor.le - -### [torch.Tensor.le](https://pytorch.org/docs/stable/generated/torch.Tensor.le.html) - -```python -torch.Tensor.le(other) -``` - -### [paddle.Tensor.less_equal](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#less-equal-y-name-none) - -```python -paddle.Tensor.less_equal(y, name=None) -``` - -其中 Paddle 和 PyTorch 的 `other` 参数所支持的数据类型不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -|----------------------------------|------------------------------| ------------------------------------------------------ | -| other | y | 表示输入的 Tensor ,PyTorch 支持 Python Number 和 Tensor 类型, Paddle 仅支持 Tensor 类型。当输入为 Python Number 类型时,需要转写。 | - -### 转写示例 -#### other:输入为 Number -```python -# PyTorch 写法 -result = x.le(2) - -# Paddle 写法 -result = x.less_equal(paddle.to_tensor(2)) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.lt.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.lt.md deleted file mode 100644 index 71aedb190be..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.lt.md +++ /dev/null @@ -1,30 +0,0 @@ -## [ 输入参数类型不一致 ]torch.Tensor.lt - -### [torch.Tensor.lt](https://pytorch.org/docs/stable/generated/torch.Tensor.lt.html) - -```python -torch.Tensor.lt(other) -``` - -### [paddle.Tensor.less_than](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#less-than-y-name-none) - -```python -paddle.Tensor.less_than(y, name=None) -``` - -其中 Paddle 和 PyTorch 的 `other` 参数所支持的数据类型不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -|----------------------------------|------------------------------| ------------------------------------------------------ | -| other | y | 表示输入的 Tensor ,PyTorch 支持 Python Number 和 Tensor 类型, Paddle 仅支持 Tensor 类型。当输入为 Python Number 类型时,需要转写。 | - -### 转写示例 -#### other:输入为 Number -```python -# PyTorch 写法 -result = x.lt(2) - -# Paddle 写法 -result = x.less_than(paddle.to_tensor(2)) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.mul.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.mul.md deleted file mode 100644 index efdb7cc5b83..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.mul.md +++ /dev/null @@ -1,34 +0,0 @@ -## [ 输入参数类型不一致 ] torch.Tensor.mul - -### [torch.Tensor.mul](https://pytorch.org/docs/stable/generated/torch.Tensor.mul.html) - -```python -torch.Tensor.mul(other) -``` - -### [paddle.Tensor.multiply](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#multiply-y-axis-1-name-none) - -```python -paddle.Tensor.multiply(y, - axis=-1, - name=None) -``` - -其中,Paddle 与 PyTorch 的 `other` 参数所支持类型不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ----------------------------------------------- | -| other | y | 相乘的元素,PyTorch 支持 Tensor 和 Python Number,Paddle 仅支持 Tensor,需要转写。 | -| - | axis | 计算的维度,PyTorch 无此参数, Paddle 保持默认即可。| - -### 转写示例 -#### other:相乘的元素 -```python -# PyTorch 写法 -y = x.mul(other=2) - -# Paddle 写法 -y = x.multiply(y=paddle.to_tensor(2)) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.mul_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.mul_.md deleted file mode 100644 index 3dc49bbb367..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.mul_.md +++ /dev/null @@ -1,34 +0,0 @@ -## [ 输入参数类型不一致 ] torch.Tensor.mul_ - -### [torch.Tensor.mul_](https://pytorch.org/docs/stable/generated/torch.Tensor.mul_.html) - -```python -torch.Tensor.mul_(other) -``` - -### [paddle.Tensor.multiply_]() - -```python -paddle.Tensor.multiply_(y, - axis=-1, - name=None) -``` - -其中,Paddle 与 PyTorch 的 `other` 参数所支持类型不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ----------------------------------------------- | -| other | y | 相乘的元素,PyTorch 支持 Tensor 和 Python Number,Paddle 仅支持 Tensor,需要转写。 | -| - | axis | 计算的维度,PyTorch 无此参数, Paddle 保持默认即可。| - -### 转写示例 -#### other:相乘的元素 -```python -# PyTorch 写法 -x.mul_(other=2) - -# Paddle 写法 -x.multiply_(y=paddle.to_tensor(2)) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.ne.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.ne.md deleted file mode 100644 index 392c8237e76..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.ne.md +++ /dev/null @@ -1,30 +0,0 @@ -## [ 输入参数类型不一致 ] torch.Tensor.ne -### [torch.Tensor.ne](https://pytorch.org/docs/stable/generated/torch.Tensor.ne.html?highlight=ne) - -```python -torch.Tensor.ne(other) -``` - -### [paddle.Tensor.not_equal](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#not-equal-y-name-none) - -```python -paddle.Tensor.not_equal(y) -``` - -其中,Paddle 与 PyTorch 的 `other` 参数所支持类型不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ----------------------------------------------- | -| other | y | 比较的元素,PyTorch 支持 Tensor 和 Python Number,Paddle 仅支持 Tensor,需要转写。 | - -### 转写示例 -#### other:比较的元素 -```python -# PyTorch 写法 -y = x.ne(other=2) - -# Paddle 写法 -y = x.not_equal(y=paddle.to_tensor(2)) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.remainder.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.remainder.md deleted file mode 100644 index 34948b8475b..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.remainder.md +++ /dev/null @@ -1,31 +0,0 @@ -## [ 输入参数类型不一致 ]torch.Tensor.remainder - -### [torch.Tensor.remainder](https://pytorch.org/docs/stable/generated/torch.Tensor.remainder.html?highlight=torch+tensor+remainder#torch.Tensor.remainder) - -```python -torch.Tensor.remainder(other) -``` - -### [paddle.Tensor.remainder](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#remainder-y-name-none) - -```python -paddle.Tensor.remainder(y, name=None) -``` - -其中 Paddle 与 PyTorch 运算除数参数所支持的类型不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| other | y | 除数,PyTorch 可为 Tensor or Scalar,Paddle 仅可为 Tensor, 需要转写。 | - -### 转写示例 -#### other:除数为 Scalar -```python -# PyTorch 写法 -x.remainder(1) - -# Paddle 写法 -x.remainder(y=paddle.to_tensor(1)) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.cuda.current_stream.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.cuda.current_stream.md deleted file mode 100644 index fa3533ae66f..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.cuda.current_stream.md +++ /dev/null @@ -1,43 +0,0 @@ -## [输入参数类型不一致]torch.cuda.current_stream - -### [torch.cuda.current_stream](https://pytorch.org/docs/stable/generated/torch.cuda.current_stream.html#torch.cuda.current_stream) - -```python -torch.cuda.current_stream(device=None) -``` - -### [paddle.device.current_stream](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/device/cuda/current_stream_cn.html) - -```python -paddle.device.current_stream(device=None) -``` - -功能一致,参数类型不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| device | device | 表示希望获取 stream 的设备或者设备 ID。如果为 None,则为当前的设备。默认值为 None,需要转写。 | - -### 转写示例 -#### device: 特定的运行设备 - -```python -# PyTorch 写法 -torch.cuda.current_stream('cuda:0') - -# Paddle 写法 -paddle.device.current_stream('gpu:0') - -# PyTorch 写法 -torch.cuda.current_stream(2) - -# Paddle 写法 -paddle.device.current_stream('gpu:2') - -# PyTorch 写法 -torch.cuda.current_stream() - -# Paddle 写法 -paddle.device.current_stream() -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.cuda.get_device_properties.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.cuda.get_device_properties.md deleted file mode 100644 index 6e15d7aae51..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.cuda.get_device_properties.md +++ /dev/null @@ -1,43 +0,0 @@ -## [ 输入参数类型不一致 ]torch.cuda.get_device_properties - -### [torch.cuda.get_device_properties](https://pytorch.org/docs/stable/generated/torch.cuda.get_device_properties.html#torch.cuda.get_device_properties) - -```python -torch.cuda.get_device_properties(device) -``` - -### [paddle.device.cuda.get_device_properties](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/device/cuda/get_device_properties_cn.html) - -```python -paddle.device.cuda.get_device_properties(device) -``` - -两者功能一致但参数类型不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| device | device | 表示设备、设备 ID 和类似于 gpu:x 的设备名称。默认值为 None,需要转写。| - -### 转写示例 -#### device: 设备 - -```python -# PyTorch 写法 -torch.cuda.get_device_properties('cuda:0') - -# Paddle 写法 -paddle.device.cuda.get_device_properties('gpu:0') - -# PyTorch 写法 -torch.cuda.get_device_properties(2) - -# Paddle 写法 -paddle.device.cuda.get_device_properties('gpu:2') - -# PyTorch 写法 -torch.cuda.get_device_properties() - -# Paddle 写法 -paddle.device.cuda.get_device_properties() -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.cuda.set_device.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.cuda.set_device.md deleted file mode 100644 index c206f199d5c..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.cuda.set_device.md +++ /dev/null @@ -1,38 +0,0 @@ -## [ 输入参数类型不一致 ]torch.cuda.set_device - -### [torch.cuda.set_device](https://pytorch.org/docs/stable/generated/torch.cuda.set_device.html#torch.cuda.set_device) - -```python -torch.cuda.set_device(device) -``` - -### [paddle.device.set_device](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/device/set_device_cn.html) - -```python -paddle.device.set_device(device) -``` - -功能一致,参数类型不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ |------------------------------------------------| -| device | device | PyTorch 支持 torch.device 或 int。PaddlePaddle 支持 str。 | - - -### 转写示例 -#### device: 特定的运行设备 - -```python -# PyTorch 写法 -torch.cuda.set_device('cuda:0') - -# Paddle 写法 -paddle.device.set_device('gpu:0') - -# PyTorch 写法 -torch.cuda.set_device(2) - -# Paddle 写法 -paddle.device.set_device('gpu:2') -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.floor_divide.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.floor_divide.md deleted file mode 100644 index a453efdeb5b..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.floor_divide.md +++ /dev/null @@ -1,46 +0,0 @@ -## [ 输入参数类型不一致 ]torch.floor_divide -### [torch.floor_divide](https://pytorch.org/docs/stable/generated/torch.floor_divide.html?highlight=torch+floor_divide#torch.floor_divide) - -```python -torch.floor_divide(input, - other, - *, - out=None) -``` - -### [paddle.floor_divide](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/floor_divide_cn.html#floor-divide) - -```python -paddle.floor_divide(x, - y, - name=None) -``` - -其中 PyTorch 和 Paddle 的 `other` 参数支持类型不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的被除数 Tensor ,仅参数名不一致。 | -| other | y | 表示输入的除数 Tensor ,torch 支持 Tensor 和 Python Number,paddle 仅支持 Tensor。当输入为 Python Number 时,需要转写。 | -| out | - | 表示输出的 Tensor , Paddle 无此参数,需要转写。 | - - -### 转写示例 -#### other:输入为 Number -```python -# PyTorch 写法 -torch.floor_divide(torch.tensor([2, 3, 8, 7]), other=2.) - -# Paddle 写法 -paddle.floor_divide(paddle.to_tensor([2, 3, 8, 7]), other=paddle.to_tensor(2.)) -``` - -#### out:指定输出 -```python -# PyTorch 写法 -torch.floor_divide(torch.tensor([2, 3, 8, 7]), torch.tensor([1, 5, 3, 3]), out=y) - -# Paddle 写法 -paddle.assign(paddle.floor_divide(paddle.to_tensor([2, 3, 8, 7]), paddle.to_tensor([1, 5, 3, 3])), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.narrow.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.narrow.md deleted file mode 100644 index 097fd7ed4b1..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.narrow.md +++ /dev/null @@ -1,36 +0,0 @@ -## [ 输入参数用法不一致 ]torch.Tensor.narrow -### [torch.Tensor.narrow](https://pytorch.org/docs/stable/generated/torch.Tensor.narrow.html#torch.Tensor.narrow) - -```python -torch.Tensor.narrow(dim, start, length) -``` - -### [paddle.slice](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/slice_cn.html#slice) -```python -paddle.slice(input, - axes, - starts, - ends) -``` - -其中 PyTorch 的 length 与 Paddle 的 ends 用法不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| - | input | 表示输入的 Tensor 。 | -| dim | axes | 表示切片的轴。 | -| start | starts | 表示起始位置。 | -| length | - | 到结束位置的长度,Paddle 无此参数,需要转写。Paddle 应改写 ends。 | -| - | ends | 表示结束位置,PyTorch 无此参数,应设为 start + length 。 | - -### 转写示例 - -```python -# PyTorch 写法 -y = a.narrow(1, 1, 4) - -# Paddle 写法 -# Paddle 可通过设置 ends-starts=length 来实现 PyTorch 的 length 功能 -y = paddle.slice(a, [1], [1], [5]) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.permute.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.permute.md deleted file mode 100644 index fba87e192e9..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.permute.md +++ /dev/null @@ -1,33 +0,0 @@ -## [ 输入参数用法不一致 ]torch.Tensor.permute - -### [torch.Tensor.permute](https://pytorch.org/docs/stable/generated/torch.Tensor.permute.html) - -```python -torch.Tensor.permute(*dims) -``` - -### [paddle.Tensor.transpose](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#transpose-perm-name-none) - -```python -paddle.Tensor.transpose(perm, name=None) -``` - -PyTorch 的 `*dims` 相比于 paddle 的 `perm` 额外支持可变参数的用法,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| *dims | perm | torch 支持可变参数或 list/tuple,paddle 仅支持 list/tuple。对于可变参数的用法,需要转写。 | - -### 转写示例 -#### *dims: 可变参数用法 -```python -# pytorch -x = torch.randn(2, 3, 5) -y = x.permute(2, 0, 1) - -# paddle -x = paddle.randn([2, 3, 5]) -y = x.transpose([2, 0, 1]) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.repeat.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.repeat.md deleted file mode 100644 index 35201f84295..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.repeat.md +++ /dev/null @@ -1,32 +0,0 @@ -## [ 输入参数用法不一致 ]torch.Tensor.repeat - -### [torch.Tensor.repeat](https://pytorch.org/docs/stable/generated/torch.Tensor.repeat.html) - -```python -torch.Tensor.repeat(*repeats) -``` - -### [paddle.Tensor.tile](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#tile-repeat-times-name-none) - -```python -paddle.Tensor.tile(repeat_times, name=None) -``` - -PyTorch 的 `*repeats` 相比于 Paddle 的 `repeat_times` 额外支持可变参数的用法,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| *repeats | repeat_times | torch 支持可变参数或 list/tuple,paddle 仅支持 list/tuple。对于可变参数的用法,需要转写。 | - -### 转写示例 -#### *sizes: 各个维度重复的次数,可变参数用法 -```python -# pytorch -x = torch.randn(2, 3, 5) -y = x.repeat(4, 2, 1) - -# paddle -x = paddle.randn([2, 3, 5]) -y = x.tile((4, 2, 1)) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.reshape.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.reshape.md deleted file mode 100644 index 5d635f14c63..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.reshape.md +++ /dev/null @@ -1,32 +0,0 @@ -## [ 输入参数用法不一致 ]torch.Tensor.reshape - -### [torch.Tensor.reshape](https://pytorch.org/docs/stable/generated/torch.Tensor.reshape.html) - -```python -torch.Tensor.reshape(*shape) -``` - -### [paddle.Tensor.reshape](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#reshape-shape-name-none) - -```python -paddle.Tensor.reshape(shape, name=None) -``` - -PyTorch 的 `*shape` 相比于 Paddle 的 `shape` 额外支持可变参数的用法,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| *shape | shape | torch 支持可变参数或 list/tuple,paddle 仅支持 list/tuple。对于可变参数的用法,需要转写。 | - -### 转写示例 -#### *shape: 新数组的维度序列,可变参数用法 -```python -# pytorch -x = torch.randn(2, 3, 5) -y = x.reshape(6, 5) - -# paddle -x = paddle.randn([2, 3, 5]) -y = x.reshape((6, 5)) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.swapaxes.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.swapaxes.md deleted file mode 100644 index 281760f7821..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.swapaxes.md +++ /dev/null @@ -1,38 +0,0 @@ -## [ 输入参数用法不一致 ] torch.Tensor.swapaxes - -### [torch.Tensor.swapaxes](https://pytorch.org/docs/stable/generated/torch.Tensor.swapaxes.html#torch.Tensor.swapaxes) - -```python -torch.Tensor.swapaxes(axis0, axis1) -``` - -### [paddle.Tensor.transpose](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#transpose-perm-name-none) - -```python -paddle.Tensor.transpose(perm, - name=None) -``` - -其中 PyTorch 的 `axis0、axis1` 与 Paddle 用法不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| axis0 | - | PyTorch 转置的第一个维度,Paddle 无此参数,需要转写。 | -| axis1 | - | PyTorch 转置的第二个维度,Paddle 无此参数,需要转写。 | -| - | perm | PyTorch 无此参数。 Paddle 可通过 perm 参数,等价的实现 torch 的 axis0、axis1 的功能。| - -### 转写示例 - -#### axis0、axis1 参数: 转置的维度设置 - -``` python -# PyTorch 写法: -x.swapaxes(axis0=0, axis1=1) - -# Paddle 写法: -x.transpose(perm=[1, 0, 2]) - -# 注:x 为 3D Tensor -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.swapdims.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.swapdims.md deleted file mode 100644 index 842a070ca5e..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.swapdims.md +++ /dev/null @@ -1,38 +0,0 @@ -## [ 输入参数用法不一致 ] torch.Tensor.swapdims - -### [torch.Tensor.swapdims](https://pytorch.org/docs/stable/generated/torch.Tensor.swapdims.html#torch.Tensor.swapdims) - -```python -torch.Tensor.swapdims(dim0, dim1) -``` - -### [paddle.Tensor.transpose](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#transpose-perm-name-none) - -```python -paddle.Tensor.transpose(perm, - name=None) -``` - -其中 PyTorch 的 `dim0、dim1` 与 Paddle 用法不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| dim0 | - | PyTorch 转置的第一个维度,Paddle 无此参数,需要转写。 | -| dim1 | - | PyTorch 转置的第二个维度,Paddle 无此参数,需要转写。 | -| - | perm | Paddle 无此参数。 Paddle 可通过 perm 参数,等价的实现 torch 的 dim0、dim1 的功能。| - - -### 转写示例 - -#### dim0、dim1 参数: 转置的维度设置 -``` python -# PyTorch 写法: -x.swapaxes(dim0=0, dim1=1) - -# Paddle 写法: -x.transpose(perm=[1, 0, 2]) - -# 注:x 为 3D Tensor -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.transpose.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.transpose.md deleted file mode 100644 index 6ef8e09da61..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.transpose.md +++ /dev/null @@ -1,32 +0,0 @@ -## [ 输入参数用法不一致 ]torch.Tensor.transpose - -### [torch.Tensor.transpose](https://pytorch.org/docs/stable/generated/torch.Tensor.transpose.html) - -```python -torch.Tensor.transpose(dim0, dim1) -``` - -### [paddle.Tensor.transpose](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#transpose-perm-name-none) - -```python -paddle.Tensor.transpose(perm, name=None) -``` - -PyTorch 的 `dim0, dim1` 与 Paddle 的 `perm` 用法不同,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| dim0, dim1 | perm | torch 的 dim0 与 dim1 表示要交换的两个维度, 为整数。 paddle 的 perm 表示重排的维度序列,为 list/tuple 。需要转写。| - -### 转写示例 -#### dim0, dim1: 表示要交换的两个维度 -```python -# pytorch -x = torch.randn(2, 3, 5) -y = x.transpose(0, 1) - -# paddle -x = paddle.randn([2, 3, 5]) -y = x.transpose(perm=[1, 0, 2]) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.view.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.view.md deleted file mode 100644 index f127884b38d..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.view.md +++ /dev/null @@ -1,34 +0,0 @@ -## [ 输入参数用法不一致 ]torch.Tensor.view - -### [torch.Tensor.view](https://pytorch.org/docs/stable/generated/torch.Tensor.view.html?highlight=view#torch.Tensor.view) - -```python -torch.Tensor.view(*shape) -torch.Tensor.view(dtype) -``` - -### [paddle.Tensor.view](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#view-x-shape-or-dtype-name-none) - -```python -paddle.Tensor.view(shape_or_dtype, name=None) -``` - -两者功能一致, 但 pytorch 的 `*shape` 和 paddle 的 `shape_or_dtype` 参数用法不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ------------------------------ | -| *shape | shape_or_dtype | 指定的维度。 PyTorch 参数 shape 既可以是可变参数,也可以是 list/tuple/torch.Size/dtype 的形式, Paddle 参数 shape_or_dtype 为 list/tuple/dtype 的形式。对于可变参数的用法,需要进行转写。 | - -### 转写示例 - -```python -# PyTorch 写法 -x = torch.randn(4, 4) -x.view(2, 2, 4) - -# Paddle 写法 -x = paddle.randn(4, 4) -x.view([2, 2, 4]) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.broadcast_shapes.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.broadcast_shapes.md deleted file mode 100644 index 5ada9b2b1d5..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.broadcast_shapes.md +++ /dev/null @@ -1,33 +0,0 @@ -## [ 输入参数用法不一致 ]torch.broadcast_shapes - -### [torch.broadcast_shapes](https://pytorch.org/docs/stable/generated/torch.broadcast_shapes.html#torch.broadcast_shapes) - -```python -torch.broadcast_shapes(*shapes) -``` - -### [paddle.broadcast_shape](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/broadcast_shape_cn.html) - -```python -paddle.broadcast_shape(x_shape, y_shape) -``` - -其中功能一致, 参数用法不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| -------- | ---------------- | --------------------------------------------------------------------------------------------------------- | -| *shapes | x_shape, y_shape | 输入 Tensor 的 shape,输入参数数量不一致,PyTorch 可以输入多项,Paddle 输入为两项,需要多次调用进行转写。 | - -### 转写示例 - -#### shapes 参数:输入 Tensor 的 shape - -```python -# PyTorch 写法: -torch.broadcast_shapes(x1, x2, x3) - -# Paddle 写法: -paddle.broadcast_shape(paddle.broadcast_shape(x1, x2), x3) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.narrow.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.narrow.md deleted file mode 100644 index 546a1f897cd..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.narrow.md +++ /dev/null @@ -1,39 +0,0 @@ -## [ 输入参数用法不一致 ]torch.narrow -### [torch.narrow](https://pytorch.org/docs/stable/generated/torch.narrow.html?highlight=narrow#torch.narrow) -```python -torch.narrow(input, - dim, - start, - length) -``` - - -### [paddle.slice](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/slice_cn.html#slice) -```python -paddle.slice(input, - axes, - starts, - ends) -``` - -其中 PyTorch 的 length 与 Paddle 的 ends 用法不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | input | 表示输入的 Tensor 。 | -| dim | axes | 表示切片的轴。 | -| start | starts | 表示起始位置。 | -| length | - | 到结束位置的长度,Paddle 无此参数。应修改 ends 实现。 | -| - | ends | 表示结束位置,PyTorch 无此参数。 Paddle 应设为 start + length。 | - - -### 转写示例 -``` python -# PyTorch 写法: -torch.narrow(x, 0, 1, 2) - -# Paddle 写法: -# Paddle 可通过设置 ends-starts=length 来实现 PyTorch 的 length 功能 -paddle.slice(x, [0], [1], [3]) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.Conv1d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.Conv1d.md deleted file mode 100644 index 003a5d7be6e..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.Conv1d.md +++ /dev/null @@ -1,70 +0,0 @@ -## [ 输入参数用法不一致 ]torch.nn.Conv1d -### [torch.nn.Conv1d](https://pytorch.org/docs/stable/generated/torch.nn.Conv1d.html?highlight=conv1d#torch.nn.Conv1d) - -```python -torch.nn.Conv1d(in_channels, - out_channels, - kernel_size, - stride=1, - padding=0, - dilation=1, - groups=1, - bias=True, - padding_mode='zeros', - device=None, - dtype=None) -``` - -### [paddle.nn.Conv1D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Conv1D_cn.html#conv1d) - -```python -paddle.nn.Conv1D(in_channels, - out_channels, - kernel_size, - stride=1, - padding=0, - dilation=1, - groups=1, - padding_mode='zeros', - weight_attr=None, - bias_attr=None, - data_format='NCL') -``` - -其中 PyTorch 的 `bias` 与 Paddle 的 `bias_attr` 用法不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| in_channels | in_channels | 表示输入 Tensor 通道数。 | -| out_channels | out_channels | 表示输出 Tensor 通道数。 | -| kernel_size | kernel_size | 表示卷积核大小。 | -| stride | stride | 表示卷积核步长。 | -| padding | padding | 表示填充大小。 | -| dilation | dilation | 表示空洞大小。 | -| groups | groups | 表示分组数。 | -| `bias` | - | 是否在输出中添加可学习的 bias, Paddle 无此参数,需要转写。 | -| padding_mode | padding_mode | 表示填充模式。 | -| device | - | 指定 Tensor 的设备,一般对网络训练结果影响不大,可直接删除。 | -| dtype | - | 指定权重参数属性的对象,一般对网络训练结果影响不大,可直接删除。 | -| - | weight_attr | Tensor 的所需数据类型,PyTorch 无此参数,Paddle 保持默认即可。 | -| - | bias_attr | Tensor 的所需数据类型,当`bias_attr`设置为 bool 类型与 PyTorch 的作用一致。 | -| - | data_format | Tensor 的所需数据类型,PyTorch 无此参数,Paddle 保持默认即可。 | - - -### 转写示例 -#### bias: 是否在输出中添加可学习的 bias -```python -# PyTorch 写法 -torch.nn.Conv1D(16, 33, 3, bias=True) - -# Paddle 写法 -paddle.nn.Conv1D(16, 33, 3) -``` -```python -# PyTorch 写法 -torch.nn.Conv1D(16, 33, 3, bias=False) - -# Paddle 写法 -paddle.nn.Conv1D(16, 33, 3, bias_attr=False) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.Conv2d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.Conv2d.md deleted file mode 100644 index 7fc3725153f..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.Conv2d.md +++ /dev/null @@ -1,70 +0,0 @@ -## [ 输入参数用法不一致 ]torch.nn.Conv2d -### [torch.nn.Conv2d](https://pytorch.org/docs/stable/generated/torch.nn.Conv2d.html?highlight=conv2d#torch.nn.Conv2d) - -```python -torch.nn.Conv2d(in_channels, - out_channels, - kernel_size, - stride=1, - padding=0, - dilation=1, - groups=1, - bias=True, - padding_mode='zeros', - device=None, - dtype=None) -``` - -### [paddle.nn.Conv2D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Conv2D_cn.html#conv2d) - -```python -paddle.nn.Conv2D(in_channels, - out_channels, - kernel_size, - stride=1, - padding=0, - dilation=1, - groups=1, - padding_mode='zeros', - weight_attr=None, - bias_attr=None, - data_format='NCHW') -``` - -其中 PyTorch 的 `bias` 与 Paddle 的 `bias_attr` 用法不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| in_channels | in_channels | 表示输入 Tensor 通道数。 | -| out_channels | out_channels | 表示输出 Tensor 通道数。 | -| kernel_size | kernel_size | 表示卷积核大小。 | -| stride | stride | 表示卷积核步长。 | -| padding | padding | 表示填充大小。 | -| dilation | dilation | 表示空洞大小。 | -| groups | groups | 表示分组数。 | -| bias | - | 是否在输出中添加可学习的 bias。 | -| padding_mode | padding_mode | 表示填充模式。 | -| device | - | 指定 Tensor 的设备,一般对网络训练结果影响不大,可直接删除。 | -| dtype | - | 指定权重参数属性的对象,一般对网络训练结果影响不大,可直接删除。 | -| - | weight_attr | Tensor 的所需数据类型,PyTorch 无此参数,Paddle 保持默认即可。 | -| - | bias_attr | Tensor 的所需数据类型,当`bias_attr`设置为 bool 类型与 PyTorch 的作用一致。 | -| - | data_format | Tensor 的所需数据类型,PyTorch 无此参数,Paddle 保持默认即可。 | - - -### 转写示例 -#### bias: 是否在输出中添加可学习的 bias -```python -# PyTorch 写法 -torch.nn.Conv2D(16, 33, 3, bias=True) - -# Paddle 写法 -paddle.nn.Conv2D(16, 33, 3) -``` -```python -# PyTorch 写法 -torch.nn.Conv2D(16, 33, 3, bias=False) - -# Paddle 写法 -paddle.nn.Conv2D(16, 33, 3, bias_attr=False) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.Conv3d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.Conv3d.md deleted file mode 100644 index b33d1af86de..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.Conv3d.md +++ /dev/null @@ -1,71 +0,0 @@ -## [ 输入参数用法不一致 ]torch.nn.Conv3d -### [torch.nn.Conv3d](https://pytorch.org/docs/stable/generated/torch.nn.Conv3d.html?highlight=conv3d#torch.nn.Conv3d) - -```python -torch.nn.Conv3d(in_channels, - out_channels, - kernel_size, - stride=1, - padding=0, - dilation=1, - groups=1, - bias=True, - padding_mode='zeros', - device=None, - dtype=None) -``` - -### [paddle.nn.Conv3D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Conv3D_cn.html#conv3d) - -```python -paddle.nn.Conv3D(in_channels, - out_channels, - kernel_size, - stride=1, - padding=0, - dilation=1, - groups=1, - padding_mode='zeros', - weight_attr=None, - bias_attr=None, - data_format='NCDHW') -``` - - -其中 PyTorch 的 `bias` 与 Paddle 的 `bias_attr` 用法不一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| in_channels | in_channels | 表示输入 Tensor 通道数。 | -| out_channels | out_channels | 表示输出 Tensor 通道数。 | -| kernel_size | kernel_size | 表示卷积核大小。 | -| stride | stride | 表示卷积核步长。 | -| padding | padding | 表示填充大小。 | -| dilation | dilation | 表示空洞大小。 | -| groups | groups | 表示分组数。 | -| `bias` | - | 是否在输出中添加可学习的 bias。 | -| padding_mode | padding_mode | 表示填充模式。 | -| device | - | 指定 Tensor 的设备,一般对网络训练结果影响不大,可直接删除。 | -| dtype | - | 指定权重参数属性的对象,一般对网络训练结果影响不大,可直接删除。 | -| - | weight_attr | Tensor 的所需数据类型,PyTorch 无此参数,Paddle 保持默认即可。 | -| - | bias_attr | Tensor 的所需数据类型,当`bias_attr`设置为 bool 类型与 PyTorch 的作用一致。 | -| - | data_format | Tensor 的所需数据类型,PyTorch 无此参数,Paddle 保持默认即可。 | - - -### 转写示例 -#### bias: 是否在输出中添加可学习的 bias -```python -# PyTorch 写法 -torch.nn.Conv3D(16, 33, 3, bias=True) - -# Paddle 写法 -paddle.nn.Conv3D(16, 33, 3) -``` -```python -# PyTorch 写法 -torch.nn.Conv3D(16, 33, 3, bias=False) - -# Paddle 写法 -paddle.nn.Conv3D(16, 33, 3, bias_attr=False) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.GELU.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.GELU.md deleted file mode 100644 index 91ebfbfaac5..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.GELU.md +++ /dev/null @@ -1,43 +0,0 @@ -## [ 输入参数用法不一致 ]torch.nn.GELU - -### [torch.nn.GELU](https://pytorch.org/docs/stable/generated/torch.nn.GELU.html#torch.nn.GELU) - -```python -torch.nn.GELU(approximate='none') -``` - -### [paddle.nn.GELU](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/GELU_cn.html) - -```python -paddle.nn.GELU(approximate=False, name=None) -``` - -其中功能一致, 输入参数用法不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ----------- | ------------ | ------------------------------------------------------------------------------------ | -| approximate | approximate | 是否使用近似计算,PyTorch 取值 none 和 tanh,Paddle 取值为 bool 类型,需要转写。 | - -### 转写示例 - -#### approximate 参数:是否使用近似计算 - -```python -# 取值为 tanh,PyTorch 写法: -m = torch.nn.GELU(approximate='tanh') -y = m(x) - -# Paddle 写法: -m = paddle.nn.GELU(approximate=True) -y = m(x) - -# 取值为 none,PyTorch 写法: -m = torch.nn.GELU(approximate='none') -y = m(x) - -# Paddle 写法: -m = paddle.nn.GELU(approximate=False) -y = m(x) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.Module.to.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.Module.to.md deleted file mode 100644 index df930cfdd8b..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.Module.to.md +++ /dev/null @@ -1,122 +0,0 @@ -## [ 输入参数用法不一致 ]torch.nn.Module.to - -### [torch.nn.Module.to](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.to) - -```python -torch.nn.Module.to(device=None, dtype=None, non_blocking=False) -``` - -### [paddle.nn.Layer.to](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#to-device-none-dtype-none-blocking-none) - -```python -paddle.nn.Layer.to(device=None, dtype=None, blocking=None) -``` - -两者参数用法不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------ | ------------ | -------------------------------------------------------------------------------------------------------- | -| device | device | Tensor 设备类型,PyTorch 为 torch.device,Paddle 为字符串 cpu,gpu:x,xpu:x 或 Place 对象,需要转写。 | -| dtype | dtype | Tensor 数据类型,PyTorch 为字符串或 PyTorch 数据类型,Paddle 为 字符串或 Paddle 数据类型,需要转写。 | -| non_blocking | blocking | 是否同步或异步拷贝,PyTorch 和 Paddle 取值相反,需要转写。 | - -### 转写示例 - -#### device 参数:Tensor 设备类型 - -```python -# PyTorch 写法: -module = torch.nn.Module() -module.to(device=torch.device("cuda:0")) - -# Paddle 写法: -module = paddle.nn.Layer() -module.to(device="gpu:0") -``` - -#### dtype 参数:Tensor 数据类型 - -```python -# PyTorch 写法: -module = torch.nn.Module() -module.to(dtype=torch.float32) - -# Paddle 写法: -module = paddle.nn.Layer() -module.to(dtype=paddle.float32) -``` - -#### non_blocking 参数:是否同步或异步拷贝 - -```python -# PyTorch 写法: -module = torch.nn.Module() -module.to(non_blocking = False) - -# Paddle 写法: -module = paddle.nn.Layer() -module.to(blocking=True) -``` - ---- - -### [torch.nn.Module.to](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.to) - -```python -torch.nn.Module.to(tensor, non_blocking=False) -``` - -### [paddle.nn.Layer.to](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#to-device-none-dtype-none-blocking-none) - -```python -paddle.nn.Layer.to(device=None, dtype=None, blocking=None) -``` - -两者参数用法不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------ | ------------ | -------------------------------------------------------------- | -| tensor | - | 获取设备和数据类型的 Tensor,Paddle 无此参数,需要转写。 | -| - | device | Tensor 设备类型,PyTorch 无此参数,需要转写。 | -| - | dtype | Tensor 数据类型,PyTorch 无此参数,需要转写。 | -| non_blocking | blocking | 是否同步或异步拷贝,PyTorch 和 Paddle 取值相反,需要转写。 | - -### 转写示例 - -#### tensor 参数:获取设备和数据类型的 Tensor - -```python -# PyTorch 写法: -module = torch.nn.Module() -module.to(x) - -# Paddle 写法: -module = paddle.nn.Layer() -module.to(device=x.place, dtype=x.dtype) -``` - -#### non_blocking 参数:是否同步或异步拷贝 - -```python -# PyTorch 写法: -module = torch.nn.Module() -module.to(x, non_blocking = False) - -# Paddle 写法: -module = paddle.nn.Layer() -module.to(device=x.place, dtype=x.dtype, blocking=True) -``` - ---- - -### [torch.nn.Module.to](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.to) - -```python -torch.nn.Module.to(memory_format=torch.channels_last) -``` - -memory_format 表示内存格式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.Sequential.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.Sequential.md deleted file mode 100644 index 6a2fd8b1fee..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.Sequential.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 输入参数用法不一致 ]torch.nn.Sequential - -### [torch.nn.Sequential](https://pytorch.org/docs/stable/generated/torch.nn.Sequential.html#torch.nn.Sequential) - -```python -torch.nn.Sequential(arg: OrderedDict[str, Module]) -``` - -### [paddle.nn.Sequential](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Sequential_cn.html) - -```python -paddle.nn.Sequential(*layers) -``` - -其中功能一致, 参数用法不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ------------------------------------------------------------------------------------------ | -| arg | layers | Paddle 支持 Layers 或可迭代的 name Layer 对,PyTorch 支持类型更多,包含 OrderedDict 类型。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.functional.gelu.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.functional.gelu.md deleted file mode 100644 index 746971e5485..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.functional.gelu.md +++ /dev/null @@ -1,36 +0,0 @@ -## [ 输入参数用法不一致]torch.nn.functional.gelu - -### [torch.nn.functional.gelu](https://pytorch.org/docs/stable/generated/torch.nn.functional.gelu.html#torch.nn.functional.gelu) - -```python -torch.nn.functional.gelu(input, approximate='none') -``` - -### [paddle.nn.functional.gelu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/gelu_cn.html) - -```python -paddle.nn.functional.gelu(x, approximate=False, name=None) -``` - -其中功能一致, 输入参数用法不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ----------- | ------------ | ------------------------------------------------------------------------------------ | -| input | x | 输入的 Tensor,仅参数名不一致。 | -| approximate | approximate | 是否使用近似计算,PyTorch 取值 none 和 tanh,Paddle 取值为 bool 类型,需要转写。 | - -### 转写示例 - -#### approximate 参数:是否使用近似计算 - -```python -# PyTorch 写法: -y1 = torch.nn.functional.gelu(x, approximate='tanh') -y2 = torch.nn.functional.gelu(x, approximate='none') - -# Paddle 写法: -y1 = paddle.nn.functional.gelu(x, approximate=True) -y2 = paddle.nn.functional.gelu(x, approximate=False) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.ones.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.ones.md deleted file mode 100644 index 041bdb809e1..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.ones.md +++ /dev/null @@ -1,83 +0,0 @@ -## [ 输入参数用法不一致 ]torch.ones -### [torch.ones](https://pytorch.org/docs/stable/generated/torch.ones.html?highlight=ones#torch.ones) - -```python -torch.ones(*size, - *, - out=None, - dtype=None, - layout=torch.strided, - device=None, - requires_grad=False, - pin_memory=False) -``` - -### [paddle.ones](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/ones_cn.html#ones) -```python -paddle.ones(shape, - dtype=None, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| *size | shape | 表示输出形状大小,PyTorch 以可变参数方式传入,Paddle 以 list 或 tuple 的方式传入。 | -| out | - | 表示输出的 Tensor, Paddle 无此参数,需要转写。 | -| dtype | dtype | 表示数据类型。 | -| layout | - | 表示布局方式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| device | - | 表示 Tensor 存放设备位置,Paddle 无此参数,需要转写。 | -| requires_grad | - | 表示是否不阻断梯度传导,Paddle 无此参数,需要转写。 | -| pin_memory | - | 表示是否使用锁页内存, Paddle 无此参数,需要转写。 | - - -### 转写示例 -#### *size:输出形状大小 -```python -# PyTorch 写法 -torch.ones(3, 5) - -# Paddle 写法 -paddle.ones([3, 5]) -``` - -#### out:指定输出 -```python -# PyTorch 写法 -torch.ones((3, 2), out=y) - -# Paddle 写法 -paddle.assign(paddle.ones([3, 2]), y) -``` - - -#### requires_grad:是否需要求反向梯度,需要修改该 Tensor 的 stop_gradient 属性 -```python -# PyTorch 写法 -x = torch.ones(3, 2, requires_grad=True) - -# Paddle 写法 -x = paddle.ones([3, 2]) -x.stop_gradient = False -``` - - -#### device: Tensor 的设备 -```python -# PyTorch 写法 -torch.ones(3, 2, device=torch.device('cpu')) - -# Paddle 写法 -y = paddle.ones([3, 2]) -y.cpu() -``` - -#### pin_memory:是否分配到固定内存上 - -```python -# PyTorch 写法 -y = torch.ones((3, 5), pin_memory=True) - -# Paddle 写法 -y = paddle.ones([3, 5]).pin_memory() diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.randn.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.randn.md deleted file mode 100644 index 55eef6690c0..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.randn.md +++ /dev/null @@ -1,87 +0,0 @@ -## [ 输入参数用法不一致 ]torch.randn - -### [torch.randn](https://pytorch.org/docs/stable/generated/torch.randn.html?highlight=randn#torch.randn) - -```python -torch.randn(*size, - *, - generator=None, - out=None, - dtype=None, - layout=torch.strided, - device=None, - requires_grad=False, - pin_memory=False) -``` - -### [paddle.randn](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/randn_cn.html#randn) - -```python -paddle.randn(shape, - dtype=None, - name=None) -``` - -其中 torch 的 `size` 和 paddle 的 `shape` 用法不一致,torch 还支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| *size | shape | 表示输出形状大小,PyTorch 以可变参数方式传入,Paddle 以 list 或 tuple 的方式传入。 | -| generator | - | Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| out | - | 表示输出的 Tensor , Paddle 无此参数,需要转写。 | -| dtype | dtype | 表示输出 Tensor 的数据类型。 | -| layout | - | 表示布局方式, Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| device | - | 表示 Tensor 存放设备位置,Paddle 无此参数,需要转写。 | -| requires_grad | - | 表示是否计算梯度, Paddle 无此参数,需要转写。 | -| pin_memory | - | 表示是否使用锁页内存, Paddle 无此参数,需要转写。 | - - - -### 转写示例 -#### *size:输出形状大小 -```python -# PyTorch 写法 -torch.randn(3, 5) - -# Paddle 写法 -paddle.randn([3, 5]) -``` - -#### out:指定输出 -```python -# PyTorch 写法 -torch.randn([3, 5], out=y) - -# Paddle 写法 -paddle.assign(paddle.randn([3, 5]), y) -``` - -#### device: Tensor 的设备 -```python -# PyTorch 写法 -torch.randn((2, 2), device=torch.device('cpu')) - -# Paddle 写法 -y = paddle.randn([2, 2]) -y.cpu() -``` - -#### requires_grad:是否需要求反向梯度,需要修改该 Tensor 的 stop_gradient 属性 -```python -# PyTorch 写法 -x = torch.randn([3, 5], requires_grad=True) - -# Paddle 写法 -x = paddle.randn([3, 5]) -x.stop_gradient = False -``` - -#### pin_memory:是否分配到固定内存上 - -```python -# PyTorch 写法 -y = torch.randn((3, 5), pin_memory=True) - -# Paddle 写法 -y = paddle.randn([3, 5]).pin_memory() diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.swapaxes.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.swapaxes.md deleted file mode 100644 index 3471536960b..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.swapaxes.md +++ /dev/null @@ -1,40 +0,0 @@ -## [ 输入参数用法不一致 ] torch.swapaxes - -### [torch.swapaxes](https://pytorch.org/docs/stable/generated/torch.swapaxes.html#torch.swapaxes) - -```python -torch.swapaxes(input, axis0, axis1) -``` - -### [paddle.transpose](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/transpose_cn.html#transpose) - -```python -paddle.transpose(x, - perm, - name=None) -``` - -其中 PyTorch 的 `axis0、axis1` 与 Paddle 用法不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 输入 Tensor。 | -| axis0 | - | PyTorch 转置的第一个维度,Paddle 无此参数,需要转写。 | -| axis1 | - | PyTorch 转置的第二个维度,Paddle 无此参数,需要转写。 | -| - | perm | Paddle 可通过 perm 参数,等价的实现 torch 的 axis0、axis1 的功能。| - - -### 转写示例 - -#### axis0、axis1 参数: 转置的维度设置 -``` python -# PyTorch 写法: -torch.swapaxes(x, axis0=0, axis1=1) - -# Paddle 写法: -paddle.transpose(x, perm=[1, 0, 2]) - -# 注:x 为 3D Tensor -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.swapdims.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.swapdims.md deleted file mode 100644 index e0b9f83fb5c..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.swapdims.md +++ /dev/null @@ -1,42 +0,0 @@ -## [ 输入参数用法不一致 ] torch.swapdims - -### [torch.swapdims](https://pytorch.org/docs/stable/generated/torch.swapdims.html#torch.swapdims) - -```python -torch.swapdims(input, - dim0, - dim1) -``` - -### [paddle.transpose](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/transpose_cn.html#transpose) - -```python -paddle.transpose(x, - perm, - name=None) -``` - -其中 PyTorch 的 `dim0、dim1` 与 Paddle 用法不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 输入 Tensor。 | -| dim0 | - | PyTorch 转置的第一个维度,Paddle 无此参数,需要转写。 | -| dim1 | - | PyTorch 转置的第二个维度,Paddle 无此参数,需要转写。 | -| - | perm | Paddle 可通过 perm 参数,等价的实现 torch 的 dim0、dim1 的功能。| - - -### 转写示例 - -#### dim0、dim1 参数: 转置的维度设置 -``` python -# PyTorch 写法: -torch.swapdims(x, dim0=0, dim1=1) - -# Paddle 写法: -paddle.transpose(x, perm=[1, 0, 2]) - -# 注:x 为 3D Tensor -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.transpose.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.transpose.md deleted file mode 100644 index e2666176be3..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.transpose.md +++ /dev/null @@ -1,42 +0,0 @@ -## [ 输入参数用法不一致 ] torch.transpose - -### [torch.transpose](https://pytorch.org/docs/stable/generated/torch.transpose.html?highlight=transpose#torch.transpose) - -```python -torch.transpose(input, - dim0, - dim1) -``` - -### [paddle.transpose](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/transpose_cn.html#transpose) - -```python -paddle.transpose(x, - perm, - name=None) -``` - -其中 PyTorch 的 `dim0、dim1` 与 Paddle 用法不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 输入 Tensor。 | -| dim0 | - | PyTorch 转置的第一个维度,Paddle 无此参数,需要转写。 | -| dim1 | - | PyTorch 转置的第二个维度,Paddle 无此参数,需要转写。 | -| - | perm | Paddle 可通过 perm 参数,等价的实现 torch 的 dim0、dim1 的功能。| - - -### 转写示例 - -#### dim0、dim1 参数: 转置的维度设置 -``` python -# PyTorch 写法: -torch.transpose(x, dim0=0, dim1=1) - -# Paddle 写法: -paddle.transpose(x, perm=[1, 0, 2]) - -# 注:x 为 3D Tensor -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.zeros.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.zeros.md deleted file mode 100644 index 9a38c93e5f2..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.zeros.md +++ /dev/null @@ -1,83 +0,0 @@ -## [ 输入参数用法不一致 ]torch.zeros -### [torch.zeros](https://pytorch.org/docs/stable/generated/torch.zeros.html?highlight=zeros#torch.zeros) - -```python -torch.zeros(*size, - *, - out=None, - dtype=None, - layout=torch.strided, - device=None, - requires_grad=False, - pin_memory=False) -``` - -### [paddle.zeros](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/zeros_cn.html#zeros) - -```python -paddle.zeros(shape, - dtype=None, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| *size | shape | 表示输出形状大小,PyTorch 以可变参数方式传入,Paddle 以 list 或 tuple 的方式传入,需要转写。 | -| out | - | 表示输出的 Tensor , Paddle 无此参数,需要转写。 | -| dtype | dtype | 表示数据类型 | -| layout | - | 表示布局方式, Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| device | - | 表示 Tensor 存放设备位置,Paddle 无此参数,需要转写。 | -| requires_grad | - | 表示是否计算梯度, Paddle 无此参数,需要转写。 | -| pin_memory | - | 表示是否使用锁页内存, Paddle 无此参数,需要转写。 | - - -### 转写示例 -#### *size:输出形状大小 -```python -# PyTorch 写法 -torch.zeros(3, 5) - -# Paddle 写法 -paddle.zeros([3, 5]) -``` - -#### out:指定输出 -```python -# PyTorch 写法 -torch.zeros([3, 5], out=y) - -# Paddle 写法 -paddle.assign(paddle.zeros([3, 5]), y) -``` - -#### device: Tensor 的设备 -```python -# PyTorch 写法 -torch.zeros([3, 5], device=torch.device('cpu')) - -# Paddle 写法 -y = paddle.zeros([3, 5]) -y.cpu() -``` - -#### requires_grad:是否需要求反向梯度,需要修改该 Tensor 的 stop_gradient 属性 -```python -# PyTorch 写法 -x = torch.zeros([3, 5], requires_grad=True) - -# Paddle 写法 -x = paddle.zeros([3, 5]) -x.stop_gradient = False -``` - -#### pin_memory:是否分配到固定内存上 - -```python -# PyTorch 写法 -y = torch.zeros((3, 5), pin_memory=True) - -# Paddle 写法 -y = paddle.zeros([3, 5]).pin_memory() diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/fairscale.nn.model_parallel.initialize.get_model_parallel_rank.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/fairscale.nn.model_parallel.initialize.get_model_parallel_rank.md index b982129fcae..5e943c6b2fa 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/fairscale.nn.model_parallel.initialize.get_model_parallel_rank.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/fairscale.nn.model_parallel.initialize.get_model_parallel_rank.md @@ -1,4 +1,4 @@ -## [无参数]fairscale.nn.model_parallel.initialize.get_model_parallel_rank +## [仅 API 调用方式不一致]fairscale.nn.model_parallel.initialize.get_model_parallel_rank ### [fairscale.nn.model_parallel.initialize.get_model_parallel_rank](https://github.com/facebookresearch/fairscale/blob/164cc0f3170b4a3951dd84dda29c3e1504ac4d6e/fairscale/nn/model_parallel/initialize.py#L155) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/fairscale.nn.model_parallel.initialize.get_model_parallel_world_size.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/fairscale.nn.model_parallel.initialize.get_model_parallel_world_size.md index 54eed9f239c..cc023571827 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/fairscale.nn.model_parallel.initialize.get_model_parallel_world_size.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/fairscale.nn.model_parallel.initialize.get_model_parallel_world_size.md @@ -1,4 +1,4 @@ -## [无参数]fairscale.nn.model_parallel.initialize.get_model_parallel_world_size +## [仅 API 调用方式不一致]fairscale.nn.model_parallel.initialize.get_model_parallel_world_size ### [fairscale.nn.model_parallel.initialize.get_model_parallel_world_size](https://github.com/facebookresearch/fairscale/blob/164cc0f3170b4a3951dd84dda29c3e1504ac4d6e/fairscale/nn/model_parallel/initialize.py#L150) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/flash_attn.__version__.split.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/flash_attn.__version__.split.md index a6b9feee8f1..2c01cc7e271 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/flash_attn.__version__.split.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/flash_attn.__version__.split.md @@ -1,4 +1,4 @@ -## [ 参数完全一致 ] flash_attn._\_version__.split +## [仅 API 调用方式不一致] flash_attn._\_version__.split ### [flash_attn._\_version__.split](https://github.com/Dao-AILab/flash-attention/blob/72e27c6320555a37a83338178caa25a388e46121/flash_attn/__init__.py) @@ -13,9 +13,3 @@ paddle.__version__.split(sep=None, maxsplit=-1) ``` 两者功能一致,参数完全一致,具体如下: -### 参数映射 - -| flash_attn | PaddlePaddle | 备注 | -|---------|--------------| -------------------------------------------------- | -| sep | sep | 分割字符串的分隔符。 | -| max | max | 分割操作的最大次数 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tenosr.dtype.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tenosr.dtype.md deleted file mode 100644 index d916f6f95fb..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tenosr.dtype.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.dtype - -### [torch.Tensor.dtype](https://pytorch.org/docs/stable/generated/torch.Tensor.type.html#torch-tensor-type) - -```python -torch.Tensor.dtype -``` - -### [paddle.Tensor.dtype](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#dtype) - -```python -paddle.Tensor.dtype -``` - -两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.T__upper.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.T__upper.md deleted file mode 100644 index 425070aa60d..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.T__upper.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.T - -### [torch.Tensor.T](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.T) - -```python -torch.Tensor.T -``` - -### [paddle.Tensor.T](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#tensor) - -```python -paddle.Tensor.T -``` - -两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.abs.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.abs.md deleted file mode 100644 index 2f741a1c093..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.abs.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.abs - -### [torch.Tensor.abs](https://pytorch.org/docs/stable/generated/torch.Tensor.abs.html#torch.Tensor.abs) - -```python -torch.Tensor.abs() -``` - -### [paddle.Tensor.abs](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#abs-name-none) - -```python -paddle.Tensor.abs() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.abs_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.abs_.md deleted file mode 100644 index 1b1612d6950..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.abs_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.abs_ - -### [torch.Tensor.abs_](https://pytorch.org/docs/stable/generated/torch.Tensor.abs_.html) - -```python -torch.Tensor.abs_() -``` - -### [paddle.Tensor.abs_]() - -```python -paddle.Tensor.abs_() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.acos.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.acos.md deleted file mode 100644 index 9183c98ff4f..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.acos.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.acos - -### [torch.Tensor.acos](https://pytorch.org/docs/stable/generated/torch.Tensor.acos.html) - -```python -torch.Tensor.acos() -``` - -### [paddle.Tensor.acos]() - -```python -paddle.Tensor.acos() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.acos_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.acos_.md deleted file mode 100644 index 2ee47a6cd4d..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.acos_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.acos_ - -### [torch.Tensor.acos_](https://pytorch.org/docs/stable/generated/torch.Tensor.acos_.html) - -```python -torch.Tensor.acos_() -``` - -### [paddle.Tensor.acos_]() - -```python -paddle.Tensor.acos_() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.acosh.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.acosh.md deleted file mode 100644 index baf87967dcd..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.acosh.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.acosh - -### [torch.Tensor.acosh](https://pytorch.org/docs/stable/generated/torch.Tensor.acosh.html?highlight=acosh#torch.Tensor.acosh) - -```python -torch.Tensor.acosh() -``` - -### [paddle.Tensor.acosh]() - -```python -paddle.Tensor.acosh(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.acosh_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.acosh_.md deleted file mode 100644 index d9b7acc4078..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.acosh_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.acosh_ - -### [torch.Tensor.acosh_](https://pytorch.org/docs/stable/generated/torch.Tensor.acosh_.html) - -```python -torch.Tensor.acosh_() -``` - -### [paddle.Tensor.acosh_]() - -```python -paddle.Tensor.acosh_() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.angle.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.angle.md deleted file mode 100644 index cdf56c127f3..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.angle.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.angle - -### [torch.Tensor.angle](https://pytorch.org/docs/stable/generated/torch.Tensor.angle.html) - -```python -torch.Tensor.angle() -``` - -### [paddle.Tensor.angle](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#angle-name-none) - -```python -paddle.Tensor.angle(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.apply_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.apply_.md deleted file mode 100644 index 204bf4266c2..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.apply_.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 参数完全一致 ]torch.Tensor.apply_ -### [torch.Tensor.apply_](https://pytorch.org/docs/stable/generated/torch.Tensor.apply_.html) - -```python -torch.Tensor.apply_(callable) -``` - -### [paddle.Tensor.apply_]() - -```python -paddle.Tensor.apply_(callable) -``` - - -两者功能不同,pytorch 只支持 Inplace 操作,且只对 CPU tensor 才能使用。Paddle 版本可以在 GPU 下运行同时也有 outplace 版本。两者参数一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -|----------|--------------|-----------| -| callable | callable | 一个被调用的函数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.asin.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.asin.md deleted file mode 100644 index 20c6a94936b..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.asin.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.asin - -### [torch.Tensor.asin](https://pytorch.org/docs/stable/generated/torch.Tensor.asin.html) - -```python -torch.Tensor.asin() -``` - -### [paddle.Tensor.asin](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#asin-name-none) - -```python -paddle.Tensor.asin(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.asin_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.asin_.md deleted file mode 100644 index 7ed8422423e..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.asin_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.asin_ - -### [torch.Tensor.asin_](https://pytorch.org/docs/stable/generated/torch.Tensor.asin_.html) - -```python -torch.Tensor.asin_() -``` - -### [paddle.Tensor.asin_]() - -```python -paddle.Tensor.asin_() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.asinh.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.asinh.md deleted file mode 100644 index f8c9859ff6a..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.asinh.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.asinh - -### [torch.Tensor.asinh](https://pytorch.org/docs/stable/generated/torch.Tensor.asinh) - -```python -torch.Tensor.asinh() -``` - -### [paddle.Tensor.asinh]() - -```python -paddle.Tensor.asinh() -``` - -两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.asinh_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.asinh_.md deleted file mode 100644 index ebba6f478c5..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.asinh_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.asinh_ - -### [torch.Tensor.asinh_](https://pytorch.org/docs/stable/generated/torch.Tensor.asinh_) - -```python -torch.Tensor.asinh_() -``` - -### [paddle.Tensor.asinh_]() - -```python -paddle.Tensor.asinh_() -``` - -两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.atan.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.atan.md deleted file mode 100644 index d39ae73f879..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.atan.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.atan - -### [torch.Tensor.atan](https://pytorch.org/docs/stable/generated/torch.Tensor.atan.html) - -```python -torch.Tensor.atan() -``` - -### [paddle.Tensor.atan](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#atan-name-none) - -```python -paddle.Tensor.atan(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.atan_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.atan_.md deleted file mode 100644 index 1e873f7afa1..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.atan_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.atan_ - -### [torch.Tensor.atan_](https://pytorch.org/docs/stable/generated/torch.Tensor.atan_.html) - -```python -torch.Tensor.atan_() -``` - -### [paddle.Tensor.atan_]() - -```python -paddle.Tensor.atan_() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.atanh.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.atanh.md deleted file mode 100644 index 5489807bbc2..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.atanh.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.atanh - -### [torch.Tensor.atanh](https://pytorch.org/docs/stable/generated/torch.Tensor.atanh.html#torch.Tensor.atanh) - -```python -torch.Tensor.atanh() -``` - -### [paddle.Tensor.atanh]() - -```python -paddle.Tensor.atanh() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.atanh_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.atanh_.md deleted file mode 100644 index 8e7f20a39ee..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.atanh_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.atanh_ - -### [torch.Tensor.atanh_](https://pytorch.org/docs/stable/generated/torch.Tensor.atanh_.html#torch.Tensor.atanh_) - -```python -torch.Tensor.atanh_() -``` - -### [paddle.Tensor.atanh_]() - -```python -paddle.Tensor.atanh_() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.bincount.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.bincount.md deleted file mode 100644 index 9dea4341dbf..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.bincount.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ 参数完全一致 ]torch.Tensor.bincount - -### [torch.Tensor.bincount](https://pytorch.org/docs/stable/generated/torch.Tensor.bincount.html) - -```python -torch.Tensor.bincount(weights=None, minlength=0) -``` - -### [paddle.Tensor.bincount](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#bincount-weights-none-minlength-0) - -```python -paddle.Tensor.bincount(weights=None, minlength=0) -``` - -功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| --------- | ------------ | -- | -| weights | weights | 输入 Tensor 中每个元素的权重。 | -| minlength | minlength | 输出 Tensor 的最小长度。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.bitwise_not.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.bitwise_not.md deleted file mode 100644 index fc3f4b62ec3..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.bitwise_not.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.bitwise_not - -### [torch.Tensor.bitwise_not](https://pytorch.org/docs/stable/generated/torch.Tensor.bitwise_not.html) - -```python -torch.Tensor.bitwise_not() -``` - -### [paddle.Tensor.bitwise_not]() - -```python -paddle.Tensor.bitwise_not() -``` - -两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.bitwise_not_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.bitwise_not_.md deleted file mode 100644 index 9f584e77d3d..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.bitwise_not_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.bitwise_not_ - -### [torch.Tensor.bitwise_not_](https://pytorch.org/docs/stable/generated/torch.Tensor.bitwise_not_.html) - -```python -torch.Tensor.bitwise_not_() -``` - -### [paddle.Tensor.bitwise_not_]() - -```python -paddle.Tensor.bitwise_not_() -``` - -两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.ceil.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.ceil.md deleted file mode 100644 index a339165042b..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.ceil.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.ceil - -### [torch.Tensor.ceil](https://pytorch.org/docs/stable/generated/torch.Tensor.ceil.html) - -```python -torch.Tensor.ceil() -``` - -### [paddle.Tensor.ceil](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#ceil-name-none) - -```python -paddle.Tensor.ceil(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.ceil_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.ceil_.md deleted file mode 100644 index 5a4f8382bee..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.ceil_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.ceil_ - -### [torch.Tensor.ceil\_](https://pytorch.org/docs/stable/generated/torch.Tensor.ceil_.html) - -```python -torch.Tensor.ceil_() -``` - -### [paddle.Tensor.ceil\_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#id7) - -```python -paddle.Tensor.ceil_(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.cholesky.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.cholesky.md deleted file mode 100644 index bc8687baebd..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.cholesky.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 参数完全一致 ]torch.Tensor.cholesky - -### [torch.Tensor.cholesky](https://pytorch.org/docs/stable/generated/torch.Tensor.cholesky.html) - -```python -torch.Tensor.cholesky(upper=False) -``` - -### [paddle.Tensor.cholesky](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#cholesky-upper-false-name-none) - -```python -paddle.Tensor.cholesky(upper=False, name=None) -``` - -功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -- | -| upper | upper | 指示是否返回上三角矩阵或下三角矩阵。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.cholesky_inverse.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.cholesky_inverse.md deleted file mode 100644 index 9e5b4b4437d..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.cholesky_inverse.md +++ /dev/null @@ -1,20 +0,0 @@ -## [ 参数完全一致 ]torch.Tensor.cholesky_inverse - -### [torch.Tensor.cholesky_inverse](https://pytorch.org/docs/stable/generated/torch.cholesky_inverse.html#torch.cholesky_inverse) -```python -torch.Tensor.cholesky_inverse(upper=False) -``` - -### [paddle.Tensor.cholesky_inverse](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html) - -```python -paddle.Tensor.cholesky_inverse(upper=False, name=None) -``` - -功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -- | -| upper | upper | 指示是否返回上三角矩阵或下三角矩阵。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.clamp.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.clamp.md deleted file mode 100644 index 4208b04e294..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.clamp.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 参数完全一致 ] torch.Tensor.clamp - -### [torch.Tensor.clamp](https://pytorch.org/docs/stable/generated/torch.Tensor.clamp.html?highlight=clamp#torch.Tensor.clamp) - -```python -torch.Tensor.clamp(min=None, max=None) -``` - -### [paddle.Tensor.clip](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#clip-min-none-max-none-name-none) - -```python -paddle.Tensor.clip(min=None, max=None, name=None) -``` - -两者功能一致,参数完全一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -|---------|--------------| -------------------------------------------------- | -| min | min | 裁剪的最小值,输入中小于该值的元素将由该元素代替。 | -| max | max | 裁剪的最大值,输入中大于该值的元素将由该元素代替。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.clamp_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.clamp_.md index aa17b4657b5..5d5216052af 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.clamp_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.clamp_.md @@ -1,4 +1,4 @@ -## [ 参数完全一致 ] torch.Tensor.clamp_ +## [仅 API 调用方式不一致] torch.Tensor.clamp_ ### [torch.Tensor.clamp_](https://pytorch.org/docs/stable/generated/torch.Tensor.clamp_.html?highlight=clamp_#torch.Tensor.clamp_) @@ -13,9 +13,3 @@ paddle.Tensor.clip_(min=None, max=None, name=None) ``` 两者功能一致,参数完全一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -|---------|--------------|---------------------------| -| min | min | 裁剪的最小值,输入中小于该值的元素将由该元素代替。 | -| max | max | 裁剪的最大值,输入中大于该值的元素将由该元素代替。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.clip.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.clip.md deleted file mode 100644 index d4d5dd45fbd..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.clip.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 参数完全一致 ] torch.Tensor.clip - -### [torch.Tensor.clip](https://pytorch.org/docs/stable/generated/torch.Tensor.clip.html?highlight=clip#torch.Tensor.clip) - -```python -torch.Tensor.clip(min=None, max=None) -``` - -### [paddle.Tensor.clip](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#clip-min-none-max-none-name-none) - -```python -paddle.Tensor.clip(min=None, max=None, name=None) -``` - -两者功能一致,参数完全一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -|---------|--------------| -------------------------------------------------- | -| min | min | 裁剪的最小值,输入中小于该值的元素将由该元素代替。 | -| max | max | 裁剪的最大值,输入中大于该值的元素将由该元素代替。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.clip_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.clip_.md deleted file mode 100644 index 3ccde9df1e8..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.clip_.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 参数完全一致 ] torch.Tensor.clip_ - -### [torch.Tensor.clip_](https://pytorch.org/docs/stable/generated/torch.Tensor.clip_.html?highlight=clip_#torch.Tensor.clip_) - -```python -torch.Tensor.clip_(min=None, max=None) -``` - -### [paddle.Tensor.clip_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#id6) - -```python -paddle.Tensor.clip_(min=None, max=None, name=None) -``` - -两者功能一致,参数完全一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -|---------|--------------|---------------------------| -| min | min | 裁剪的最小值,输入中小于该值的元素将由该元素代替。 | -| max | max | 裁剪的最大值,输入中大于该值的元素将由该元素代替。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.coalesce.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.coalesce.md deleted file mode 100644 index 28c6e9fc8d4..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.coalesce.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.coalesce - -### [torch.Tensor.coalesce](https://pytorch.org/docs/stable/generated/torch.Tensor.coalesce.html#torch-tensor-coalesce) - -```python -torch.Tensor.coalesce() -``` - -### [paddle.Tensor.coalesce](https://www.paddlepaddle.org.cn/documentation/docs/en/develop/api/paddle/Tensor/coalesce_en.html) - -```python -paddle.Tensor.coalesce(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.col_indices.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.col_indices.md index d6f2ecf7398..1d5be70c90a 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.col_indices.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.col_indices.md @@ -1,4 +1,4 @@ -## [ 无参数 ] torch.Tensor.col_indices +## [仅 API 调用方式不一致] torch.Tensor.col_indices ### [torch.Tensor.col_indices](https://pytorch.org/docs/stable/generated/torch.Tensor.col_indices.html) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.conj.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.conj.md deleted file mode 100644 index d65a19fb1db..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.conj.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.conj - -### [torch.Tensor.conj](https://pytorch.org/docs/stable/generated/torch.Tensor.conj.html?highlight=conj#torch.Tensor.conj) - -```python -torch.Tensor.conj() -``` - -### [paddle.Tensor.conj](paddlepaddle.org.cn/documentation/docs/zh/api/paddle/Tensor_cn.html#conj-name-none) - -```python -paddle.Tensor.conj(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.conj_physical.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.conj_physical.md index cdb7ccea165..f8e0ae30618 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.conj_physical.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.conj_physical.md @@ -1,4 +1,4 @@ -## [无参数]torch.Tensor.conj_physical +## [仅 API 调用方式不一致]torch.Tensor.conj_physical ### [torch.Tensor.conj_physical](https://pytorch.org/docs/stable/generated/torch.Tensor.conj_physical.html#torch.Tensor.conj_physical) ```python diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.cos.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.cos.md deleted file mode 100644 index 7fa2ad9d0e7..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.cos.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.cos - -### [torch.Tensor.cos](https://pytorch.org/docs/stable/generated/torch.Tensor.cos.html?highlight=cos#torch.Tensor.cos) - -```python -torch.Tensor.cos() -``` - -### [paddle.Tensor.cos](paddlepaddle.org.cn/documentation/docs/zh/api/paddle/Tensor_cn.html#cos-name-none) - -```python -paddle.Tensor.cos(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.cos_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.cos_.md deleted file mode 100644 index de11597e90f..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.cos_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.cos_ - -### [torch.Tensor.cos_](https://pytorch.org/docs/stable/generated/torch.Tensor.cos_.html) - -```python -torch.Tensor.cos_() -``` - -### [paddle.Tensor.cos_]() - -```python -paddle.Tensor.cos_() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.cosh.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.cosh.md deleted file mode 100644 index ba796782f6f..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.cosh.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.cosh - -### [torch.Tensor.cosh](https://pytorch.org/docs/stable/generated/torch.Tensor.cosh.html?highlight=cosh#torch.Tensor.cosh) - -```python -torch.Tensor.cosh() -``` - -### [paddle.Tensor.cosh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#cosh-name-none) - -```python -paddle.Tensor.cosh(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.cosh_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.cosh_.md deleted file mode 100644 index 379f2cd21de..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.cosh_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.cosh_ - -### [torch.Tensor.cosh_](https://pytorch.org/docs/stable/generated/torch.Tensor.cosh_.html) - -```python -torch.Tensor.cosh_() -``` - -### [paddle.Tensor.cosh_]() - -```python -paddle.Tensor.cosh_() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.crow_indices.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.crow_indices.md index 83f29326b54..062224183a7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.crow_indices.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.crow_indices.md @@ -1,4 +1,4 @@ -## [ 无参数 ] torch.Tensor.crow_indices +## [仅 API 调用方式不一致] torch.Tensor.crow_indices ### [torch.Tensor.crow_indices](https://pytorch.org/docs/stable/generated/torch.Tensor.crow_indices.html) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.cumprod.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.cumprod.md deleted file mode 100644 index 099c3c8b559..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.cumprod.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ 参数完全一致 ]torch.Tensor.cumprod - -### [torch.Tensor.cumprod](https://pytorch.org/docs/stable/generated/torch.Tensor.cumprod.html?highlight=cumprod#torch.Tensor.cumprod) - -```python -torch.Tensor.cumprod(dim, dtype=None) -``` - -### [paddle.Tensor.cumprod](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/cumprod_cn.html#cumprod) - -```python -paddle.Tensor.cumprod(dim=None, dtype=None, name=None) -``` - -两者功能一致且参数用法一致, 具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -------------------------------------------------------------------------------------------------------------------- | -| dim | dim | 指明需要累乘的维度。 | -| dtype | dtype | 返回张量所需的数据类型。dtype 如果指定,则在执行操作之前将输入张量转换为指定的 dtype,这对于防止数据类型溢出很有用。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.cumprod_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.cumprod_.md deleted file mode 100644 index 59a6d5a500e..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.cumprod_.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ 参数完全一致 ]torch.Tensor.cumprod_ - -### [torch.Tensor.cumprod_](https://pytorch.org/docs/stable/generated/torch.Tensor.cumprod_.html) - -```python -torch.Tensor.cumprod_(dim, *, dtype=None) -``` - -### [paddle.Tensor.cumprod_]() - -```python -paddle.Tensor.cumprod_(dim=None, dtype=None) -``` - -两者功能一致且参数用法一致, 具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -------------------------------------------------------------------------------------------------------------------- | -| dim | dim | 指明需要累乘的维度。 | -| dtype | dtype | 返回张量所需的数据类型。dtype 如果指定,则在执行操作之前将输入张量转换为指定的 dtype,这对于防止数据类型溢出很有用。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.data.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.data.md deleted file mode 100644 index e3ff3be0ffa..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.data.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.data - -### [torch.Tensor.data](https://pytorch.org/docs/stable/tensors.html#torch-tensor) - -```python -torch.Tensor.data -``` - -### [paddle.Tensor.data](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#data) - -```python -paddle.Tensor.data -``` - -两者功能基本一致,有细微差异:torch 返回 Tensor 的 requres_grad 属性始终为 False,而 paddle 返回的 Tensor 的 stop_gradient 属性与之前一致。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.data_ptr.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.data_ptr.md deleted file mode 100644 index 41909acfb0f..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.data_ptr.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.data_ptr - -### [torch.Tensor.data_ptr](https://pytorch.org/docs/stable/generated/torch.Tensor.data_ptr.html) - -```python -torch.Tensor.data_ptr() -``` - -### [paddle.Tensor.data_ptr](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html) - -```python -paddle.Tensor.data_ptr() -``` - -两者功能一致。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.deg2rad.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.deg2rad.md deleted file mode 100644 index 9eeb45e7625..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.deg2rad.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.deg2rad - -### [torch.Tensor.deg2rad](https://pytorch.org/docs/stable/generated/torch.Tensor.deg2rad.html?highlight=deg2rad#torch.Tensor.deg2rad) - -```python -torch.Tensor.deg2rad() -``` - -### [paddle.Tensor.deg2rad](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#deg2rad-x-name-none) - -```python -paddle.Tensor.deg2rad(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.dense_dim.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.dense_dim.md deleted file mode 100644 index d7553a92039..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.dense_dim.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.dense_dim - -### [torch.Tensor.dense_dim](https://pytorch.org/docs/stable/generated/torch.Tensor.dense_dim.html#torch.Tensor.dense_dim) - -```python -torch.Tensor.dense_dim() -``` - -### [paddle.Tensor.dense_dim](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html) - -```python -paddle.Tensor.dense_dim() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.det.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.det.md index ce148d5c6b2..1f3a00ae21e 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.det.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.det.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torch.Tensor.det +## [仅 API 调用方式不一致]torch.Tensor.det ### [torch.Tensor.det](https://pytorch.org/docs/stable/generated/torch.Tensor.det.html?highlight=det#torch.Tensor.det) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.detach.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.detach.md deleted file mode 100644 index ed4eb65bd99..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.detach.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.detach - -### [torch.Tensor.detach](https://pytorch.org/docs/stable/generated/torch.Tensor.detach.html?highlight=detach#torch.Tensor.detach) - -```python -torch.Tensor.detach() -``` - -### [paddle.Tensor.detach](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#detach) - -```python -paddle.Tensor.detach() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.detach_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.detach_.md deleted file mode 100644 index b617fd4b4fb..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.detach_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.detach_ - -### [torch.Tensor.detach_](https://pytorch.org/docs/stable/generated/torch.Tensor.detach_.html) - -```python -torch.Tensor.detach_() -``` - -### [paddle.Tensor.detach_]() - -```python -paddle.Tensor.detach_() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.device.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.device.md index 9871c685288..95bc6cff169 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.device.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.device.md @@ -1,4 +1,4 @@ -## [ 无参数 ] torch.Tensor.device +## [仅 API 调用方式不一致] torch.Tensor.device ### [torch.Tensor.device](https://pytorch.org/docs/stable/generated/torch.Tensor.device.html) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.diag_embed.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.diag_embed.md deleted file mode 100644 index 7c40903ce44..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.diag_embed.md +++ /dev/null @@ -1,23 +0,0 @@ -## [ 参数完全一致 ]torch.Tensor.diag_embed - -### [torch.Tensor.diag\_embed](https://pytorch.org/docs/stable/generated/torch.Tensor.diag_embed.html) - -```python -torch.Tensor.diag_embed(offset=0, dim1=-2, dim2=-1) -``` - -### [paddle.Tensor.diag\_embed]() - -```python -paddle.Tensor.diag_embed(offset=0, dim1=-2, dim2=-1, name=None) -``` - -功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -- | -| offset | offset | 从指定的二维平面中获取对角线的位置。 | -| dim1 | dim1 | 填充对角线的二维平面的第一维。 | -| dim2 | dim2 | 填充对角线的二维平面的第二维。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.diagflat.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.diagflat.md deleted file mode 100644 index 0ccfed7b68f..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.diagflat.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 参数完全一致 ]torch.Tensor.diagflat - -### [torch.Tensor.diagflat](https://pytorch.org/docs/stable/generated/torch.Tensor.diagflat.html?highlight=diagflat#torch.Tensor.diagflat) - -```python -torch.Tensor.diagflat(offset=0) -``` - -### [paddle.Tensor.diagflat]() - -```python -paddle.Tensor.diagflat(offset=0, name=None) -``` - -两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ------------------------------------------------------------------ | -| offset | offset | 对角线偏移量。正值表示上对角线,0 表示主对角线,负值表示下对角线。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.digamma.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.digamma.md deleted file mode 100644 index d513320178a..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.digamma.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.digamma - -### [torch.Tensor.digamma](https://pytorch.org/docs/stable/generated/torch.Tensor.digamma.html?highlight=digamma#torch.Tensor.digamma) - -```python -torch.Tensor.digamma() -``` - -### [paddle.Tensor.digamma](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#digamma-name-none) - -```python -paddle.Tensor.digamma(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.digamma_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.digamma_.md deleted file mode 100644 index 1083b86f574..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.digamma_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.digamma_ - -### [torch.Tensor.digamma_](https://pytorch.org/docs/stable/generated/torch.Tensor.digamma_.html) - -```python -torch.Tensor.digamma_() -``` - -### [paddle.Tensor.digamma_]() - -```python -paddle.Tensor.digamma_() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.dim.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.dim.md deleted file mode 100644 index 6a6be99f557..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.dim.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.dim - -### [torch.Tensor.dim](https://pytorch.org/docs/stable/generated/torch.Tensor.dim.html?highlight=dim#torch.Tensor.dim) - -```python -torch.Tensor.dim() -``` - -### [paddle.Tensor.dim](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#dim) - -```python -paddle.Tensor.dim() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.element_size.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.element_size.md deleted file mode 100644 index aecc7d2e0da..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.element_size.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.element_size - -### [torch.Tensor.element_size](https://pytorch.org/docs/stable/generated/torch.Tensor.element_size.html?highlight=element_size#torch.Tensor.element_size) - -```python -torch.Tensor.element_size() -``` - -### [paddle.Tensor.element_size](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#element-size) - -```python -paddle.Tensor.element_size() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.erf.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.erf.md deleted file mode 100644 index 8ba9293846b..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.erf.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.erf - -### [torch.Tensor.erf](https://pytorch.org/docs/stable/generated/torch.Tensor.erf.html?highlight=erf#torch.Tensor.erf) - -```python -torch.Tensor.erf() -``` - -### [paddle.Tensor.erf](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#erf-name-none) - -```python -paddle.Tensor.erf(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.erf_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.erf_.md index de29125dcf8..0c04d3bad78 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.erf_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.erf_.md @@ -1,4 +1,4 @@ -## [ 无参数 ] torch.Tensor.erf_ +## [仅 API 调用方式不一致] torch.Tensor.erf_ ### [torch.Tensor.erf_](https://pytorch.org/docs/stable/generated/torch.Tensor.erf_.html) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.erfinv.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.erfinv.md deleted file mode 100644 index 69e0709bbe3..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.erfinv.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.erfinv - -### [torch.Tensor.erfinv](https://pytorch.org/docs/stable/generated/torch.Tensor.erfinv.html?highlight=erfinv#torch.Tensor.erfinv) - -```python -torch.Tensor.erfinv() -``` - -### [paddle.Tensor.erfinv](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#erfinv-x-name-none) - -```python -paddle.Tensor.erfinv(name=None) -``` - -两者功能一致. diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.erfinv_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.erfinv_.md deleted file mode 100644 index d74fb066f95..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.erfinv_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.erfinv\_ - -### [torch.Tensor.erfinv\_](https://pytorch.org/docs/stable/generated/torch.Tensor.erfinv_.html?highlight=erfinv_#torch.Tensor.erfinv_) - -```python -torch.Tensor.erfinv_() -``` - -### [paddle.Tensor.erfinv\_]() - -```python -paddle.Tensor.erfinv_() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.exp.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.exp.md deleted file mode 100644 index f467acc6c86..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.exp.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.exp - -### [torch.Tensor.exp](https://pytorch.org/docs/stable/generated/torch.Tensor.exp.html?highlight=exp#torch.Tensor.exp) - -```python -torch.Tensor.exp() -``` - -### [paddle.Tensor.exp](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#exp-name-none) - -```python -paddle.Tensor.exp(name=None) -``` - -两者功能一致。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.exp_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.exp_.md deleted file mode 100644 index ead52ba998b..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.exp_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.exp\_ - -### [torch.Tensor.exp\_](https://pytorch.org/docs/stable/generated/torch.Tensor.exp_.html?highlight=exp_#torch.Tensor.exp_) - -```python -torch.Tensor.exp_() -``` - -### [paddle.Tensor.exp\_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#id7) - -```python -paddle.Tensor.exp_(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.expm1.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.expm1.md deleted file mode 100644 index 23366f17fa7..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.expm1.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.expm1 - -### [torch.Tensor.expm1](https://pytorch.org/docs/stable/generated/torch.Tensor.expm1.html#torch.Tensor.expm1) - -```python -torch.Tensor.expm1() -``` - -### [paddle.Tensor.expm1]() - -```python -paddle.Tensor.expm1(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.expm1_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.expm1_.md index 616322be50e..7db4ea74328 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.expm1_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.expm1_.md @@ -1,4 +1,4 @@ -## [ 无参数 ] torch.Tensor.expm1_ +## [仅 API 调用方式不一致] torch.Tensor.expm1_ ### [torch.Tensor.expm1_](https://pytorch.org/docs/stable/generated/torch.Tensor.expm1_.html) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.fill_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.fill_.md deleted file mode 100644 index 6cad52624cc..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.fill_.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 参数完全一致 ]torch.Tensor.fill\_ - -### [torch.Tensor.fill\_](https://pytorch.org/docs/stable/generated/torch.Tensor.fill_.html?highlight=fill_#torch.Tensor.fill_) - -```python -torch.Tensor.fill_(value) -``` - -### [paddle.Tensor.fill\_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#fill-x-value-name-none) - -```python -paddle.Tensor.fill_(value, name=None) -``` - -两者功能一致且参数用法一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ----------------------------------- | -| value | value | 输入 value 值修改原始 Tensor 元素。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.fix.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.fix.md index 033c587481a..12d2d8c61e3 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.fix.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.fix.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torch.Tensor.fix +## [仅 API 调用方式不一致]torch.Tensor.fix ### [torch.Tensor.fix](https://pytorch.org/docs/stable/generated/torch.Tensor.fix.html?highlight=fix#torch.Tensor.fix) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.fix_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.fix_.md index 7ff2c4fff9a..caadc40fab9 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.fix_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.fix_.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torch.Tensor.fix_ +## [仅 API 调用方式不一致]torch.Tensor.fix_ ### [torch.Tensor.fix_](https://pytorch.org/docs/stable/generated/torch.Tensor.fix_.html) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.floor.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.floor.md deleted file mode 100644 index 7a21c5a6cd6..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.floor.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.floor - -### [torch.Tensor.floor](https://pytorch.org/docs/stable/generated/torch.Tensor.floor.html?highlight=floor#torch.Tensor.floor) - -```python -torch.Tensor.floor() -``` - -### [paddle.Tensor.floor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/floor_cn.html#floor) - -```python -paddle.Tensor.floor(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.floor_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.floor_.md deleted file mode 100644 index aaf8f0d32d7..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.floor_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.floor\_ - -### [torch.Tensor.floor\_](https://pytorch.org/docs/stable/generated/torch.Tensor.floor_.html?highlight=floor_#torch.Tensor.floor_) - -```python -torch.Tensor.floor_() -``` - -### [paddle.Tensor.floor\_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#id10) - -```python -paddle.Tensor.floor_(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.frac.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.frac.md deleted file mode 100644 index 6f06b20a9ad..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.frac.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.frac - -### [torch.Tensor.frac](https://pytorch.org/docs/stable/generated/torch.Tensor.frac.html?highlight=frac#torch.Tensor.frac) - -```python -torch.Tensor.frac() -``` - -### [paddle.Tensor.frac](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#frac-name-none) - -```python -paddle.Tensor.frac(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.frac_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.frac_.md deleted file mode 100644 index 600a8458bfa..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.frac_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.frac_ - -### [torch.Tensor.frac_](https://pytorch.org/docs/stable/generated/torch.Tensor.frac_.html) - -```python -torch.Tensor.frac_() -``` - -### [paddle.Tensor.frac_]() - -```python -paddle.Tensor.frac_() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.frexp.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.frexp.md deleted file mode 100644 index 50b323dffde..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.frexp.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.frexp - -### [torch.Tensor.frexp](https://pytorch.org/docs/stable/generated/torch.Tensor.frexp.html#torch-tensor-frexp) - -```python -torch.Tensor.frexp() -``` - -### [paddle.Tensor.frexp](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#frexp-x) - -```python -paddle.Tensor.frexp() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.get_device.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.get_device.md deleted file mode 100644 index 9c72b9ebaaf..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.get_device.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.get_device - -### [torch.Tensor.get_device](https://pytorch.org/docs/stable/generated/torch.Tensor.get_device.html?highlight=torch+tensor+get_device#torch.Tensor.get_device) - -```python -torch.Tensor.get_device() -``` - -### [paddle.Tensor.place.gpu_device_id]() - -```python -paddle.Tensor.place.gpu_device_id() -``` - -两者功能一致且无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.grad.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.grad.md deleted file mode 100644 index 133e0b3c6ff..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.grad.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.grad - -### [torch.Tensor.grad](https://pytorch.org/docs/stable/generated/torch.Tensor.grad.html) - -```python -torch.Tensor.grad -``` - -### [paddle.Tensor.grad](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#grad) - -```python -paddle.Tensor.grad -``` - -两者功能一致,均无参数,都用来查看一个 Tensor 的梯度。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.i0.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.i0.md deleted file mode 100644 index 0f9b8498da4..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.i0.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.i0 - -### [torch.Tensor.i0](https://pytorch.org/docs/stable/generated/torch.Tensor.i0.html?highlight=i0#torch.Tensor.i0) - -```python -torch.Tensor.i0() -``` - -### [paddle.Tensor.i0](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#i0-x-name-none) - -```python -paddle.Tensor.i0(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.i0_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.i0_.md deleted file mode 100644 index 7168687d454..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.i0_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.i0_ - -### [torch.Tensor.i0_](https://pytorch.org/docs/stable/generated/torch.Tensor.i0_.html) - -```python -torch.Tensor.i0_() -``` - -### [paddle.Tensor.i0_]() - -```python -paddle.Tensor.i0_() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.imag.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.imag.md index abf201782f3..6868e966768 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.imag.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.imag.md @@ -1,4 +1,4 @@ -## [ 无参数 ] torch.Tensor.imag +## [仅 API 调用方式不一致] torch.Tensor.imag ### [torch.Tensor.imag](https://pytorch.org/docs/stable/generated/torch.Tensor.imag.html) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.indices.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.indices.md deleted file mode 100644 index c7ae898022f..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.indices.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.indices - -### [torch.Tensor.indices](https://pytorch.org/docs/stable/generated/torch.Tensor.indices.html#torch.Tensor.indices) - -```python -torch.Tensor.indices() -``` - -### [paddle.Tensor.indices](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sparse/Overview_cn.html) - -```python -paddle.Tensor.indices() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.inverse.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.inverse.md deleted file mode 100644 index 95d6a0a6b49..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.inverse.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.inverse - -### [torch.Tensor.inverse](https://pytorch.org/docs/stable/generated/torch.Tensor.inverse.html) - -```python -torch.Tensor.inverse() -``` - -### [paddle.Tensor.inverse]() - -```python -paddle.Tensor.inverse(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.is_coalesced.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.is_coalesced.md deleted file mode 100644 index 48323da5863..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.is_coalesced.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.is_coalesced - -### [torch.Tensor.is_coalesced](https://pytorch.org/docs/stable/generated/torch.Tensor.is_coalesced.html#torch-tensor-is-coalesced) - -```python -torch.Tensor.is_coalesced() -``` - -### [paddle.Tensor.is_coalesced](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#is-coalesced) - -```python -paddle.Tensor.is_coalesced() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.is_complex.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.is_complex.md deleted file mode 100644 index a33ea65cf5d..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.is_complex.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.is_complex - -### [torch.Tensor.is\_complex](https://pytorch.org/docs/stable/generated/torch.Tensor.is_complex.html) - -```python -torch.Tensor.is_complex() -``` - -### [paddle.Tensor.is\_complex](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#is-complex) - -```python -paddle.Tensor.is_complex() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.is_floating_point.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.is_floating_point.md deleted file mode 100644 index 20a76f76370..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.is_floating_point.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.is_floating_point - -### [torch.Tensor.is\_floating\_point](https://pytorch.org/docs/stable/generated/torch.Tensor.is_floating_point.html) - -```python -torch.Tensor.is_floating_point() -``` - -### [paddle.Tensor.is\_floating\_point](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#is-floating-point-x) - -```python -paddle.Tensor.is_floating_point() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.is_inference.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.is_inference.md index 8c623fcb0c8..e88a1f93b72 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.is_inference.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.is_inference.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torch.Tensor.is_inference +## [仅 API 调用方式不一致]torch.Tensor.is_inference ### [torch.Tensor.is_inference](https://pytorch.org/docs/stable/generated/torch.Tensor.is_inference.html) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.is_sparse.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.is_sparse.md index 1393779c8ea..0c8d94f5080 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.is_sparse.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.is_sparse.md @@ -1,4 +1,4 @@ -## [ 无参数 ] torch.Tensor.is_sparse +## [仅 API 调用方式不一致] torch.Tensor.is_sparse ### [torch.Tensor.is_sparse](https://pytorch.org/docs/stable/generated/torch.Tensor.is_sparse.html) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.is_sparse_csr.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.is_sparse_csr.md index 5d29dc300a3..ab0d03866f7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.is_sparse_csr.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.is_sparse_csr.md @@ -1,4 +1,4 @@ -## [ 无参数 ] torch.Tensor.is_sparse_csr +## [仅 API 调用方式不一致] torch.Tensor.is_sparse_csr ### [torch.Tensor.is_sparse_csr](https://pytorch.org/docs/stable/generated/torch.Tensor.is_sparse_csr.html) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.isfinite.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.isfinite.md deleted file mode 100644 index 1d07175ed18..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.isfinite.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.isfinite - -### [torch.Tensor.isfinite](https://pytorch.org/docs/stable/generated/torch.Tensor.isfinite.html) - -```python -torch.Tensor.isfinite() -``` - -### [paddle.Tensor.isfinite](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#isfinite-name-none) - -```python -paddle.Tensor.isfinite(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.isinf.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.isinf.md deleted file mode 100644 index c5967c7331b..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.isinf.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.isinf - -### [torch.Tensor.isinf](https://pytorch.org/docs/stable/generated/torch.Tensor.isinf.html) - -```python -torch.Tensor.isinf() -``` - -### [paddle.Tensor.isinf](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#isinf-name-none) - -```python -paddle.Tensor.isinf(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.isnan.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.isnan.md deleted file mode 100644 index ff1d617b4ea..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.isnan.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.isnan - -### [torch.Tensor.isnan](https://pytorch.org/docs/stable/generated/torch.Tensor.isnan.html) - -```python -torch.Tensor.isnan() -``` - -### [paddle.Tensor.isnan](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#isnan-name-none) - -```python -paddle.Tensor.isnan(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.isneginf.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.isneginf.md deleted file mode 100644 index 0f3efe8bd0e..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.isneginf.md +++ /dev/null @@ -1,15 +0,0 @@ -## [无参数]torch.Tensor.isneginf - -### [torch.Tensor.isneginf ](https://pytorch.org/docs/stable/generated/torch.Tensor.isneginf.html#torch.Tensor.isneginf) - -```python -torch.Tensor.isneginf() -``` - -### [paddle.Tensor.isneginf](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#isneginf-name-none) - -```python -paddle.Tensor.isneginf(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.isposinf.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.isposinf.md deleted file mode 100644 index 793396aa479..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.isposinf.md +++ /dev/null @@ -1,15 +0,0 @@ -## [无参数]torch.Tensor.isposinf - -### [torch.Tensor.isposinf](https://pytorch.org/docs/stable/generated/torch.Tensor.isposinf.html#torch.Tensor.isposinf) - -```python -torch.Tensor.isposinf() -``` - -### [paddle.Tensor.isposinf](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#isposinf-name-none) - -```python -paddle.Tensor.isposinf(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.isreal.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.isreal.md deleted file mode 100644 index 56acab5626e..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.isreal.md +++ /dev/null @@ -1,15 +0,0 @@ -## [无参数]torch.Tensor.isreal - -### [torch.Tensor.isreal](https://pytorch.org/docs/stable/generated/torch.Tensor.isreal.html#torch.Tensor.isreal) - -```python -torch.Tensor.isreal() -``` - -### [paddle.Tensor.isreal](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#isreal-name-none) - -```python -paddle.Tensor.isreal(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.istft.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.istft.md deleted file mode 100644 index 4d74910babb..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.istft.md +++ /dev/null @@ -1,37 +0,0 @@ -## [ 参数完全一致 ]torch.Tensor.istft -### [torch.Tensor.istft](https://pytorch.org/docs/stable/generated/torch.Tensor.istft.html#torch.Tensor.istft) - -```python -torch.Tensor.istft(n_fft, hop_length=None, win_length=None, window=None, center=True, normalized=False, onesided=None, length=None, return_complex=False) -``` - -### [paddle.Tensor.istft]() - -```python -paddle.Tensor.istft(n_fft, - hop_length=None, - win_length=None, - window=None, - center=True, - normalized=False, - onesided=True, - length=None, - return_complex=False, - name=None) -``` - -两者功能一致且参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| n_fft | n_fft | 表示离散傅里叶变换的样本点个数。 | -| hop_length | hop_length | 表示相邻两帧偏移的样本点个数。 | -| win_length | win_length | 表示信号窗的长度。 | -| window | window | 表示长度为 win_length 的 Tensor 。 | -| center | center | 表示是否将输入信号进行补长。 | -| normalized | normalized | 表示是否将傅里叶变换的结果乘以值为 1/sqrt(n) 的缩放系数。 | -| onesided | onesided | 表示是否返回一个实信号。 | -| length | length | 表示输出信号的长度。 | -| return_complex | return_complex | 表示输出的重构信号是否为复信号。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.itemsize.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.itemsize.md deleted file mode 100644 index 933f6c6ff9f..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.itemsize.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.itemsize - -### [torch.Tensor.itemsize](https://pytorch.org/docs/stable/generated/torch.Tensor.itemsize.html) - -```python -torch.Tensor.itemsize -``` - -### [paddle.Tensor.element_size](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#element-size) - -```python -paddle.Tensor.element_size() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.lgamma.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.lgamma.md deleted file mode 100644 index b0ab4a59a93..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.lgamma.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.lgamma - -### [torch.Tensor.lgamma](https://pytorch.org/docs/stable/generated/torch.lgamma.html#torch.lgamma) - -```python -torch.Tensor.lgamma() -``` - -### [paddle.Tensor.lgamma](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/lgamma_cn.html) - -```python -paddle.Tensor.lgamma() -``` - -两者功能一致,均无参数,用于计算张量中每个元素的自然对数伽马函数值的函数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.lgamma_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.lgamma_.md deleted file mode 100644 index b546b373d33..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.lgamma_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.lgamma_ - -### [torch.Tensor.lgamma_](https://pytorch.org/docs/stable/generated/torch.Tensor.lgamma_.html) - -```python -torch.Tensor.lgamma_() -``` - -### [paddle.Tensor.lgamma_]() - -```python -paddle.Tensor.lgamma_() -``` - -两者功能一致,均无参数,用于计算张量中每个元素的自然对数伽马函数值的函数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.log.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.log.md deleted file mode 100644 index 4445d10ab81..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.log.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.log - -### [torch.Tensor.log](https://pytorch.org/docs/stable/generated/torch.Tensor.log.html) - -```python -torch.Tensor.log() -``` - -### [paddle.Tensor.log](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#log-name-none) - -```python -paddle.Tensor.log() -``` - -两者功能一致,均无参数,用于计算张量中每个元素的自然对数的函数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.log10.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.log10.md deleted file mode 100644 index 28b36ddaef4..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.log10.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.log10 - -### [torch.Tensor.log10](https://pytorch.org/docs/stable/generated/torch.Tensor.log10.html#torch.Tensor.log10) - -```python -torch.Tensor.log10() -``` - -### [paddle.Tensor.log10](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#log10-name-none) - -```python -paddle.Tensor.log10() -``` - -两者功能一致,均无参数,用于计算张量中每个元素的以 10 为底的对数的函数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.log10_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.log10_.md deleted file mode 100644 index 27408a12af6..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.log10_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.log10_ - -### [torch.Tensor.log10_](https://pytorch.org/docs/stable/generated/torch.Tensor.log10_.html) - -```python -torch.Tensor.log10_() -``` - -### [paddle.Tensor.log10_](e) - -```python -paddle.Tensor.log10_() -``` - -两者功能一致,均无参数,用于计算张量中每个元素的以 10 为底的对数的函数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.log1p.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.log1p.md deleted file mode 100644 index 2100581e224..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.log1p.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.log1p - -### [torch.Tensor.log1p](https://pytorch.org/docs/stable/generated/torch.Tensor.log1p.html#torch.Tensor.log1p) - -```python -torch.Tensor.log1p() -``` - -### [paddle.Tensor.log1p](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#log1p-name-none) - -```python -paddle.Tensor.log1p() -``` - -两者功能一致,均无参数,用于计算张量中每个元素加 1 后的自然对数的函数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.log1p_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.log1p_.md deleted file mode 100644 index 511b4115f53..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.log1p_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.log1p_ - -### [torch.Tensor.log1p_](https://pytorch.org/docs/stable/generated/torch.Tensor.log1p_.html) - -```python -torch.Tensor.log1p_() -``` - -### [paddle.Tensor.log1p_]() - -```python -paddle.Tensor.log1p_() -``` - -两者功能一致,均无参数,用于计算张量中每个元素加 1 后的自然对数的函数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.log2.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.log2.md deleted file mode 100644 index 895b45946a5..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.log2.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.log2 - -### [torch.Tensor.log2](https://pytorch.org/docs/stable/generated/torch.Tensor.log2.html#torch.Tensor.log2) - -```python -torch.Tensor.log2() -``` - -### [paddle.Tensor.log2](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#log2-name-none) - -```python -paddle.Tensor.log2() -``` - -两者功能一致,均无参数,用于计算张量中每个元素的以 2 为底的对数的函数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.log2_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.log2_.md deleted file mode 100644 index 58eca6495e2..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.log2_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.log2_ - -### [torch.Tensor.log2_](https://pytorch.org/docs/stable/generated/torch.Tensor.log2_.html) - -```python -torch.Tensor.log2_() -``` - -### [paddle.Tensor.log2_]() - -```python -paddle.Tensor.log2_() -``` - -两者功能一致,均无参数,用于计算张量中每个元素的以 2 为底的对数的函数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.log_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.log_.md deleted file mode 100644 index 66f7744b2cb..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.log_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.log_ - -### [torch.Tensor.log_](https://pytorch.org/docs/stable/generated/torch.Tensor.log_.html) - -```python -torch.Tensor.log_() -``` - -### [paddle.Tensor.log_]() - -```python -paddle.Tensor.log_() -``` - -两者功能一致,均无参数,用于计算张量中每个元素的自然对数的函数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.logical_not_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.logical_not_.md deleted file mode 100644 index bdf2ac22042..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.logical_not_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.logical_not_ - -### [torch.Tensor.logical_not_](https://pytorch.org/docs/stable/generated/torch.Tensor.logical_not_.html) - -```python -torch.Tensor.logical_not_() -``` - -### [paddle.Tensor.logical_not_]() - -```python -paddle.Tensor.logical_not_() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.logit.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.logit.md deleted file mode 100644 index e4c93d48301..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.logit.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 参数完全一致 ]torch.Tensor.logit - -### [torch.Tensor.logit](https://pytorch.org/docs/stable/generated/torch.Tensor.logit.html) - -```python -torch.Tensor.logit(eps=None) -``` - -### [paddle.Tensor.logit](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#logit-eps-none-name-none) - -```python -paddle.Tensor.logit(eps=None, name=None) -``` - -功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -- | -| eps | eps | 传入该参数后可将 x 的范围控制在 [eps,1−eps],默认值为 None。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.logit_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.logit_.md deleted file mode 100644 index b1041d22a36..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.logit_.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 参数完全一致 ]torch.Tensor.logit_ - -### [torch.Tensor.logit_](https://pytorch.org/docs/stable/generated/torch.Tensor.logit_.html) - -```python -torch.Tensor.logit_(eps=None) -``` - -### [paddle.Tensor.logit_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/logit_cn.html) - -```python -paddle.Tensor.logit_(eps=None) -``` - -两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ----------------------------------- | ------------ | ----------------------------------------------------------------------- | -| eps | eps | 将输入向量的范围控制在 [eps,1−eps] | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.lu.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.lu.md deleted file mode 100644 index be2805a77cc..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.lu.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ 参数完全一致 ]torch.Tensor.lu - -### [torch.Tensor.lu](https://pytorch.org/docs/stable/generated/torch.Tensor.lu.html) - -```python -torch.Tensor.lu(pivot=True, get_infos=False) -``` - -### [paddle.Tensor.lu]() - -```python -paddle.Tensor.lu(pivot=True, get_infos=False, name=None) -``` - -功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| --------- | ------------ | -- | -| pivot | pivot | LU 分解时是否进行旋转。 | -| get_infos | get_infos | 是否返回分解状态信息,若为 True,则返回分解状态 Tensor,否则不返回。默认 False。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.mT.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.mT.md deleted file mode 100644 index a508c3d95c4..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.mT.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.mT - -### [torch.Tensor.mT](https://pytorch.org/docs/stable/tensors.html?#torch.Tensor.mT) - -```python -torch.Tensor.mT -``` - -### [paddle.Tensor.mT](https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/base/dygraph/math_op_patch.py#L208) - -```python -paddle.Tensor.mT -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.masked_fill.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.masked_fill.md deleted file mode 100644 index 76e7d54d4b2..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.masked_fill.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ 参数完全一致 ] torch.Tensor.masked_fill - -### [torch.Tensor.masked_fill](https://pytorch.org/docs/stable/generated/torch.Tensor.masked_fill.html?highlight=masked_fill#torch.Tensor.masked_fill) - -```python -torch.Tensor.masked_fill(mask, value) -``` - -### [paddle.Tensor.masked_fill](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/Tensor_cn.html#masked-fill-mask-value-name-non) - -```python -paddle.Tensor.masked_fill(mask, value, name=None) -``` - -两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -|---------|--------------| -------------------------------------------------- | -| mask | mask | 布尔张量,表示要填充的位置 | -| value | value | 用于填充目标张量的值 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.masked_fill_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.masked_fill_.md deleted file mode 100644 index 89b460a725f..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.masked_fill_.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ 参数完全一致 ] torch.Tensor.masked_fill_ - -### [torch.Tensor.masked_fill_](https://pytorch.org/docs/stable/generated/torch.Tensor.masked_fill_.html?highlight=masked_fill_#torch.Tensor.masked_fill_) - -```python -torch.Tensor.masked_fill_(mask, value) -``` - -### [paddle.Tensor.masked_fill_]() - -```python -paddle.Tensor.masked_fill_(mask, value, name=None) -``` - -两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -|---------|--------------| -------------------------------------------------- | -| mask | mask | 布尔张量,表示要填充的位置 | -| value | value | 用于填充目标张量的值 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.masked_scatter.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.masked_scatter.md deleted file mode 100644 index f7b796a9aaf..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.masked_scatter.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ 参数完全一致 ] torch.Tensor.masked_scatter - -### [torch.Tensor.masked_scatter](https://pytorch.org/docs/stable/generated/torch.Tensor.masked_scatter.html?highlight=masked_scatter#torch.Tensor.masked_scatter) - -```python -torch.Tensor.masked_scatter(mask, value) -``` - -### [paddle.Tensor.masked_scatter](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/Tensor_cn.html#masked-scatter-mask-value-name-non) - -```python -paddle.Tensor.masked_scatter(mask, value, name=None) -``` - -两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -|---------|--------------| -------------------------------------------------- | -| mask | mask | 布尔张量,表示要填充的位置 | -| value | value | 用于填充目标张量的值 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.masked_scatter_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.masked_scatter_.md deleted file mode 100644 index a4d97f82810..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.masked_scatter_.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ 参数完全一致 ] torch.Tensor.masked_scatter_ - -### [torch.Tensor.masked_scatter_](https://pytorch.org/docs/stable/generated/torch.Tensor.masked_scatter_.html?highlight=masked_scatter#torch.Tensor.masked_scatter_) - -```python -torch.Tensor.masked_scatter_(mask, value) -``` - -### [paddle.Tensor.masked_scatter_]() - -```python -paddle.Tensor.masked_scatter_(mask, value, name=None) -``` - -两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -|---------|--------------| -------------------------------------------------- | -| mask | mask | 布尔张量,表示要填充的位置 | -| value | value | 用于填充目标张量的值 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.masked_select.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.masked_select.md deleted file mode 100644 index 98818c61a4a..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.masked_select.md +++ /dev/null @@ -1,21 +0,0 @@ -## [参数完全一致 ]torch.Tensor.masked_select - -### [torch.Tensor.masked_select](https://pytorch.org/docs/stable/generated/torch.Tensor.masked_select.html?highlight=masked_select#torch.Tensor.masked_select) - -```python -torch.Tensor.masked_select(mask) -``` - -### [paddle.Tensor.masked_select](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#masked-select-mask-name-none) - -```python -paddle.Tensor.masked_select(mask, name=None) -``` - -两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ------------------------------------ | -| mask | mask | 表示用于索引的二进制掩码的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.matrix_exp.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.matrix_exp.md index adee6380b07..ad3df9bda28 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.matrix_exp.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.matrix_exp.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torch.Tensor.matrix_exp +## [仅 API 调用方式不一致]torch.Tensor.matrix_exp ### [torch.Tensor.matrix_exp](https://pytorch.org/docs/stable/generated/torch.Tensor.matrix_exp.html#torch-tensor-matrix-exp) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.matrix_power.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.matrix_power.md deleted file mode 100644 index ee35f60752a..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.matrix_power.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 参数完全一致 ]torch.Tensor.matrix_power - -### [torch.Tensor.matrix\_power](https://pytorch.org/docs/stable/generated/torch.Tensor.matrix_power.html) - -```python -torch.Tensor.matrix_power(n) -``` - -### [paddle.Tensor.matrix\_power](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#matrix-power-x-n-name-none) - -```python -paddle.Tensor.matrix_power(n, name=None) -``` - -功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -- | -| n | n | 输入的幂次,类型为 int。它可以是任意整数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.mm.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.mm.md deleted file mode 100644 index 9fdda57cef7..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.mm.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 参数完全一致 ]torch.Tensor.mm - -### [torch.Tensor.mm](https://pytorch.org/docs/stable/generated/torch.Tensor.mm.html) - -```python -torch.Tensor.mm(mat2) -``` - -### [paddle.Tensor.mm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#mm-mat2-name-none) - -```python -paddle.Tensor.mm(mat2, name=None) -``` - -两者功能一致且参数用法一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -|---------------------------------|---------------------------------| ----------------------------------------- | -| mat2 | mat2 | 输⼊ Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.moveaxis.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.moveaxis.md deleted file mode 100644 index daf6f545212..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.moveaxis.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ 参数完全一致 ]torch.Tensor.moveaxis - -### [torch.Tensor.moveaxis](https://pytorch.org/docs/stable/generated/torch.Tensor.moveaxis.html) - -```python -torch.Tensor.moveaxis(source, destination) -``` - -### [paddle.Tensor.moveaxis](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/moveaxis_cn.html) - -```python -paddle.Tensor.moveaxis(source, destination,name = None) -``` - -两者功能一致且参数用法一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -|------------------------------------|------------------------------------|----------------------------------| -| source | source | 将被移动的轴的位置。 | -| destination | destination | 轴被移动后的目标位置。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.movedim.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.movedim.md index 62e6655c1fb..f20ec3ca767 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.movedim.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.movedim.md @@ -1,4 +1,4 @@ -## [ 参数完全一致 ]torch.Tensor.movedim +## [仅 API 调用方式不一致]torch.Tensor.movedim ### [torch.Tensor.movedim](https://pytorch.org/docs/stable/generated/torch.Tensor.movedim.html) @@ -13,10 +13,3 @@ paddle.Tensor.moveaxis(source, destination, name = None) ``` 两者功能一致且参数用法一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -|------------------------------------|------------------------------------|----------------------------------| -| source | source | 将被移动的轴的位置。 | -| destination | destination | 轴被移动后的目标位置。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.mv.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.mv.md deleted file mode 100644 index b226ebeb0f3..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.mv.md +++ /dev/null @@ -1,20 +0,0 @@ -## [ 参数完全一致 ] torch.Tensor.mv -### [torch.Tensor.mv](https://pytorch.org/docs/stable/generated/torch.Tensor.mv.html) - -```python -torch.Tensor.mv(vec) -``` - -### [paddle.Tensor.mv](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#mv-vec-name-none) - -```python -paddle.Tensor.mv(vec) -``` - -两者功能一致,且参数一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| vec | vec | 相乘的向量。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.mvlgamma.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.mvlgamma.md index ca8e04c3ba3..d8b0ea8f735 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.mvlgamma.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.mvlgamma.md @@ -1,4 +1,4 @@ -## [ 参数完全一致 ]torch.Tensor.mvlgamma +## [仅 API 调用方式不一致]torch.Tensor.mvlgamma ### [torch.Tensor.mvlgamma](https://pytorch.org/docs/stable/generated/torch.Tensor.mvlgamma.html#torch-tensor-mvlgamma) @@ -13,19 +13,3 @@ paddle.Tensor.multigammaln(p, name=None) ``` 两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ---------------------------------------------------- | -| p | p | 多元伽马函数积分空间的维度。 | - -### 转写示例 - -```python -# PyTorch 写法 -y = x.mvlgamma(p) - -# Paddle 写法 -y = x.multigammaln(p) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.mvlgamma_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.mvlgamma_.md index 0ed079a8919..c800984840d 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.mvlgamma_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.mvlgamma_.md @@ -1,4 +1,4 @@ -## [ 参数完全一致 ]torch.Tensor.mvlgamma_ +## [仅 API 调用方式不一致]torch.Tensor.mvlgamma_ ### [torch.Tensor.mvlgamma_](https://pytorch.org/docs/stable/generated/torch.Tensor.mvlgamma_.html#torch-tensor-mvlgamma) @@ -13,19 +13,3 @@ paddle.Tensor.multigammaln_(p, name=None) ``` 两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ---------------------------------------------------- | -| p | p | 多元伽马函数积分空间的维度。 | - -### 转写示例 - -```python -# PyTorch 写法 -y = x.mvlgamma_(p) - -# Paddle 写法 -y = x.multigammaln_(p) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.nan_to_num.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.nan_to_num.md deleted file mode 100644 index 9fa820ddfc2..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.nan_to_num.md +++ /dev/null @@ -1,23 +0,0 @@ -## [参数完全一致]torch.Tensor.nan_to_num - -### [torch.Tensor.nan_to_num](https://pytorch.org/docs/stable/generated/torch.Tensor.nan_to_num.html#torch.Tensor.nan_to_num) - -```python -torch.Tensor.nan_to_num(nan=0.0, posinf=None, neginf=None) -``` - -### [paddle.Tensor.nan_to_num](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#nan-to-num) - -```python -paddle.Tensor.nan_to_num(nan=0.0, posinf=None, neginf=None) -``` - -两者功能一致,且参数用法一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | --------------- | -| nan | nan | NaN 的替换值。 | -| posinf | posinf | +inf 的替换值。 | -| neginf | neginf | -inf 的替换值。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.nan_to_num_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.nan_to_num_.md deleted file mode 100644 index 719136aa761..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.nan_to_num_.md +++ /dev/null @@ -1,23 +0,0 @@ -## [参数完全一致]torch.Tensor.nan_to_num_ - -### [torch.Tensor.nan_to_num_](https://pytorch.org/docs/stable/generated/torch.Tensor.nan_to_num_.html#torch.Tensor.nan_to_num_) - -```python -torch.Tensor.nan_to_num_(nan=0.0, posinf=None, neginf=None) -``` - -### [paddle.Tensor.nan_to_num_]() - -```python -paddle.Tensor.nan_to_num_(nan=0.0, posinf=None, neginf=None) -``` - -两者功能一致,且参数用法一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | --------------- | -| nan | nan | NaN 的替换值。 | -| posinf | posinf | +inf 的替换值。 | -| neginf | neginf | -inf 的替换值。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.ndim.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.ndim.md deleted file mode 100644 index 945a6e7bb64..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.ndim.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.ndim - -### [torch.Tensor.ndim](https://pytorch.org/docs/stable/generated/torch.Tensor.ndim.html) - -```python -torch.Tensor.ndim -``` - -### [paddle.Tensor.ndim](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#ndim) - -```python -paddle.Tensor.ndim -``` - -两者功能一致,均无参数,查看一个 Tensor 的维度。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.ndimension.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.ndimension.md deleted file mode 100644 index e0c3826b01a..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.ndimension.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.ndimension - -### [torch.Tensor.ndimension](https://pytorch.org/docs/stable/generated/torch.Tensor.ndimension.html?highlight=ndimension#torch.Tensor.ndimension) - -```python -torch.Tensor.ndimension() -``` - -### [paddle.Tensor.ndimension](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#ndimension) - -```python -paddle.Tensor.ndimension() -``` - -两者功能一致,均无参数,查看一个 Tensor 的维度。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.neg.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.neg.md deleted file mode 100644 index f05ad826217..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.neg.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.neg - -### [torch.Tensor.neg](https://pytorch.org/docs/stable/generated/torch.Tensor.neg.html?highlight=neg#torch.Tensor.neg) - -```python -torch.Tensor.neg() -``` - -### [paddle.Tensor.neg](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#neg-name-none) - -```python -paddle.Tensor.neg() -``` - -两者功能一致,均无参数,将 Tensor 上的各个值取相反数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.neg_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.neg_.md deleted file mode 100644 index e1cc849c129..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.neg_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.neg_ - -### [torch.Tensor.neg_](https://pytorch.org/docs/stable/generated/torch.Tensor.neg_.html) - -```python -torch.Tensor.neg_() -``` - -### [paddle.Tensor.neg_]() - -```python -paddle.Tensor.neg_() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.negative.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.negative.md index 5d01bdc0d5c..094405463ed 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.negative.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.negative.md @@ -1,4 +1,4 @@ -## [ 无参数 ] torch.Tensor.negative +## [仅 API 调用方式不一致] torch.Tensor.negative ### [torch.Tensor.negative](https://pytorch.org/docs/stable/generated/torch.negative.html#torch.negative) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.negative_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.negative_.md index 7b714e047ff..8c88cec189e 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.negative_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.negative_.md @@ -1,4 +1,4 @@ -## [ 无参数 ] torch.Tensor.negative_ +## [仅 API 调用方式不一致] torch.Tensor.negative_ ### [torch.Tensor.negative_](https://pytorch.org/docs/stable/generated/torch.Tensor.negative_.html) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.nelement.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.nelement.md index 0fd21948dd2..4cb2cbd93a4 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.nelement.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.nelement.md @@ -1,4 +1,4 @@ -## [ 无参数 ] torch.Tensor.nelement +## [仅 API 调用方式不一致] torch.Tensor.nelement ### [torch.Tensor.nelement](https://pytorch.org/docs/stable/generated/torch.Tensor.nelement.html?highlight=nelement#torch.Tensor.nelement) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.nonzero.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.nonzero.md deleted file mode 100644 index f76e780e422..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.nonzero.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 参数完全一致 ] torch.Tensor.nonzero - -### [torch.Tensor.nonzero](https://pytorch.org/docs/stable/generated/torch.Tensor.nonzero.html?highlight=nonzero#torch.Tensor.nonzero) - -```python -torch.Tensor.nonzero(*, as_tuple=False) -``` - -### [paddle.Tensor.nonzero](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nonzero_cn.html#cn-api-tensor-search-nonzero) - -```python -paddle.Tensor.nonzero(as_tuple=False) -``` - -功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| as_tuple | as_tuple | bool 类型表示输出数据的格式,默认 False 时,输出一个张量,True 时输出一组一维张量。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.normal_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.normal_.md deleted file mode 100644 index 5149a55efb7..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.normal_.md +++ /dev/null @@ -1,23 +0,0 @@ -## [ 参数完全一致 ]torch.Tensor.normal_ - -### [torch.Tensor.normal_](https://pytorch.org/docs/stable/generated/torch.Tensor.normal_.html#torch-tensor-normal) - -```python -torch.Tensor.normal_(mean=0, std=1, *, generator=None) -``` - -### [paddle.Tensor.normal_]() - -```python -paddle.Tensor.normal_(mean=0, std=1) -``` - -功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| --------- | ------------ | --------------------------------------------- | -| mean | mean | 均值。 | -| std | std | 标准差。 | -| generator | - | 用于采样的伪随机数生成器, Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.numel.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.numel.md index 691f52e905e..56d7d867b72 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.numel.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.numel.md @@ -1,4 +1,4 @@ -## [ 无参数 ] torch.Tensor.numel +## [仅 API 调用方式不一致] torch.Tensor.numel ### [torch.Tensor.numel](https://pytorch.org/docs/stable/generated/torch.numel.html?highlight=numel#torch.numel) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.pin_memory.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.pin_memory.md deleted file mode 100644 index 1d0f08d99e8..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.pin_memory.md +++ /dev/null @@ -1,17 +0,0 @@ -## [ 无参数 ] torch.Tensor.pin_memory - -### [torch.Tensor.pin_memory](https://pytorch.org/docs/stable/generated/torch.Tensor.pin_memory.html?highlight=pin_mem#torch.Tensor.pin_memory) - -```python -torch.Tensor.pin_memory() -``` - -### [paddle.Tensor.pin_memory](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#pin-memory-y-name-none) - -```python -paddle.Tensor.pin_memory() -``` - - - -两者功能一致,均无参数,用于将当前 Tensor 的拷贝到固定内存上,且返回的 Tensor 不保留在原计算图中。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.polygamma.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.polygamma.md deleted file mode 100644 index 3bfea29213d..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.polygamma.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 参数完全一致 ] torch.Tensor.polygamma - -### [torch.Tensor.polygamma](https://pytorch.org/docs/stable/generated/torch.Tensor.polygamma.html?highlight=tensor+polygamma#torch.Tensor.polygamma) - -```python -torch.Tensor.polygamma(n) -``` - -### [paddle.Tensor.polygamma](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/polygamma_cn.html#polygamma) - -```python -paddle.Tensor.polygamma(n) -``` - -两者功能一致,且参数一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -|---------|--------------|------------------| -| n | n | 表示返回第 n 阶的多伽马函数的值。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.polygamma_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.polygamma_.md deleted file mode 100644 index 6231088a668..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.polygamma_.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 参数完全一致 ]torch.Tensor.polygamma_ - -### [torch.Tensor.polygamma_](https://pytorch.org/docs/stable/generated/torch.Tensor.polygamma_.html) - -```python -torch.Tensor.polygamma_(n) -``` - -### [paddle.Tensor.polygamma_]() - -```python -paddle.Tensor.polygamma_(n) -``` - -两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| n | n | 指定需要求解 n 阶多伽马函数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.positive.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.positive.md index 4b439bf900d..e475cb2a2b9 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.positive.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.positive.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torch.Tensor.positive +## [仅 API 调用方式不一致]torch.Tensor.positive ### [torch.Tensor.positive](https://pytorch.org/docs/stable/generated/torch.Tensor.positive.html#torch.Tensor.positive) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.rad2deg.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.rad2deg.md deleted file mode 100644 index 99e7c0a45b5..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.rad2deg.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.rad2deg - -### [torch.Tensor.rad2deg](https://pytorch.org/docs/stable/generated/torch.Tensor.rad2deg.html#torch-tensor-rad2deg) - -```python -torch.Tensor.rad2deg() -``` - -### [paddle.Tensor.rad2deg](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#rad2deg-x-name-none) - -```python -paddle.Tensor.rad2deg() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.real.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.real.md index 5bd56f30644..cf2a97385ee 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.real.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.real.md @@ -1,4 +1,4 @@ -## [ 无参数 ] torch.Tensor.real +## [仅 API 调用方式不一致] torch.Tensor.real ### [torch.Tensor.real](https://pytorch.org/docs/stable/generated/torch.Tensor.real.html) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.reciprocal.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.reciprocal.md deleted file mode 100644 index 612cc721c7b..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.reciprocal.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.reciprocal - -### [torch.Tensor.reciprocal](https://pytorch.org/docs/stable/generated/torch.Tensor.reciprocal.html?highlight=torch+tensor+reciprocal#torch.Tensor.reciprocal) - -```python -torch.Tensor.reciprocal() -``` - -### [paddle.Tensor.reciprocal]() - -```python -paddle.Tensor.reciprocal() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.reciprocal_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.reciprocal_.md deleted file mode 100644 index 06854009246..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.reciprocal_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.reciprocal_ - -### [torch.Tensor.reciprocal_](https://pytorch.org/docs/stable/generated/torch.Tensor.reciprocal_.html?highlight=torch+tensor+reciprocal_#torch.Tensor.reciprocal_) - -```python -torch.Tensor.reciprocal_() -``` - -### [paddle.Tensor.reciprocal_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#id11) - -```python -paddle.Tensor.reciprocal_() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.register_hook.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.register_hook.md deleted file mode 100644 index d695169c696..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.register_hook.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 参数完全一致 ]torch.Tensor.register_hook -### [torch.Tensor.register_hook](https://pytorch.org/docs/stable/generated/torch.Tensor.register_hook.html#torch-tensor-register-hook) - -```python -torch.Tensor.register_hook(hook) -``` - -### [paddle.Tensor.register_hook](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#register-hook-hook) - -```python -paddle.Tensor.register_hook(hook) -``` - - -两者功能一致,且参数一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| hook | hook | 一个需要注册到 Tensor.grad 上的 hook 函数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.retain_grad.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.retain_grad.md index 3423c7c2712..854d8bb7d97 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.retain_grad.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.retain_grad.md @@ -1,4 +1,4 @@ -## [无参数]torch.Tensor.retain_grad +## [仅 API 调用方式不一致]torch.Tensor.retain_grad ### [torch.Tensor.retain_grad](https://pytorch.org/docs/stable/generated/torch.Tensor.retain_grad.html) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.rsqrt.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.rsqrt.md deleted file mode 100644 index a40ca35c389..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.rsqrt.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.rsqrt - -### [ torch.Tensor.rsqrt](https://pytorch.org/docs/stable/generated/torch.Tensor.rsqrt) - -```python -torch.Tensor.rsqrt() -``` - -### [paddle.Tensor.rsqrt](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#rsqrt-name-none) - -```python -paddle.Tensor.rsqrt() -``` - -两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.rsqrt_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.rsqrt_.md deleted file mode 100644 index 7e6c5ca8e31..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.rsqrt_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.rsqrt_ - -### [torch.Tensor.rsqrt_](https://pytorch.org/docs/stable/generated/torch.Tensor.rsqrt_) - -```python -torch.Tensor.rsqrt_() -``` - -### [paddle.Tensor.rsqrt_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#id15) - -```python -paddle.Tensor.rsqrt_() -``` - -两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sgn.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sgn.md deleted file mode 100644 index aef70be6cd7..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sgn.md +++ /dev/null @@ -1,12 +0,0 @@ -## [ 无参数 ]torch.Tensor.sgn -### [torch.Tensor.sgn](https://pytorch.org/docs/stable/generated/torch.Tensor.sgn.html#torch.Tensor.sgn) - -```python -torch.Tensor.sgn() -``` - -### [paddle.Tensor.sgn](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#sgn-name-none) - -```python -paddle.Tensor.sgn() -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.shape.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.shape.md deleted file mode 100644 index e0567226ed7..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.shape.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.shape - -### [torch.Tensor.shape](https://pytorch.org/docs/stable/generated/torch.Tensor.shape.html) - -```python -torch.Tensor.shape -``` - -### [paddle.Tensor.shape](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#shape) - -```python -paddle.Tensor.shape -``` - -两者功能一致,均无参数,都用来查看一个 Tensor 的 shape,shape 是 Tensor 的一个重要的概念,其描述了 tensor 在每个维度上的元素数量。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sigmoid.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sigmoid.md deleted file mode 100644 index a2df16cc2c2..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sigmoid.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.sigmoid - -### [torch.Tensor.sigmoid](https://pytorch.org/docs/stable/generated/torch.Tensor.sigmoid) - -```python -torch.Tensor.sigmoid() -``` - -### [paddle.Tensor.sigmoid]() - -```python -paddle.Tensor.sigmoid() -``` - -两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sigmoid_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sigmoid_.md deleted file mode 100644 index 5e46a05aa6c..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sigmoid_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.sigmoid_ - -### [torch.Tensor.sigmoid_](https://pytorch.org/docs/stable/generated/torch.Tensor.sigmoid_) - -```python -torch.Tensor.sigmoid_() -``` - -### [paddle.Tensor.sigmoid_]() - -```python -paddle.Tensor.sigmoid_() -``` - -两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sign.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sign.md deleted file mode 100644 index dfda02114eb..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sign.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.sign - -### [torch.Tensor.sign](https://pytorch.org/docs/stable/generated/torch.Tensor.sign) - -```python -torch.Tensor.sign() -``` - -### [paddle.Tensor.sign](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#sign-name-none) - -```python -paddle.Tensor.sign() -``` - -两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.signbit.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.signbit.md deleted file mode 100644 index 1dfe7df4ce3..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.signbit.md +++ /dev/null @@ -1,15 +0,0 @@ -## [无参数]torch.Tensor.signbit - -### [torch.Tensor.signbit](https://pytorch.org/docs/stable/generated/torch.Tensor.signbit.html#torch-signbit) - -```python -torch.Tensor.signbit() -``` - -### [paddle.Tensor.signbit](https://github.com/PaddlePaddle/Paddle/blob/9ce3a54f456011c664c70fbcd318f2e1af0a7d81/python/paddle/tensor/math.py#L7175) - -```python -paddle.Tensor.signbit() -``` - -两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sin.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sin.md deleted file mode 100644 index 085dac59dc9..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sin.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.sin - -### [torch.Tensor.sin](https://pytorch.org/docs/stable/generated/torch.Tensor.sin) - -```python -torch.Tensor.sin() -``` - -### [paddle.Tensor.sin](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#sin-name-none) - -```python -paddle.Tensor.sin() -``` - -两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sin_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sin_.md deleted file mode 100644 index 0cdd5ebf829..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sin_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.sin_ - -### [torch.Tensor.sin_](https://pytorch.org/docs/stable/generated/torch.Tensor.sin_.html) - -```python -torch.Tensor.sin_() -``` - -### [paddle.Tensor.sin_]() - -```python -paddle.Tensor.sin_() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sinc.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sinc.md deleted file mode 100644 index 6c9e65e623e..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sinc.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.sinc - -### [torch.Tensor.sinc](https://pytorch.org/docs/stable/generated/torch.Tensor.sinc.html#torch.Tensor.sinc) - -```python -torch.Tensor.sinc() -``` - -### [paddle.Tensor.sinc](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sinc_cn.html#sinc) - -```python -paddle.Tensor.sinc() -``` - -两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sinc_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sinc_.md deleted file mode 100644 index 7cfe264066f..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sinc_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.sinc_ - -### [torch.Tensor.sinc_](https://pytorch.org/docs/stable/generated/torch.Tensor.sinc_.html#torch-tensor-sinc) - -```python -torch.Tensor.sinc_() -``` - -### [paddle.Tensor.sinc_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sinc__cn.html#sinc) - -```python -paddle.Tensor.sinc_() -``` - -两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sinh.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sinh.md deleted file mode 100644 index e95b85647ff..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sinh.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.sinh - -### [torch.Tensor.sinh](https://pytorch.org/docs/stable/generated/torch.Tensor.sinh.html?highlight=torch+tensor+sinh#torch.Tensor.sinh) - -```python -torch.Tensor.sinh() -``` - -### [paddle.Tensor.sinh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#sinh-name-none) - -```python -paddle.Tensor.sinh() -``` - -两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sinh_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sinh_.md deleted file mode 100644 index 403d1349f05..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sinh_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.sinh_ - -### [torch.Tensor.sinh_](https://pytorch.org/docs/stable/generated/torch.Tensor.sinh_.html) - -```python -torch.Tensor.sinh_() -``` - -### [paddle.Tensor.sinh_]() - -```python -paddle.Tensor.sinh_() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sparse_dim.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sparse_dim.md deleted file mode 100644 index 02e278aa899..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sparse_dim.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.sparse_dim - -### [torch.Tensor.sparse_dim](https://pytorch.org/docs/stable/generated/torch.Tensor.sparse_dim.html#torch.Tensor.sparse_dim) - -```python -torch.Tensor.sparse_dim() -``` - -### [paddle.Tensor.sparse_dim](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html) - -```python -paddle.Tensor.sparse_dim() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sparse_mask.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sparse_mask.md index c3850feed09..cc37d899e3d 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sparse_mask.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sparse_mask.md @@ -1,4 +1,4 @@ -## [ 参数完全一致 ] torch.Tensor.sparse_mask +## [仅 API 调用方式不一致] torch.Tensor.sparse_mask ### [torch.Tensor.sparse_mask](https://pytorch.org/docs/stable/generated/torch.Tensor.sparse_mask.html) @@ -13,20 +13,3 @@ paddle.sparse.mask_as(x, mask, name=None) ``` 两者功能一致,但调用方式不同,torch 通过 Tensor 类方法调用,而 paddle 是直接调用函数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ---------- | ------------ | ------------------------------------ | -| - | x | 输入的 DenseTensor。 | -| mask | mask | 掩码逻辑的 mask,参数完全一致。 | - -### 转写示例 - -```python -# torch 调用 Tensor 类方法 -x.sparse_mask(mask) - -# paddle 直接调用函数 -paddle.sparse.mask_as(x, mask) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sqrt.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sqrt.md deleted file mode 100644 index c2edf8b7e01..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sqrt.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.sqrt - -### [torch.Tensor.sqrt](https://pytorch.org/docs/stable/generated/torch.sqrt.html) - -```python -torch.Tensor.sqrt() -``` - -### [paddle.Tensor.sqrt](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#sqrt-name-none) - -```python -paddle.Tensor.sqrt() -``` - -两者功能一致,无参数. diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sqrt_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sqrt_.md deleted file mode 100644 index 088c3891166..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sqrt_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.sqrt_ - -### [torch.Tensor.sqrt_](https://pytorch.org/docs/stable/generated/torch.Tensor.sqrt_.html?highlight=torch+tensor+sqrt_#torch.Tensor.sqrt_) - -```python -torch.Tensor.sqrt_() -``` - -### [paddle.Tensor.sqrt_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#id18) - -```python -paddle.Tensor.sqrt_() -``` - -两者功能一致,无参数. diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.square.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.square.md deleted file mode 100644 index dcc1cda1753..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.square.md +++ /dev/null @@ -1,14 +0,0 @@ -## [ 无参数 ]torch.Tensor.square - -### [torch.Tensor.square](https://pytorch.org/docs/stable/generated/torch.Tensor.square.html#torch-tensor-square) - -```python -torch.Tensor.square() -``` - -### [paddle.Tensor.square](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#square-name-none) - -```python -paddle.Tensor.square() -``` -两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.square_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.square_.md index 9ed562b75b8..0620473ed08 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.square_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.square_.md @@ -1,4 +1,4 @@ -## [ 无参数 ] torch.Tensor.square_ +## [仅 API 调用方式不一致] torch.Tensor.square_ ### [torch.Tensor.square_](https://pytorch.org/docs/stable/generated/torch.Tensor.square_.html) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.t.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.t.md deleted file mode 100644 index 01b83f5ed8e..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.t.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.t - -### [torch.Tensor.t](https://pytorch.org/docs/stable/generated/torch.Tensor.t.html#torch.Tensor.t) - -```python -torch.Tensor.t() -``` - -### [paddle.Tensor.t](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#t-name-none) - -```python -paddle.Tensor.t() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.t_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.t_.md deleted file mode 100644 index d985f8d89a7..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.t_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.t_ - -### [torch.Tensor.t_](https://pytorch.org/docs/stable/generated/torch.Tensor.t_.html#torch.Tensor.t_) - -```python -torch.Tensor.t_() -``` - -### [paddle.Tensor.t_]() - -```python -paddle.Tensor.t_() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.tan.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.tan.md deleted file mode 100644 index ed6c896330a..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.tan.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.tan - -### [torch.Tensor.tan](https://pytorch.org/docs/stable/generated/torch.Tensor.tan.html#torch.Tensor.tan) - -```python -torch.Tensor.tan() -``` - -### [paddle.Tensor.tan]() - -```python -paddle.Tensor.tan() -``` - -两者功能一致,无参数. diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.tan_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.tan_.md deleted file mode 100644 index df73370cbc0..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.tan_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.tan_ - -### [torch.Tensor.tan_](https://pytorch.org/docs/stable/generated/torch.Tensor.tan_.html) - -```python -torch.Tensor.tan_() -``` - -### [paddle.Tensor.tan_]() - -```python -paddle.Tensor.tan_() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.tanh.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.tanh.md deleted file mode 100644 index 514297cf873..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.tanh.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.tanh - -### [torch.Tensor.tanh](https://pytorch.org/docs/stable/generated/torch.Tensor.tanh.html#torch.Tensor.tanh) - -```python -torch.Tensor.tanh() -``` - -### [paddle.Tensor.tanh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#tanh-name-none) - -```python -paddle.Tensor.tanh() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.tanh_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.tanh_.md deleted file mode 100644 index 80bdd1e2223..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.tanh_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.tanh_ - -### [torch.Tensor.tanh_](https://pytorch.org/docs/stable/generated/torch.Tensor.tanh_.html#torch.Tensor.tanh_) - -```python -torch.Tensor.tanh_() -``` - -### [paddle.Tensor.tanh_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#id22) - -```python -paddle.Tensor.tanh_() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.to_dense.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.to_dense.md deleted file mode 100644 index 7513aebec9a..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.to_dense.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.to_dense - -### [torch.Tensor.to_dense](https://pytorch.org/docs/stable/generated/torch.Tensor.to_dense.html#torch-tensor-to-dense) - -```python -torch.Tensor.to_dense() -``` - -### [paddle.Tensor.to_dense](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor/to_dense_en.html#to-dense) - -```python -paddle.Tensor.to_dense() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.to_sparse.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.to_sparse.md index 570a344ed40..2403c98e327 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.to_sparse.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.to_sparse.md @@ -1,4 +1,4 @@ -## [ 参数完全一致 ] torch.Tensor.to_sparse +## [仅 API 调用方式不一致] torch.Tensor.to_sparse ### [torch.Tensor.to_sparse](https://pytorch.org/docs/stable/generated/torch.Tensor.to_sparse.html#torch.Tensor.to_sparse) @@ -13,9 +13,3 @@ paddle.Tensor.to_sparse_coo(sparse_dim) ``` 两者功能一致,参数用法一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ---------- | ------------ | ------------------------------------ | -| sparse_dim | sparse_dim | 在新的稀疏张量中包含的稀疏维度的数量 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.tolist.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.tolist.md deleted file mode 100644 index 616cced334e..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.tolist.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.Tensor.tolist - -### [torch.Tensor.tolist](https://pytorch.org/docs/stable/generated/torch.Tensor.tolist.html#torch.Tensor.tolist) - -```python -torch.Tensor.tolist() -``` - -### [paddle.Tensor.tolist](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#tolist) - -```python -paddle.Tensor.tolist() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.tril.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.tril.md deleted file mode 100644 index 24faa39e517..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.tril.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 参数完全一致 ]torch.Tensor.tril - -### [torch.Tensor.tril](https://pytorch.org/docs/stable/generated/torch.Tensor.tril.html#torch.Tensor.tril) - -```python -torch.Tensor.tril(diagonal=0) -``` - -### [paddle.Tensor.tril]() - -```python -paddle.Tensor.tril(diagonal=0, name=None) -``` - -两者功能一致且参数用法一致。 - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| -------- | ------------ | -------------------------------- | -| diagonal | diagonal | 表示运算的对角线,参数完全一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.tril_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.tril_.md deleted file mode 100644 index b1fb17346d9..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.tril_.md +++ /dev/null @@ -1,21 +0,0 @@ -## [参数完全一致]torch.Tensor.tril_ - -### [torch.Tensor.tril_](https://pytorch.org/docs/stable/generated/torch.Tensor.tril_.html#torch.Tensor.tril_) - -```python -torch.Tensor.tril_(diagonal=0) -``` - -### [paddle.Tensor.tril_]() - -```python -paddle.Tensor.tril_(diagonal=0) -``` - -两者功能一致且参数用法一致。 - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| -------- | ------------ | -------------------------------- | -| diagonal | diagonal | 表示运算的对角线,参数完全一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.triu.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.triu.md deleted file mode 100644 index 654c518cd27..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.triu.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 参数完全一致 ]torch.Tensor.triu - -### [torch.Tensor.triu](https://pytorch.org/docs/stable/generated/torch.Tensor.triu.html#torch.Tensor.triu) - -```python -torch.Tensor.triu(diagonal=0) -``` - -### [paddle.Tensor.triu]() - -```python -paddle.Tensor.triu(diagonal=0, name=None) -``` - -两者功能一致且参数用法一致。 - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| -------- | ------------ | -------------------------------- | -| diagonal | diagonal | 表示运算的对角线,参数完全一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.triu_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.triu_.md deleted file mode 100644 index 301e7f3835f..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.triu_.md +++ /dev/null @@ -1,21 +0,0 @@ -## [参数完全一致]torch.Tensor.triu_ - -### [torch.Tensor.triu_](https://pytorch.org/docs/stable/generated/torch.Tensor.triu_.html#torch.Tensor.triu_) - -```python -torch.Tensor.triu_(diagonal=0) -``` - -### [paddle.Tensor.triu_]() - -```python -paddle.Tensor.triu_(diagonal=0) -``` - -两者功能一致且参数用法一致。 - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| -------- | ------------ | -------------------------------- | -| diagonal | diagonal | 表示运算的对角线,参数完全一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.trunc.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.trunc.md deleted file mode 100644 index 978fa791f28..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.trunc.md +++ /dev/null @@ -1,15 +0,0 @@ -## [无参数]torch.Tensor.trunc - -### [torch.Tensor.trunc](https://pytorch.org/docs/stable/generated/torch.Tensor.trunc.html#torch.Tensor.trunc) - -```python -torch.Tensor.trunc() -``` - -### [paddle.Tensor.trunc](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#trunc-name-none) - -```python -paddle.Tensor.trunc() -``` - -两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.trunc_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.trunc_.md deleted file mode 100644 index 18515e4fcf9..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.trunc_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.trunc_ - -### [torch.Tensor.trunc_](https://pytorch.org/docs/stable/generated/torch.Tensor.trunc_.html) - -```python -torch.Tensor.trunc_() -``` - -### [paddle.Tensor.trunc_]() - -```python -paddle.Tensor.trunc_() -``` - -两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.values.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.values.md deleted file mode 100644 index 62ede0b8c36..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.values.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.Tensor.values - -### [torch.Tensor.values](https://pytorch.org/docs/stable/generated/torch.Tensor.values.html?highlight=torch+tensor+values#torch.Tensor.values) - -```python -torch.Tensor.values() -``` - -### [paddle.Tensor.values](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sparse/Overview_cn.html) - -```python -paddle.Tensor.values() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.view_as.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.view_as.md deleted file mode 100644 index fd26f41c301..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.view_as.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 参数完全一致 ]torch.Tensor.view_as - -### [torch.Tensor.view_as](https://pytorch.org/docs/stable/generated/torch.Tensor.view_as.html?highlight=view_as#torch.Tensor.view_as) - -```python -torch.Tensor.view_as(other) -``` - -### [paddle.Tensor.view_as](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#view-as-x-other-name-none) - -```python -paddle.Tensor.view_as(other, name=None) -``` - -两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ------------------------------ | -| other | other | 与返回 Tensor shape 相同的 Tensor | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.zero_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.zero_.md deleted file mode 100644 index f81e7186f05..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.zero_.md +++ /dev/null @@ -1,15 +0,0 @@ -## [无参数]torch.Tensor.zero_ - -### [torch.Tensor.zero_](https://pytorch.org/docs/stable/generated/torch.Tensor.zero_.html#torch.Tensor.zero_) - -```python -torch.Tensor.zero_() -``` - -### [paddle.Tensor.zero_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#zero-x-name-none) - -```python -paddle.Tensor.zero_() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.__version__.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.__version__.md deleted file mode 100644 index f77ba98decb..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.__version__.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.__version__ - -### [torch.__version__]() - -```python -torch.__version__ -``` - -### [paddle.__version__]() - -```python -paddle.__version__ -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.__version__.split.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.__version__.split.md deleted file mode 100644 index 06828a8a269..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.__version__.split.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 参数完全一致 ] torch._\_version__.split - -### [torch._\_version__.split]() - -```python -torch.__version__.split(sep=None, maxsplit=-1) -``` - -### [paddle._\_version__.split]() - -```python -paddle.__version__.split(sep=None, maxsplit=-1) -``` - -两者功能一致,参数完全一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -|---------|--------------| -------------------------------------------------- | -| sep | sep | 分割字符串的分隔符。 | -| max | max | 分割操作的最大次数 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.Function.forward.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.Function.forward.md index fa8722770de..d9675bf1005 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.Function.forward.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.Function.forward.md @@ -1,4 +1,4 @@ -## [参数完全一致]torch.autograd.Function.forward +## [仅 API 调用方式不一致]torch.autograd.Function.forward ### [torch.autograd.Function.forward](https://pytorch.org/docs/stable/generated/torch.autograd.Function.forward.html#torch.autograd.Function.forward) @@ -13,11 +13,3 @@ paddle.autograd.PyLayer.forward(ctx, *args, **kwargs) ``` 两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ------------------ | -| ctx | ctx | 上下文对象。 | -| args | args | 自定义算子的输入。 | -| kwargs | kwargs | 自定义算子的输入。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.enable_grad.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.enable_grad.md index bf999c17e0f..ea606a39ae7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.enable_grad.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.enable_grad.md @@ -1,4 +1,4 @@ -## [无参数]torch.autograd.enable_grad +## [仅 API 调用方式不一致]torch.autograd.enable_grad ### [torch.autograd.enable_grad](https://pytorch.org/docs/stable/generated/torch.enable_grad.html#enable-grad) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.function.FunctionCtx.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.function.FunctionCtx.md index 6d99d734f1b..5411bd01346 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.function.FunctionCtx.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.function.FunctionCtx.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torch.autograd.function.FunctionCtx +## [仅 API 调用方式不一致]torch.autograd.function.FunctionCtx ### [torch.autograd.function.FunctionCtx]() diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.function.FunctionCtx.save_for_backward.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.function.FunctionCtx.save_for_backward.md index c3f9850d67d..686e3e44bb0 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.function.FunctionCtx.save_for_backward.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.function.FunctionCtx.save_for_backward.md @@ -1,4 +1,4 @@ -## [参数完全一致]torch.autograd.function.FunctionCtx.save_for_backward +## [仅 API 调用方式不一致]torch.autograd.function.FunctionCtx.save_for_backward ### [torch.autograd.function.FunctionCtx.save_for_backward](https://pytorch.org/docs/stable/generated/torch.autograd.function.FunctionCtx.save_for_backward.html#torch.autograd.function.FunctionCtx.save_for_backward) @@ -13,9 +13,3 @@ paddle.autograd.PyLayerContext.save_for_backward(*tensors) ``` 两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | --------------------- | -| tensors | tensors | 需要被暂存的 Tensor。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.function.FunctionCtx.set_materialize_grads.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.function.FunctionCtx.set_materialize_grads.md index 1f77d473b00..dbbc1c8b3a8 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.function.FunctionCtx.set_materialize_grads.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.function.FunctionCtx.set_materialize_grads.md @@ -1,4 +1,4 @@ -## [参数完全一致]torch.autograd.function.FunctionCtx.set_materialize_grads +## [仅 API 调用方式不一致]torch.autograd.function.FunctionCtx.set_materialize_grads ### [torch.autograd.function.FunctionCtx.set_materialize_grads](https://pytorch.org/docs/stable/generated/torch.autograd.function.FunctionCtx.set_materialize_grads.html#torch.autograd.function.FunctionCtx.set_materialize_grads) @@ -13,9 +13,3 @@ paddle.autograd.PyLayerContext.set_materialize_grads(value) ``` 两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -------------------------------------- | -| value | value | 是否要框架来初始化未初始化的反向梯度。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.grad_mode.set_grad_enabled.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.grad_mode.set_grad_enabled.md index dd08b9c4a48..ffbe9e34769 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.grad_mode.set_grad_enabled.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.grad_mode.set_grad_enabled.md @@ -1,4 +1,4 @@ -## [参数完全一致]torch.autograd.grad_mode.set_grad_enabled +## [仅 API 调用方式不一致]torch.autograd.grad_mode.set_grad_enabled ### [torch.autograd.grad_mode.set_grad_enabled](https://docs.pytorch.org/docs/stable/generated/torch.autograd.grad_mode.set_grad_enabled.html#torch.autograd.grad_mode.set_grad_enabled) @@ -13,9 +13,3 @@ paddle.set_grad_enabled(mode) ``` 两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ------------------------------------------- | -| mode | mode | 启用(True)或禁用(False)动态图梯度计算。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.graph.saved_tensors_hooks.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.graph.saved_tensors_hooks.md index f99ec0e50c4..e3b9d2e5632 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.graph.saved_tensors_hooks.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.graph.saved_tensors_hooks.md @@ -1,4 +1,4 @@ -## [参数完全一致]torch.autograd.graph.saved_tensors_hooks +## [仅 API 调用方式不一致]torch.autograd.graph.saved_tensors_hooks ### [torch.autograd.graph.saved_tensors_hooks](https://pytorch.org/docs/stable/autograd.html?highlight=saved_tensors_hooks#torch.autograd.graph.saved_tensors_hooks) @@ -13,10 +13,3 @@ paddle.autograd.saved_tensors_hooks(pack_hook, unpack_hook) ``` 两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ----------- | ------------ | ----------------------------------------------------------------------------------------- | -| pack_hook | pack_hook | 当某个算子的前向执行时,存在 Tensor 需要保留给反向计算梯度使用时, pack_hook 将会被调用。 | -| unpack_hook | unpack_hook | 当反向执行,需要用到前向保留的 Tensor 时, unpack_hook 会被调用。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.backends.cuda.is_built.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.backends.cuda.is_built.md index 7e6f6164066..2138303cb0a 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.backends.cuda.is_built.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.backends.cuda.is_built.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torch.backends.cuda.is_built +## [仅 API 调用方式不一致]torch.backends.cuda.is_built ### [torch.backends.cuda.is_built](https://pytorch.org/docs/stable/backends.html?highlight=torch+backends+cudnn+is_available#torch.backends.cuda.is_built) ```python diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.backends.cudnn.version.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.backends.cudnn.version.md index cec6db09f14..7d436664afc 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.backends.cudnn.version.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.backends.cudnn.version.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torch.backends.cudnn.version +## [仅 API 调用方式不一致]torch.backends.cudnn.version ### [torch.backends.cudnn.version](https://pytorch.org/docs/stable/generated/torch.backends.cudnn.version.html) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.bfloat16.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.bfloat16.md deleted file mode 100644 index f310a1d223b..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.bfloat16.md +++ /dev/null @@ -1,16 +0,0 @@ -## [ 无参数 ]torch.bfloat16 - -### [torch.bfloat16](https://github.com/pytorch/pytorch/tree/main/torch) - -```python -torch.bfloat16 -``` - -### [paddle.bfloat16](https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/framework/dtype.pyi#L31) - -```python -paddle.bfloat16 -``` - -两者功能一致,无参数。 -注:该 API 也可直接转写为字符串形式:'bfloat16'。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.bool.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.bool.md deleted file mode 100644 index c654b813430..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.bool.md +++ /dev/null @@ -1,16 +0,0 @@ -## [ 无参数 ]torch.bool - -### [torch.bool](https://github.com/pytorch/pytorch/tree/main/torch) - -```python -torch.bool -``` - -### [paddle.bool](https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/framework/dtype.pyi#L36) - -```python -paddle.bool -``` - -两者功能一致,无参数。 -注:该 API 也可直接转写为字符串形式:'bool'。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cda.StreamContext.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cda.StreamContext.md index 4d018ad0edd..3c9262e3640 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cda.StreamContext.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cda.StreamContext.md @@ -1,4 +1,4 @@ -## [参数完全一致]torch.cuda.StreamContext +## [仅 API 调用方式不一致]torch.cuda.StreamContext ### [torch.cuda.StreamContext](https://pytorch.org/docs/stable/generated/torch.cuda.StreamContext.html#torch.cuda.StreamContext) @@ -13,9 +13,3 @@ paddle.device.stream_guard(stream) ``` 功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -|---------------|-------------------| ------------------------------------------------------ | -| stream | stream | 指定的 CUDA stream 。| diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.complex128.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.complex128.md deleted file mode 100644 index c4ce5df296a..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.complex128.md +++ /dev/null @@ -1,16 +0,0 @@ -## [ 无参数 ]torch.complex128 - -### [torch.complex128](https://github.com/pytorch/pytorch/tree/main/torch) - -```python -torch.complex128 -``` - -### [paddle.complex128](https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/framework/dtype.pyi#L34) - -```python -paddle.complex128 -``` - -两者功能一致,无参数。 -注:该 API 也可直接转写为字符串形式:'complex128'。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.complex64.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.complex64.md deleted file mode 100644 index 24fb4b3b9f0..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.complex64.md +++ /dev/null @@ -1,16 +0,0 @@ -## [ 无参数 ]torch.complex64 - -### [torch.complex64](https://github.com/pytorch/pytorch/tree/main/torch) - -```python -torch.complex64 -``` - -### [paddle.complex64](https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/framework/dtype.pyi#L33) - -```python -paddle.complex64 -``` - -两者功能一致,无参数。 -注:该 API 也可直接转写为字符串形式:'complex64'。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cpu.current_device.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cpu.current_device.md index 98e4f5c29c4..5a251395586 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cpu.current_device.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cpu.current_device.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torch.cpu.current_device +## [仅 API 调用方式不一致]torch.cpu.current_device ### [torch.cpu.current_device](https://pytorch.org/docs/stable/generated/torch.cpu.current_device.html) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.Event.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.Event.md index 305bd4a2287..f1e1383af6d 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.Event.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.Event.md @@ -1,4 +1,4 @@ -## [参数完全一致]torch.cuda.Event +## [仅 API 调用方式不一致]torch.cuda.Event ### [torch.cuda.Event](https://pytorch.org/docs/stable/generated/torch.cuda.Event.html#torch.cuda.Event) @@ -13,9 +13,3 @@ paddle.device.cuda.Event(enable_timing=False, blocking=False, interprocess=False ``` 功能一致,参数完全一致,具体如下: -### 参数映射 -| PyTorch | PaddlePaddle | 备注 | -|---------------|-------------------| ------------------------------------------------------ | -| enable_timing | enable_timing | 表示是否需要统计时间。默认值为 False。 | -| blocking | blocking | 表示 wait()函数是否被阻塞。默认值为 False。 | -| interprocess | interprocess | 表示是否能在进程间共享。默认值为 False。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.current_device.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.current_device.md deleted file mode 100644 index e7cdab8a44a..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.current_device.md +++ /dev/null @@ -1,15 +0,0 @@ -## [无参数]torch.cuda.current_device - -### [torch.cuda.current_device](https://pytorch.org/docs/stable/generated/torch.cuda.current_device.html#torch.cuda.current_device) - -```python -torch.cuda.current_device() -``` - -### [paddle.device.get_device](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/device/get_device_cn.html#get-device) - -```python -paddle.device.get_device() -``` - -功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.device_count.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.device_count.md deleted file mode 100644 index e28ebe4d87e..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.device_count.md +++ /dev/null @@ -1,15 +0,0 @@ -## [无参数]torch.cuda.device_count - -### [torch.cuda.device_count](https://pytorch.org/docs/stable/generated/torch.cuda.device_count.html#torch.cuda.device_count) - -```python -torch.cuda.device_count() -``` - -### [paddle.device.cuda.device_count](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/device/cuda/device_count_cn.html) - -```python -paddle.device.cuda.device_count() -``` - -功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.empty_cache.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.empty_cache.md deleted file mode 100644 index 4bb84891384..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.empty_cache.md +++ /dev/null @@ -1,15 +0,0 @@ -## [无参数]torch.cuda.empty_cache - -### [torch.cuda.empty_cache](https://pytorch.org/docs/stable/generated/torch.cuda.empty_cache.html#torch.cuda.empty_cache) - -```python -torch.cuda.empty_cache() -``` - -### [paddle.device.cuda.empty_cache](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/device/cuda/empty_cache_cn.html) - -```python -paddle.device.cuda.empty_cache() -``` - -两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.get_device_capability.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.get_device_capability.md deleted file mode 100644 index c680eec25de..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.get_device_capability.md +++ /dev/null @@ -1,20 +0,0 @@ -## [参数完全一致]torch.cuda.get_device_capability - -### [torch.cuda.get_device_capability](https://pytorch.org/docs/stable/generated/torch.cuda.get_device_capability.html#torch.cuda.get_device_capability) - -```python -torch.cuda.get_device_capability(device=None) -``` - -### [paddle.device.cuda.get_device_capability](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/device/cuda/get_device_capability_cn.html) - -```python -paddle.device.cuda.get_device_capability(device=None) -``` - -功能一致,参数完全一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- |---------------------| ------------------------------------------------------ | -| device | device | 表示希望获取计算能力的设备或者设备 ID。如果 device 为 None(默认),则为当前的设备。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.get_device_name.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.get_device_name.md index c19518ca448..b1a7d23509c 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.get_device_name.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.get_device_name.md @@ -1,4 +1,4 @@ -## [ 参数完全一致 ]torch.cuda.get_device_name +## [仅 API 调用方式不一致]torch.cuda.get_device_name ### [torch.cuda.get_device_name](https://pytorch.org/docs/stable/generated/torch.cuda.get_device_name.html) @@ -13,9 +13,3 @@ paddle.device.cuda.get_device_name(device=None) ``` 功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -|---------|--------------|-----------------------------------------------------------------------------------------------| -| device | device | torch 的 device 参数类型为 torch.device 或 int 或 str。paddle 的 device 为 paddle.CUDAPlace 或 int 或 str。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.is_bf16_supported.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.is_bf16_supported.md index a543144f9c2..976e80d55bc 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.is_bf16_supported.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.is_bf16_supported.md @@ -1,4 +1,4 @@ -## [无参数]torch.cuda.is_bf16_supported +## [仅 API 调用方式不一致]torch.cuda.is_bf16_supported ### [torch.cuda.is_bf16_supported](https://pytorch.org/docs/stable/cuda.html) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.is_initialized.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.is_initialized.md deleted file mode 100644 index 818fb9e0d79..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.is_initialized.md +++ /dev/null @@ -1,15 +0,0 @@ -## [无参数]torch.cuda.is_initialized - -### [torch.cuda.is_initialized](https://docs.pytorch.org/docs/stable/generated/torch.cuda.is_initialized.html#torch-cuda-is-initialized) - -```python -torch.cuda.is_initialized() -``` - -### [paddle.is_compiled_with_cuda](https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/base/framework.py#L980) - -```python -paddle.is_compiled_with_cuda() -``` - -两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.manual_seed_all.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.manual_seed_all.md deleted file mode 100644 index 2afb6757076..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.manual_seed_all.md +++ /dev/null @@ -1,20 +0,0 @@ -## [参数完全一致]torch.cuda.manual_seed_all - -### [torch.cuda.manual_seed_all](https://pytorch.org/docs/2.0/generated/torch.cuda.manual_seed_all.html#torch.cuda.manual_seed_all) - -```python -torch.cuda.manual_seed_all(seed) -``` - -### [paddle.seed](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/seed_cn.html) - -```python -paddle.seed(seed) -``` - -功能一致,参数完全一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| seed | seed | 表示设置的的随机种子。| diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.max_memory_allocated.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.max_memory_allocated.md index 042b6adaea7..f929ea43072 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.max_memory_allocated.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.max_memory_allocated.md @@ -1,4 +1,4 @@ -## [参数完全一致]torch.cuda.max_memory_allocated +## [仅 API 调用方式不一致]torch.cuda.max_memory_allocated ### [torch.cuda.max_memory_allocated](https://pytorch.org/docs/stable/generated/torch.cuda.max_memory_allocated.html#torch.cuda.max_memory_allocated) @@ -13,8 +13,3 @@ paddle.device.cuda.max_memory_allocated(device) ``` 功能一致,参数完全一致(PyTorch 参数是 PaddlePaddle 参数子集),具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ |-----------------------------------------------------------------------| -| device | device | PyTorch 支持 torch.device 和 int。 PaddlePaddle 支持 paddle.CUDAPlace、int 、str。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.max_memory_reserved.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.max_memory_reserved.md index d57c7be1907..b57419a7db4 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.max_memory_reserved.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.max_memory_reserved.md @@ -1,4 +1,4 @@ -## [参数完全一致]torch.cuda.max_memory_reserved +## [仅 API 调用方式不一致]torch.cuda.max_memory_reserved ### [torch.cuda.max_memory_reserved](https://pytorch.org/docs/stable/generated/torch.cuda.max_memory_reserved.html#torch.cuda.max_memory_reserved) @@ -13,8 +13,3 @@ paddle.device.cuda.max_memory_reserved(device) ``` 功能一致,参数完全一致(PyTorch 参数是 PaddlePaddle 参数子集),具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ |-----------------------------------------------------------------------| -| device | device | PyTorch 支持 torch.device 和 int。 PaddlePaddle 支持 paddle.CUDAPlace、int 、str。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.memory_allocated.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.memory_allocated.md deleted file mode 100644 index ad8afff485d..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.memory_allocated.md +++ /dev/null @@ -1,20 +0,0 @@ -## [参数完全一致]torch.cuda.memory_allocated - -### [torch.cuda.memory_allocated](https://pytorch.org/docs/stable/generated/torch.cuda.memory_allocated.html#torch.cuda.memory_allocated) - -```python -torch.cuda.memory_allocated(device) -``` - -### [paddle.device.cuda.memory_allocated](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/device/cuda/memory_allocated_cn.html) - -```python -paddle.device.cuda.memory_allocated(device) -``` - -功能一致,参数完全一致(PyTorch 参数是 PaddlePaddle 参数子集),具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ |-----------------------------------------------------------------------| -| device | device | PyTorch 支持 torch.device 和 int。 PaddlePaddle 支持 paddle.CUDAPlace、int 、str。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.memory_reserved.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.memory_reserved.md deleted file mode 100644 index 90b20b29705..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.memory_reserved.md +++ /dev/null @@ -1,20 +0,0 @@ -## [参数完全一致]torch.cuda.memory_reserved - -### [torch.cuda.memory_reserved](https://pytorch.org/docs/stable/generated/torch.cuda.memory_reserved.html#torch.cuda.memory_reserved) - -```python -torch.cuda.memory_reserved(device) -``` - -### [paddle.device.cuda.memory_reserved](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/device/cuda/memory_reserved_cn.html) - -```python -paddle.device.cuda.memory_reserved(device) -``` - -功能一致,参数完全一致(PyTorch 参数是 PaddlePaddle 参数子集),具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ |-----------------------------------------------------------------------| -| device | device | PyTorch 支持 torch.device 和 int。 PaddlePaddle 支持 paddle.CUDAPlace、int 、str。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.nvtx.range_pop.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.nvtx.range_pop.md index 13fe539e65d..4e5aec9dc8f 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.nvtx.range_pop.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.nvtx.range_pop.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torch.cuda.nvtx.range_pop +## [仅 API 调用方式不一致]torch.cuda.nvtx.range_pop ### [torch.cuda.nvtx.range_pop](https://pytorch.org/docs/stable/generated/torch.cuda.nvtx.range_pop.html#torch.cuda.nvtx.range_pop) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.reset_max_memory_allocated.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.reset_max_memory_allocated.md index 866f20f2093..eb58735b809 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.reset_max_memory_allocated.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.reset_max_memory_allocated.md @@ -1,4 +1,4 @@ -## [参数完全一致]torch.cuda.reset_max_memory_allocated +## [仅 API 调用方式不一致]torch.cuda.reset_max_memory_allocated ### [torch.cuda.reset_max_memory_allocated](https://pytorch.org/docs/stable/generated/torch.cuda.reset_max_memory_allocated.html#torch.cuda.reset_max_memory_allocated) @@ -13,8 +13,3 @@ paddle.device.cuda.reset_max_memory_allocated(device) ``` 功能不一致(Pytorch 通过调用 reset_peak_memory_stats 函数实现,重置所有 CUDA 内存分配器跟踪的峰值统计。PaddlePaddle 仅重置分配给 Tensor 的显存峰值统计),参数完全一致(PyTorch 参数是 PaddlePaddle 参数子集),具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ |-----------------------------------------------------------------------| -| device | device | PyTorch 支持 torch.device 和 int。 PaddlePaddle 支持 paddle.CUDAPlace、int 、str。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.reset_max_memory_cached.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.reset_max_memory_cached.md index 40e39c7dc87..fa6398e38e9 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.reset_max_memory_cached.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.reset_max_memory_cached.md @@ -1,4 +1,4 @@ -## [参数完全一致]torch.cuda.reset_max_memory_cached +## [仅 API 调用方式不一致]torch.cuda.reset_max_memory_cached ### [torch.cuda.reset_max_memory_cached](https://docs.pytorch.org/docs/stable/generated/torch.cuda.reset_max_memory_cached.html#torch-cuda-reset-max-memory-cached) @@ -13,8 +13,3 @@ paddle.device.cuda.reset_max_memory_reserved(device) ``` 功能不一致(Pytorch 目前已弃用该函数。类似函数通过调用 reset_peak_memory_stats 函数实现,重置所有 CUDA 内存分配器跟踪的峰值统计。PaddlePaddle 仅重置由 Allocator 管理的显存峰值统计),参数完全一致(PyTorch 参数是 PaddlePaddle 参数子集),具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ |-----------------------------------------------------------------------| -| device | device | PyTorch 支持 torch.device 和 int。 PaddlePaddle 支持 paddle.CUDAPlace、int 、str。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.set_stream.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.set_stream.md index c2ea18bae0a..5828df108a9 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.set_stream.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.set_stream.md @@ -1,4 +1,4 @@ -## [参数完全一致]torch.cuda.set_stream +## [仅 API 调用方式不一致]torch.cuda.set_stream ### [torch.cuda.set_stream](https://pytorch.org/docs/stable/generated/torch.cuda.set_stream.html#torch.cuda.set_stream) @@ -13,9 +13,3 @@ paddle.device.set_stream(stream=None) ``` 功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ------------------- | -| stream | stream | 希望设置的 stream。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.stream.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.stream.md index c1546b8116f..8e2a04bba21 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.stream.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.stream.md @@ -1,4 +1,4 @@ -## [参数完全一致]torch.cuda.stream +## [仅 API 调用方式不一致]torch.cuda.stream ### [torch.cuda.stream](https://pytorch.org/docs/stable/generated/torch.cuda.stream.html) @@ -13,8 +13,3 @@ paddle.device.stream_guard(stream) ``` 功能一致,参数完全一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| stream | stream | 指定的 CUDA stream。如果为 None,则不进行 stream 流切换。Paddle 的该 API 目前仅支持动态图模式。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.diag_embed.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.diag_embed.md deleted file mode 100644 index b0e965174af..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.diag_embed.md +++ /dev/null @@ -1,24 +0,0 @@ -## [ 参数完全一致 ] torch.diag_embed - -### [torch.diag_embed](https://pytorch.org/docs/stable/generated/torch.diag_embed.html) - -```python -torch.diag_embed(input, offset=0, dim1=-2, dim2=-1) -``` - -### [paddle.diag_embed](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/diag_embed_cn.html) - -```python -paddle.diag_embed(input, offset=0, dim1=- 2, dim2=- 1) -``` - -两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ----------- | ------------ | ----------------------------------------------------------------------------------------- | -| input | input | 输入变量,至少为 1D 数组,支持数据类型为 float32、float64、int32、int64。 | -| offset | offset | 从指定的二维平面中获取对角线的位置,默认值为 0,即主对角线。 | -| dim1 | dim1 | 填充对角线的二维平面的第一维,默认值为 -2。 | -| dim2 | dim2 | 填充对角线的二维平面的第二维,默认值为 -1。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.ReduceOp.MAX.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.ReduceOp.MAX.md deleted file mode 100644 index 514964ddb35..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.ReduceOp.MAX.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.distributed.ReduceOp.MAX - -### [torch.distributed.ReduceOp.MAX](https://pytorch.org/docs/stable/distributed.html#torch.distributed.ReduceOp) - -```python -torch.distributed.ReduceOp.MAX -``` - -### [paddle.distributed.ReduceOp.MAX](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/ReduceOp_cn.html#reduceop) - -```python -paddle.distributed.ReduceOp.MAX -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.ReduceOp.MIN.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.ReduceOp.MIN.md deleted file mode 100644 index 826a39a8d10..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.ReduceOp.MIN.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.distributed.ReduceOp.MIN - -### [torch.distributed.ReduceOp.MIN](https://pytorch.org/docs/stable/distributed.html#torch.distributed.ReduceOp) - -```python -torch.distributed.ReduceOp.MIN -``` - -### [paddle.distributed.ReduceOp.MIN](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/ReduceOp_cn.html#reduceop) - -```python -paddle.distributed.ReduceOp.MIN -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.ReduceOp.PRODUCT.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.ReduceOp.PRODUCT.md index db9ec75ecf0..a1534adc857 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.ReduceOp.PRODUCT.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.ReduceOp.PRODUCT.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torch.distributed.ReduceOp.PRODUCT +## [仅 API 调用方式不一致]torch.distributed.ReduceOp.PRODUCT ### [torch.distributed.ReduceOp.PRODUCT](https://pytorch.org/docs/stable/distributed.html#torch.distributed.ReduceOp) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.ReduceOp.SUM.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.ReduceOp.SUM.md deleted file mode 100644 index 8abdf62b256..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.ReduceOp.SUM.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.distributed.ReduceOp.SUM - -### [torch.distributed.ReduceOp.SUM](https://pytorch.org/docs/stable/distributed.html#torch.distributed.ReduceOp) - -```python -torch.distributed.ReduceOp.SUM -``` - -### [paddle.distributed.ReduceOp.SUM](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/ReduceOp_cn.html#reduceop) - -```python -paddle.distributed.ReduceOp.SUM -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.batch_isend_irecv.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.batch_isend_irecv.md deleted file mode 100644 index f466399ef61..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.batch_isend_irecv.md +++ /dev/null @@ -1,20 +0,0 @@ -## [参数完全一致]torch.distributed.batch_isend_irecv - -### [torch.distributed.batch_isend_irecv](https://pytorch.org/docs/stable/distributed.html#torch.distributed.batch_isend_irecv) - -```python -torch.distributed.batch_isend_irecv(p2p_op_list) -``` - -### [paddle.distributed.batch_isend_irecv](https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/distributed/communication/batch_isend_irecv.py#L134) - -```python -paddle.distributed.batch_isend_irecv(p2p_op_list) -``` - -功能一致,参数完全一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| p2p_op_list | p2p_op_list | p2p 操作列表。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.get_backend.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.get_backend.md deleted file mode 100644 index 18074098065..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.get_backend.md +++ /dev/null @@ -1,21 +0,0 @@ -## [参数完全一致]torch.distributed.get_backend - -### [torch.distributed.get_backend](https://pytorch.org/docs/stable/distributed.html#torch.distributed.get_backend) - -```python -torch.distributed.get_backend(group=None) -``` - -### [paddle.distributed.get_backend](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/get_backend_cn.html#get-backend) - -```python -paddle.distributed.get_backend(group=None) -``` - -其中功能一致, 参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ---- | -| group | group | 指定的通信组。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.get_rank.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.get_rank.md deleted file mode 100644 index 30d0a8782f4..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.get_rank.md +++ /dev/null @@ -1,21 +0,0 @@ -## [参数完全一致]torch.distributed.get_rank - -### [torch.distributed.get_rank](https://pytorch.org/docs/stable/distributed.html#torch.distributed.get_rank) - -```python -torch.distributed.get_rank(group=None) -``` - -### [paddle.distributed.get_rank](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/get_rank_cn.html) - -```python -paddle.distributed.get_rank(group=None) -``` - -其中功能一致, 参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -------- | -| group | group | 进程组。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.get_world_size.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.get_world_size.md deleted file mode 100644 index edf551e9cf7..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.get_world_size.md +++ /dev/null @@ -1,21 +0,0 @@ -## [参数完全一致]torch.distributed.get_world_size - -### [torch.distributed.get_world_size](https://pytorch.org/docs/stable/distributed.html#torch.distributed.get_world_size) - -```python -torch.distributed.get_world_size(group=None) -``` - -### [paddle.distributed.get_world_size](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/get_world_size_cn.html) - -```python -paddle.distributed.get_world_size(group=None) -``` - -其中功能一致, 参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -------- | -| group | group | 进程组。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.is_available.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.is_available.md deleted file mode 100644 index 8112fb6400c..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.is_available.md +++ /dev/null @@ -1,15 +0,0 @@ -## [无参数]torch.distributed.is_available - -### [torch.distributed.is_available](https://pytorch.org/docs/stable/distributed.html#torch.distributed.is_available) - -```python -torch.distributed.is_available() -``` - -### [paddle.distributed.is_available](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/is_available_cn.html#cn-api-paddle-distributed-is-available) - -```python -paddle.distributed.is_available() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.is_initialized.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.is_initialized.md deleted file mode 100644 index 2a69704e9c2..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.is_initialized.md +++ /dev/null @@ -1,24 +0,0 @@ -## [无参数]torch.distributed.is_initialized - -### [torch.distributed.is_initialized](https://pytorch.org/docs/stable/distributed.html#torch.distributed.is_initialized) - -```python -torch.distributed.is_initialized() -``` - -### [paddle.distributed.is_initialized](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/is_initialized_cn.html#is-initialized) - -```python -paddle.distributed.is_initialized() -``` - -两者功能一致,无参数。 - -### 转写示例 -```python -# PyTorch 写法 -torch.distributed.is_initialized() - -# Paddle 写法 -paddle.distributed.is_initialized() -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.is_nccl_available.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.is_nccl_available.md index f2bb6841402..777aa24acf7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.is_nccl_available.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.is_nccl_available.md @@ -1,4 +1,4 @@ -## [无参数]torch.distributed.is_nccl_available +## [仅 API 调用方式不一致]torch.distributed.is_nccl_available ### [torch.distributed.is_nccl_available](https://pytorch.org/docs/stable/distributed.html#torch.distributed.is_nccl_available) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributions.constraints.Constraint.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributions.constraints.Constraint.md index 4a17f8e9275..cafe402d38a 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributions.constraints.Constraint.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributions.constraints.Constraint.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torch.distributions.constraints.Constraint +## [仅 API 调用方式不一致]torch.distributions.constraints.Constraint ### [torch.distributions.constraints.Constraint](https://pytorch.org/docs/stable/distributions.html#module-torch.distributions.constraints) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributions.distribution.Distribution.log_prob.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributions.distribution.Distribution.log_prob.md index 094249a594d..dc64266f7ef 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributions.distribution.Distribution.log_prob.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributions.distribution.Distribution.log_prob.md @@ -1,4 +1,4 @@ -## [ 参数完全一致 ]torch.distributions.distribution.Distribution.log_prob +## [仅 API 调用方式不一致]torch.distributions.distribution.Distribution.log_prob ### [torch.distributions.distribution.Distribution.log\_prob](https://pytorch.org/docs/stable/distributions.html#torch.distributions.distribution.Distribution.log_prob) @@ -14,9 +14,3 @@ paddle.distribution.Distribution.log_prob(value) 功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ------------ | -| value | value | 输入 Tensor。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributions.kl.kl_divergence.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributions.kl.kl_divergence.md index cfed77b7d36..4ac679cd407 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributions.kl.kl_divergence.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributions.kl.kl_divergence.md @@ -1,4 +1,4 @@ -## [参数完全一致]torch.distributions.kl.kl_divergence +## [仅 API 调用方式不一致]torch.distributions.kl.kl_divergence ### [torch.distributions.kl.kl_divergence](https://pytorch.org/docs/stable/distributions.html?highlight=torch+distributions+kl+kl_divergence#torch.distributions.kl.kl_divergence) @@ -13,9 +13,3 @@ paddle.distribution.kl_divergence(p, q) ``` 功能一致,参数完全一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| p | p | 概率分布实例,继承于 Distribution 基类。| -| q | q | 概率分布实例,继承于 Distribution 基类。| diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.e.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.e.md deleted file mode 100644 index e20f4ce3cfb..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.e.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.e - -### [torch.e](https://github.com/pytorch/pytorch/blob/main/torch/__init__.py#L1815) - -```python -torch.e -``` - -### [paddle.e](https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/__init__.py#L787) - -```python -paddle.e -``` - -功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.einsum.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.einsum.md deleted file mode 100644 index 480e89f5e8c..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.einsum.md +++ /dev/null @@ -1,22 +0,0 @@ -## [参数完全一致]torch.einsum - -### [torch.einsum](https://pytorch.org/docs/stable/generated/torch.einsum.html#torch.einsum) - -```python -torch.einsum(equation, *operands) -``` - -### [paddle.einsum](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/einsum_cn.html) - -```python -paddle.einsum(equation, *operands) -``` - -其中功能一致, 参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| -------- | ------------ | ---------- | -| equation | equation | 求和标记。 | -| operands | operands | 输入张量。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.enable_grad.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.enable_grad.md deleted file mode 100644 index 14b280cd5f8..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.enable_grad.md +++ /dev/null @@ -1,12 +0,0 @@ -## [ 无参数 ]torch.enable_grad -### [torch.enable_grad](https://pytorch.org/docs/stable/generated/torch.enable_grad.html?highlight=enable_grad#torch.enable_grad) - -```python -torch.enable_grad() -``` - -### [paddle.enable_grad](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/enable_grad.html#enable-grad) - -```python -paddle.enable_grad() -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.float16.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.float16.md deleted file mode 100644 index 96810d8a09b..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.float16.md +++ /dev/null @@ -1,16 +0,0 @@ -## [ 无参数 ]torch.float16 - -### [torch.float16](https://github.com/pytorch/pytorch/tree/main/torch) - -```python -torch.float16 -``` - -### [paddle.float16](https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/framework/dtype.pyi#L30) - -```python -paddle.float16 -``` - -两者功能一致,无参数。 -注:该 API 也可直接转写为字符串形式:'float16'。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.float32.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.float32.md deleted file mode 100644 index 86aa1eff76d..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.float32.md +++ /dev/null @@ -1,16 +0,0 @@ -## [ 无参数 ]torch.float32 - -### [torch.float32](https://github.com/pytorch/pytorch/tree/main/torch) - -```python -torch.float32 -``` - -### [paddle.float32](https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/framework/dtype.pyi#L28) - -```python -paddle.float32 -``` - -两者功能一致,无参数。 -注:该 API 也可直接转写为字符串形式:'float32'。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.float64.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.float64.md deleted file mode 100644 index 00f6460ee1a..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.float64.md +++ /dev/null @@ -1,16 +0,0 @@ -## [ 无参数 ]torch.float64 - -### [torch.float64](https://github.com/pytorch/pytorch/tree/main/torch) - -```python -torch.float64 -``` - -### [paddle.float64](https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/framework/dtype.pyi#L29) - -```python -paddle.float64 -``` - -两者功能一致,无参数。 -注:该 API 也可直接转写为字符串形式:'float64'。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.ge.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.ge.md deleted file mode 100644 index 93d168e2fe5..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.ge.md +++ /dev/null @@ -1,34 +0,0 @@ -## [ 参数完全一致 ]torch.ge - -### [torch.ge](https://pytorch.org/docs/stable/generated/torch.ge.html) - -```python -torch.ge(input, other, *, out) -``` - -### [paddle.greater\_equal](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/greater_equal_cn.html#greater-equal) - -```python -paddle.greater_equal(x, y) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | --------------------------- | -| input | x | 输入 Tensor,仅参数名不一致。 | -| other | y | 输入 Tensor,仅参数名不一致。 | -| out | - | 表示输出的 Tensor ,Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### out 参数:指定输出 -``` python -# PyTorch 写法: -torch.ge(x, y, out=out) - -# Paddle 写法: -paddle.assign(paddle.greater_equal(x, y), out) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.get_default_dtype.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.get_default_dtype.md deleted file mode 100644 index 69a87deeceb..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.get_default_dtype.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.get_default_dtype - -### [torch.get_default_dtype](https://pytorch.org/docs/stable/generated/torch.get_default_dtype.html#torch-get-default-dtype) - -```python -torch.get_default_dtype() -``` - -### [paddle.get_default_dtype](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/get_default_dtype_cn.html#get-default-dtype) - -```python -paddle.get_default_dtype() -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.inf.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.inf.md deleted file mode 100644 index fcdebcc2c94..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.inf.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.inf - -### [torch.inf](https://github.com/pytorch/pytorch/blob/main/torch/__init__.py#L1815) - -```python -torch.inf -``` - -### [paddle.inf](https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/__init__.py#L784) - -```python -paddle.inf -``` - -功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.int16.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.int16.md deleted file mode 100644 index ec6593936aa..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.int16.md +++ /dev/null @@ -1,16 +0,0 @@ -## [ 无参数 ]torch.int16 - -### [torch.int16](https://github.com/pytorch/pytorch/tree/main/torch) - -```python -torch.int16 -``` - -### [paddle.int16](https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/framework/dtype.pyi#L24) - -```python -paddle.int16 -``` - -两者功能一致,无参数。 -注:该 API 也可直接转写为字符串形式:'int16'。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.int32.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.int32.md deleted file mode 100644 index c32c77826e7..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.int32.md +++ /dev/null @@ -1,16 +0,0 @@ -## [ 无参数 ]torch.int32 - -### [torch.int32](https://github.com/pytorch/pytorch/tree/main/torch) - -```python -torch.int32 -``` - -### [paddle.int32](https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/framework/dtype.pyi#L25) - -```python -paddle.int32 -``` - -两者功能一致,无参数。 -注:该 API 也可直接转写为字符串形式:'int32'。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.int64.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.int64.md deleted file mode 100644 index bba9a6c101e..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.int64.md +++ /dev/null @@ -1,16 +0,0 @@ -## [ 无参数 ]torch.int64 - -### [torch.int64](https://github.com/pytorch/pytorch/tree/main/torch) - -```python -torch.int64 -``` - -### [paddle.int64](https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/framework/dtype.pyi#L26) - -```python -paddle.int64 -``` - -两者功能一致,无参数。 -注:该 API 也可直接转写为字符串形式:'int64'。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.int8.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.int8.md deleted file mode 100644 index 814cb2da216..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.int8.md +++ /dev/null @@ -1,16 +0,0 @@ -## [ 无参数 ]torch.int8 - -### [torch.int8](https://github.com/pytorch/pytorch/tree/main/torch) - -```python -torch.int8 -``` - -### [paddle.int8](https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/framework/dtype.pyi#L23) - -```python -paddle.int8 -``` - -两者功能一致,无参数。 -注:该 API 也可直接转写为字符串形式:'int8'。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.is_grad_enabled.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.is_grad_enabled.md deleted file mode 100644 index 2ecf914b558..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.is_grad_enabled.md +++ /dev/null @@ -1,15 +0,0 @@ -## [无参数]torch.is_grad_enabled - -### [torch.is_grad_enabled](https://pytorch.org/docs/stable/generated/torch.is_grad_enabled.html?highlight=torch+is_grad_enabled#torch.is_grad_enabled) - -```python -torch.is_grad_enabled() -``` - -### [paddle.is_grad_enabled](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/is_grad_enabled_cn.html#is-grad-enabled) - -```python -paddle.is_grad_enabled() -``` - -功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.is_inference.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.is_inference.md index 575f9939c89..f3902e3b0df 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.is_inference.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.is_inference.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torch.is_inference +## [仅 API 调用方式不一致]torch.is_inference ### [torch.is_inference]() diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.manual_seed.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.manual_seed.md deleted file mode 100644 index 2d81cba98bc..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.manual_seed.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 参数完全一致 ] torch.manual_seed - -### [torch.manual_seed](https://pytorch.org/docs/stable/generated/torch.manual_seed.html#torch-manual-seed) - -```python -torch.manual_seed(seed) -``` - -### [paddle.seed](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/seed_cn.html) - -```python -paddle.seed(seed) -``` - -两者参数和用法完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| seed | seed | 要设置的的随机种子,两者参数和用法完全一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nan.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nan.md deleted file mode 100644 index f3c0dc04507..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nan.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.nan - -### [torch.nan](https://github.com/pytorch/pytorch/blob/main/torch/__init__.py#L1815) - -```python -torch.nan -``` - -### [paddle.nan](https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/__init__.py#L785) - -```python -paddle.nan -``` - -功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.newaxis.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.newaxis.md deleted file mode 100644 index b72e992aa90..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.newaxis.md +++ /dev/null @@ -1,16 +0,0 @@ -## [ 无参数 ]torch.newaxis - -### [torch.newaxis](https://github.com/pytorch/pytorch/blob/main/torch/__init__.py#L1814) - -```python -torch.newaxis - -``` - -### [paddle.newaxis](https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/__init__.py#L783) - -```python -paddle.newaxis -``` - -功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.AdaptiveAvgPool1d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.AdaptiveAvgPool1d.md index 1497c4b143e..c4340735d3a 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.AdaptiveAvgPool1d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.AdaptiveAvgPool1d.md @@ -1,4 +1,4 @@ -## [ 参数完全一致 ] torch.nn.AdaptiveAvgPool1d +## [仅 API 调用方式不一致] torch.nn.AdaptiveAvgPool1d ### [torch.nn.AdaptiveAvgPool1d](https://pytorch.org/docs/stable/generated/torch.nn.AdaptiveAvgPool1d.html) @@ -13,9 +13,3 @@ paddle.nn.AdaptiveAvgPool1D(output_size, name=None) ``` 两者功能一致,参数完全一致。 - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| output_size | output_size | 表示输出 Tensor 的 size 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.HuberLoss.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.HuberLoss.md index 5d287e7f1f8..a3a50ae36c7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.HuberLoss.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.HuberLoss.md @@ -1,4 +1,4 @@ -## [参数完全一致]torch.nn.HuberLoss +## [仅 API 调用方式不一致]torch.nn.HuberLoss ### [torch.nn.HuberLoss](https://pytorch.org/docs/stable/generated/torch.nn.HuberLoss.html#torch.nn.HuberLoss) @@ -13,10 +13,3 @@ paddle.nn.SmoothL1Loss(reduction='mean', delta=1.0, name=None) ``` 功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| --------- | ------------ | ------------------------------ | -| reduction | reduction | 指定应用于输出结果的计算方式。 | -| delta | delta | 损失的阈值参数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Identity.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Identity.md deleted file mode 100644 index 0a256b1ae27..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Identity.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 参数完全一致 ]torch.nn.Identity -### [torch.nn.Identity](https://pytorch.org/docs/stable/generated/torch.nn.Identity.html#identity) - -```python -torch.nn.Identity(*args, **kwargs) -``` - -### [paddle.nn.Identity](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Identity_cn.html#cn-api-paddle-nn-layer-common-identity) - -```python -paddle.nn.Identity(*args, **kwargs) -``` - -两者功能一致,参数用法一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ---------- | ------------ | ------------------------------------ | -| args | args | 任意的参数 | -|kwargs | kwargs | 任意的关键字参数 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.LogSigmoid.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.LogSigmoid.md deleted file mode 100644 index 352776fe8fc..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.LogSigmoid.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.nn.LogSigmoid - -### [torch.nn.LogSigmoid](https://pytorch.org/docs/stable/generated/torch.nn.LogSigmoid.html) - -```python -torch.nn.LogSigmoid(*args, **kwargs) -``` - -### [paddle.nn.LogSigmoid](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/LogSigmoid_cn.html#logsigmoid) - -```python -paddle.nn.LogSigmoid(name=None) -``` - -两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Module.apply.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Module.apply.md index 41f5d621ceb..40c4727525a 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Module.apply.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Module.apply.md @@ -1,4 +1,4 @@ -## [ 参数完全一致 ]torch.nn.Module.apply +## [仅 API 调用方式不一致]torch.nn.Module.apply ### [torch.nn.Module.apply](https://pytorch.org/docs/stable/generated/torch.nn.Module.html?highlight=torch+nn+module+apply#torch.nn.Module.apply) @@ -13,9 +13,3 @@ paddle.nn.Layer.apply(fn) ``` 两者功能一致,参数完全一致。 - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ----- | ---------- | ------------------------ | -| fn | fn | 表示应用于每个模块的函数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Module.children.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Module.children.md index 7ae406dcfd3..d1b7cf114fe 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Module.children.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Module.children.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torch.nn.Module.children +## [仅 API 调用方式不一致]torch.nn.Module.children ### [torch.nn.Module.children](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.children) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Module.eval.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Module.eval.md index ee353d06b07..b246d8538ad 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Module.eval.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Module.eval.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torch.nn.Module.eval +## [仅 API 调用方式不一致]torch.nn.Module.eval ### [torch.nn.Module.eval](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.eval) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Module.named_children.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Module.named_children.md index cdac50af2a8..48ad1115187 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Module.named_children.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Module.named_children.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torch.nn.Module.named_children +## [仅 API 调用方式不一致]torch.nn.Module.named_children ### [torch.nn.Module.named_children](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.named_children) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Module.train.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Module.train.md index ef6d1e43cb3..981f646b88d 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Module.train.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Module.train.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torch.nn.Module.train +## [仅 API 调用方式不一致]torch.nn.Module.train ### [torch.nn.Module.train](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.train) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Sigmoid.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Sigmoid.md deleted file mode 100644 index 77797d8079d..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Sigmoid.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.nn.Sigmoid - -### [torch.nn.Sigmoid](https://pytorch.org/docs/stable/generated/torch.nn.Sigmoid.html) - -```python -torch.nn.Sigmoid(*args, **kwargs) -``` - -### [paddle.nn.Sigmoid](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/Sigmoid_cn.html#sigmoid) - -```python -paddle.nn.Sigmoid(name=None) -``` - -两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Softplus.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Softplus.md deleted file mode 100644 index 217e96558cb..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Softplus.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ 参数完全一致 ] torch.nn.Softplus - -### [torch.nn.Softplus](https://pytorch.org/docs/stable/generated/torch.nn.Softplus.html) - -```python -torch.nn.Softplus(beta=1, threshold=20) -``` - -### [paddle.nn.Softplus](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/Softplus_cn.html) - -```python -paddle.nn.Softplus(beta=1, threshold=20, name=None) -``` - -两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| beta | beta | Softplus 公式的 beta 值。 | -| threshold | threshold | 恢复线性公式的阈值。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Softsign.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Softsign.md deleted file mode 100644 index 633fc2daaf2..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Softsign.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.nn.Softsign - -### [torch.nn.Softsign](https://pytorch.org/docs/stable/generated/torch.nn.Softsign.html) - -```python -torch.nn.Softsign(*args, **kwargs) -``` - -### [paddle.nn.Softsign](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/Softsign_cn.html) - -```python -paddle.nn.Softsign(name=None) -``` - -两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Tanh.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Tanh.md deleted file mode 100644 index 656a1323a5a..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Tanh.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.nn.Tanh - -### [torch.nn.Tanh](https://pytorch.org/docs/stable/generated/torch.nn.Tanh.html) - -```python -torch.nn.Tanh(*args, **kwargs) -``` - -### [paddle.nn.Tanh](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/Tanh_cn.html) - -```python -paddle.nn.Tanh(name=None) -``` - -两者功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Tanhshrink.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Tanhshrink.md deleted file mode 100644 index 3bf82caac8e..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Tanhshrink.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ] torch.nn.Tanhshrink - -### [torch.nn.Tanhshrink](https://pytorch.org/docs/stable/generated/torch.nn.Tanhshrink.html) - -```python -torch.nn.Tanhshrink(*args, **kwargs) -``` - -### [paddle.nn.Tanhshrink](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/Tanhshrink_cn.html) - -```python -paddle.nn.Tanhshrink(name=None) -``` - -两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.TransformerDecoder.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.TransformerDecoder.md deleted file mode 100644 index 1c255b44149..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.TransformerDecoder.md +++ /dev/null @@ -1,23 +0,0 @@ -## [参数完全一致]torch.nn.TransformerDecoder - -### [torch.nn.TransformerDecoder](https://pytorch.org/docs/stable/generated/torch.nn.TransformerDecoder.html#transformerdecoder) - -```python -torch.nn.TransformerDecoder(decoder_layer, num_layers, norm=None) -``` - -### [paddle.nn.TransformerDecoder](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/TransformerDecoder_cn.html) - -```python -paddle.nn.TransformerDecoder(decoder_layer, num_layers, norm=None) -``` - -其中功能一致, 参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| -------------------- | ------------- | ------------------------------------------ | -| decoder_layer | decoder_layer | TransformerDecoderLayer 的一个实例。 | -| num_layers | num_layers | TransformerDecoderLayer 层的叠加数量。 | -| norm | norm | 层标准化(Layer Normalization)。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.TripletMarginWithDistanceLoss.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.TripletMarginWithDistanceLoss.md deleted file mode 100644 index 500386dd973..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.TripletMarginWithDistanceLoss.md +++ /dev/null @@ -1,24 +0,0 @@ -## [ 参数完全一致 ] torch.nn.TripletMarginWithDistanceLoss - -### [torch.nn.TripletMarginWithDistanceLoss](https://pytorch.org/docs/stable/generated/torch.nn.TripletMarginWithDistanceLoss.html) - -```python -torch.nn.TripletMarginWithDistanceLoss(*, distance_function=None, margin=1.0, swap=False, reduction='mean') -``` - -### [paddle.nn.TripletMarginWithDistanceLoss](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/TripletMarginWithDistanceLoss_cn.html#tripletmarginwithdistanceloss) - -```python -paddle.nn.TripletMarginWithDistanceLoss(distance_function=None, margin: float = 1.0, swap: bool = False, reduction: str = 'mean', name: str = None) -``` - -两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ----------------- | ------------ | ---------------------------------------------- | -| distance_function | distance_function | 手动指定范数,参数完全一致。 | -| margin | margin | 手动指定间距,参数完全一致。 | -| swap | swap | 默认为 False。 | -| reduction | reduction | 指定应用于输出结果的计算方式,参数完全一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.init.calculate_gain.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.init.calculate_gain.md deleted file mode 100644 index caf41fc41ca..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.init.calculate_gain.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ 参数完全一致 ] torch.nn.init.calculate_gain - -### [torch.nn.init.calculate_gain](https://pytorch.org/docs/stable/nn.init.html?highlight=gain#torch.nn.init.calculate_gain) - -```python -torch.nn.init.calculate_gain(nonlinearity, param=None) -``` - -### [paddle.nn.initializer.calculate_gain](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/initializer/calculate_gain_cn.html) - -```python -paddle.nn.initializer.calculate_gain(nonlinearity, param=None) -``` - -两者参数和用法完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| nonlinearity | nonlinearity | 非线性激活函数的名称,两者参数和用法完全一致。 | -| param | param | 某些激活函数的参数,默认为 None,两者参数和用法完全一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.utils.parameters_to_vector.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.utils.parameters_to_vector.md deleted file mode 100644 index 7b0caf0defe..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.utils.parameters_to_vector.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 参数完全一致 ]torch.nn.utils.parameters_to_vector - -### [torch.nn.utils.parameters_to_vector](https://pytorch.org/docs/stable/generated/torch.nn.utils.parameters_to_vector.html#torch-nn-utils-parameters-to-vector) - -```python -torch.nn.utils.parameters_to_vector(parameters) -``` - -### [paddle.nn.utils.parameters_to_vector](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/utils/parameters_to_vector_cn.html#parameters-to-vector) - -```python -paddle.nn.utils.parameters_to_vector(parameters, name=None) -``` - -两者功能一致,参数用法一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| -------------- | ------------ | ------------------------------------------------------------- | -| parameters | parameters | 可迭代的多个 parameter。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.utils.vector_to_parameters.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.utils.vector_to_parameters.md deleted file mode 100644 index 1cd33ec4f70..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.utils.vector_to_parameters.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ 参数完全一致 ]torch.nn.utils.vector_to_parameters - -### [torch.nn.utils.vector_to_parameters](https://pytorch.org/docs/stable/generated/torch.nn.utils.vector_to_parameters.html#torch-nn-utils-vector-to-parameters) - -```python -torch.nn.utils.vector_to_parameters(vec, parameters) -``` - -### [paddle.nn.utils.vector_to_parameters](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/utils/vector_to_parameters_cn.html#vector-to-parameters) - -```python -paddle.nn.utils.vector_to_parameters(vec, parameters, name=None) -``` - -两者功能一致,参数用法一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| -------------- | ------------ | ------------------------------------------------------------- | -| vec | vec | 一个 1-D Tensor,它将被切片并复制到输入参数(input parameters)中。 | -| parameters | parameters | 可迭代的多个 parameter。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.numel.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.numel.md index 48870a16b1e..8e6b48b6244 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.numel.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.numel.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torch.numel +## [仅 API 调用方式不一致]torch.numel ### [torch.numel](https://pytorch.org/docs/stable/generated/torch.numel.html?highlight=numel#torch.numel) ```python diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.optim.Optimizer.add_param_group.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.optim.Optimizer.add_param_group.md index 28c7cefb01b..a8899837828 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.optim.Optimizer.add_param_group.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.optim.Optimizer.add_param_group.md @@ -1,4 +1,4 @@ -## [ 参数完全一致 ]torch.optim.Optimizer.add_param_group +## [仅 API 调用方式不一致]torch.optim.Optimizer.add_param_group ### [torch.optim.Optimizer.add_param_group](https://pytorch.org/docs/stable/generated/torch.optim.Optimizer.add_param_group.html?highlight=torch+optim+optimizer+add_param_group#torch.optim.Optimizer.add_param_group) @@ -13,9 +13,3 @@ paddle.optimizer.Optimizer._add_param_group(param_group) ``` 参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------ | ------------ | ------------------------------------------------------------------- | -| param_group | param_group | 被添加的参数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.optim.Optimizer.load_state_dict.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.optim.Optimizer.load_state_dict.md index 26d0b119353..0577a4b9e03 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.optim.Optimizer.load_state_dict.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.optim.Optimizer.load_state_dict.md @@ -1,4 +1,4 @@ -## [ 参数完全一致 ]torch.optim.Optimizer.load_state_dict +## [仅 API 调用方式不一致]torch.optim.Optimizer.load_state_dict ### [torch.optim.Optimizer.load_state_dict](https://pytorch.org/docs/stable/generated/torch.optim.Optimizer.load_state_dict.html#torch.optim.Optimizer.load_state_dict) @@ -13,9 +13,3 @@ paddle.optimizer.Optimizer.load_state_dict(state_dict) ``` 两者功能一致,参数完全一致。 - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| -------- | ---------- | ---------------- | -| state_dict | state_dict | 表示优化器的状态。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.optim.Optimizer.state_dict.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.optim.Optimizer.state_dict.md index 0f741b30cfa..1a0095e7ba1 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.optim.Optimizer.state_dict.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.optim.Optimizer.state_dict.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torch.optim.Optimizer.state_dict +## [仅 API 调用方式不一致]torch.optim.Optimizer.state_dict ### [torch.optim.Optimizer.state_dict](https://pytorch.org/docs/stable/generated/torch.optim.Optimizer.state_dict.html?highlight=torch+optim+optimizer+state_dict#torch.optim.Optimizer.state_dict) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.pi.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.pi.md deleted file mode 100644 index c378839ba68..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.pi.md +++ /dev/null @@ -1,15 +0,0 @@ -## [ 无参数 ]torch.pi - -### [torch.pi](https://github.com/pytorch/pytorch) - -```python -torch.pi -``` - -### [paddle.pi](https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/__init__.py#L786) - -```python -paddle.pi -``` - -功能一致,无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.set_default_dtype.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.set_default_dtype.md deleted file mode 100644 index 69e92944b56..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.set_default_dtype.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 参数完全一致 ] torch.set_default_dtype - -### [torch.set_default_dtype](https://pytorch.org/docs/stable/generated/torch.set_default_dtype.html) - -```python -torch.set_default_dtype(d) -``` - -### [paddle.set_default_dtype](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/set_default_dtype_cn.html) - -```python -paddle.set_default_dtype(d) -``` - -两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ----------- | ------------ | ----------------------------------------------------------------------------------------- | -| d | d | 全局默认数据类型,torch 支持 float32 和 float64,paddle 支持 bfloat16、float16、float32 和 float64。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.t.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.t.md deleted file mode 100644 index 7adc9490d58..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.t.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ 参数完全一致 ] torch.t - -### [torch.t](https://pytorch.org/docs/stable/generated/torch.t.html) - -```python -torch.t(input) -``` - -### [paddle.t](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/t_cn.html) - -```python -paddle.t(input, name=None) -``` - -两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ----------- | ------------ | --------------------------- | -| input | input | 要转置的矩阵,维度不大于 2。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.unit8.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.unit8.md deleted file mode 100644 index f535ce0ac84..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.unit8.md +++ /dev/null @@ -1,16 +0,0 @@ -## [ 无参数 ]torch.uint8 - -### [torch.uint8](https://github.com/pytorch/pytorch/tree/main/torch) - -```python -torch.uint8 -``` - -### [paddle.uint8](https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/framework/dtype.pyi#L22) - -```python -paddle.uint8 -``` - -两者功能一致,无参数。 -注:该 API 也可直接转写为字符串形式:'uint8'。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.cpp_extension.BuildExtension.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.cpp_extension.BuildExtension.md deleted file mode 100644 index f73da7b8aab..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.cpp_extension.BuildExtension.md +++ /dev/null @@ -1,20 +0,0 @@ -## [ 参数完全一致 ]torch.utils.cpp_extension.BuildExtension -### [torch.utils.cpp_extension.BuildExtension](https://pytorch.org/docs/stable/cpp_extension.html?highlight=cpp_extension#torch.utils.cpp_extension.BuildExtension) - -```python -torch.utils.cpp_extension.BuildExtension(*args, **kwargs) -``` - -### [paddle.utils.cpp_extension.BuildExtension]() - -```python -paddle.utils.cpp_extension.BuildExtension(*args, **kwargs) -``` - -参数完全一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -|*args | *args | 用于指定 BuildExtension 的其他参数,支持的参数与 setuptools.command.build_ext 一致。 | -| **kwargs | **kwargs | 用于指定 BuildExtension 的其他参数,支持的参数与 setuptools.command.build_ext 一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.cpp_extension.BuildExtension.with_options.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.cpp_extension.BuildExtension.with_options.md deleted file mode 100644 index 326d360a0af..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.cpp_extension.BuildExtension.with_options.md +++ /dev/null @@ -1,18 +0,0 @@ -## [ 参数完全一致 ]torch.utils.cpp_extension.BuildExtension.with_options -### [torch.utils.cpp_extension.BuildExtension.with_options]() -```python -torch.utils.cpp_extension.BuildExtension.with_options(**options) -``` - -### [paddle.utils.cpp_extension.BuildExtension.with_options]() - -```python -paddle.utils.cpp_extension.BuildExtension.with_options(**options) -``` - -参数完全一致,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| **options | **options | 用户自定义的选项 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.cpp_extension.CUDA_HOME.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.cpp_extension.CUDA_HOME.md deleted file mode 100644 index 53411dc9e2c..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.cpp_extension.CUDA_HOME.md +++ /dev/null @@ -1,14 +0,0 @@ -## [ 无参数 ]torch.utils.cpp_extension.CUDA_HOME -### [torch.utils.cpp_extension.CUDA_HOME]() - -```python -torch.utils.cpp_extension.CUDA_HOME -``` - -### [paddle.utils.cpp_extension.cpp_extension.CUDA_HOME]() - -```python -paddle.utils.cpp_extension.cpp_extension.CUDA_HOME -``` - -无参数,查找本地 cuda 的安装路径。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.ChainDataset.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.ChainDataset.md index ad8d382c43d..0757facfeac 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.ChainDataset.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.ChainDataset.md @@ -1,4 +1,4 @@ -## [参数完全一致]torch.utils.data.ChainDataset +## [仅 API 调用方式不一致]torch.utils.data.ChainDataset ### [torch.utils.data.ChainDataset](https://pytorch.org/docs/stable/data.html#torch.utils.data.ChainDataset) @@ -13,9 +13,3 @@ paddle.io.ChainDataset(datasets) ``` paddle 参数和 torch 参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ----------- | ------------ | ------------------------------------- | -| datasets | datasets | 待级联的多个数据集 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.ConcatDataset.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.ConcatDataset.md index 49f30b92891..c1e2539f8a1 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.ConcatDataset.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.ConcatDataset.md @@ -1,4 +1,4 @@ -## [参数完全一致]torch.utils.data.ConcatDataset +## [仅 API 调用方式不一致]torch.utils.data.ConcatDataset ### [torch.utils.data.ConcatDataset](https://pytorch.org/docs/stable/data.html#torch.utils.data.ConcatDataset) @@ -13,9 +13,3 @@ paddle.io.ConcatDataset(datasets) ``` paddle 参数和 torch 参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| -------- | ------------ | ------------------ | -| datasets | datasets | 待拼接的数据集序列 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.Dataset.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.Dataset.md index 6b0ae08c8b3..7d0300dca61 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.Dataset.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.Dataset.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torch.utils.data.Dataset +## [仅 API 调用方式不一致]torch.utils.data.Dataset ### [torch.utils.data.Dataset](https://pytorch.org/docs/stable/data.html?highlight=torch%20utils%20data%20dataset#torch.utils.data.Dataset) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.IterableDataset.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.IterableDataset.md index c0f7894e9c2..af29e29ef7c 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.IterableDataset.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.IterableDataset.md @@ -1,4 +1,4 @@ -## [无参数]torch.utils.data.IterableDataset +## [仅 API 调用方式不一致]torch.utils.data.IterableDataset ### [torch.utils.data.IterableDataset](https://pytorch.org/docs/stable/data.html#torch.utils.data.IterableDataset) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.RandomSampler.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.RandomSampler.md index 36902daceb2..46186efbd31 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.RandomSampler.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.RandomSampler.md @@ -1,4 +1,4 @@ -## [ 参数完全一致 ] torch.utils.data.RandomSampler +## [仅 API 调用方式不一致] torch.utils.data.RandomSampler ### [torch.utils.data.RandomSampler](https://pytorch.org/docs/stable/data.html#torch.utils.data.RandomSampler) @@ -13,12 +13,3 @@ paddle.io.RandomSampler(data_source, replacement=False, num_samples=None, genera ``` 两者参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ----------- | ------------ | -------------------------------------------------------------------- | -| data_source | data_source | Dataset 或 IterableDataset 的一个子类实例或实现了 `__len__` 的 Python 对象。 | -| replacement | replacement | 如果为 False 则会采样整个数据集。 | -| num_samples | num_samples | 按此参数采集对应的样本数。 | -| generator | generator | 指定采样 data_source 的采样器。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.Sampler.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.Sampler.md index bdb5019b13f..85ad9595ebf 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.Sampler.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.Sampler.md @@ -1,4 +1,4 @@ -## [参数完全一致]torch.utils.data.Sampler +## [仅 API 调用方式不一致]torch.utils.data.Sampler ### [torch.utils.data.Sampler](https://pytorch.org/docs/stable/data.html#torch.utils.data.Sampler) @@ -13,9 +13,3 @@ paddle.io.Sampler(data_source) ``` paddle 参数和 torch 参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ----------- | ------------ | -------------------------------------- | -| data_source | data_source | Dataset 或者 IterableDataset 的子类实现。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.SequentialSampler.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.SequentialSampler.md index 59c6da3785d..3e1d112e696 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.SequentialSampler.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.SequentialSampler.md @@ -1,4 +1,4 @@ -## [ 参数完全一致 ]torch.utils.data.SequentialSampler +## [仅 API 调用方式不一致]torch.utils.data.SequentialSampler ### [torch.utils.data.SequentialSampler](https://pytorch.org/docs/stable/generated/torch.utils.data.SequentialSampler.html) @@ -13,9 +13,3 @@ paddle.io.SequenceSampler(data_source) ``` 功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ----------- | ------------ | -- | -| data_source | data_source | Dataset 或 IterableDataset 的一个子类实例或实现了 `__len__` 的 Python 对象。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.Subset.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.Subset.md index 3290a99b5f0..d6db718284c 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.Subset.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.Subset.md @@ -1,4 +1,4 @@ -## [参数完全一致]torch.utils.data.Subset +## [仅 API 调用方式不一致]torch.utils.data.Subset ### [torch.utils.data.Subset](https://pytorch.org/docs/stable/data.html#torch.utils.data.Subset) @@ -13,10 +13,3 @@ paddle.io.Subset(dataset, indices) ``` paddle 参数和 torch 参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ---------- | ----------- | ------------------------------------- | -| dataset | dataset | 原数据集 | -| indices | indices | 用于提取子集的原数据集合指标数组 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.WeightedRandomSampler.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.WeightedRandomSampler.md index b64daa8a6ef..42db84f75f5 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.WeightedRandomSampler.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.WeightedRandomSampler.md @@ -1,4 +1,4 @@ -## [参数完全一致] torch.utils.data.WeightedRandomSampler +## [仅 API 调用方式不一致] torch.utils.data.WeightedRandomSampler ### [torch.utils.data.WeightedRandomSampler](https://pytorch.org/docs/stable/data.html#torch.utils.data.WeightedRandomSampler) @@ -18,12 +18,3 @@ paddle.io.WeightedRandomSampler(weights, ``` 两者参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ----------- | ------------ | -------------------------------------------------------------------- | -| weights | weights | 权重序列,需要时 numpy 数组, paddle.Tensor, list 或者 tuple 类型。 | -| num_samples | num_samples | 采样样本数。 | -| replacement | replacement | 是否采用有放回的采样。 | -| generator | - | Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.get_worker_info.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.get_worker_info.md index 14c581f12cf..5da8a2ccef6 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.get_worker_info.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.get_worker_info.md @@ -1,4 +1,4 @@ -## [无参数]torch.utils.data.get_worker_info +## [仅 API 调用方式不一致]torch.utils.data.get_worker_info ### [torch.utils.data.get_worker_info](https://pytorch.org/docs/stable/data.html#torch.utils.data.get_worker_info) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.random_split.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.random_split.md index 9baa9243a7b..ebadef9dbc2 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.random_split.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.random_split.md @@ -1,4 +1,4 @@ -## [ 参数完全一致 ]torch.utils.data.random_split +## [仅 API 调用方式不一致]torch.utils.data.random_split ### [torch.utils.data.random_split](https://pytorch.org/docs/stable/data.html?highlight=torch+utils+data+random_split#torch.utils.data.random_split) ```python @@ -16,11 +16,3 @@ paddle.io.random_split(dataset, ``` 两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ |---------------------------------------------------------------------| -| dataset | dataset | 表示可迭代数据集。 | -| lengths | lengths | 可为子集合长度列表,列表总和为原数组长度。也可为子集合所占比例列表,列表总和为 1.0。 | -| generator | generator | 指定采样 data_source 的采样器。默认值为 None。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.ops.RoIPool.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.ops.RoIPool.md index 4cf4d5b1a2e..3c150e9ed29 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.ops.RoIPool.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.ops.RoIPool.md @@ -1,4 +1,4 @@ -## [参数完全一致]torchvision.ops.RoIPool +## [仅 API 调用方式不一致]torchvision.ops.RoIPool ### [torchvision.ops.RoIPool](https://pytorch.org/vision/main/generated/torchvision.ops.RoIPool.html) @@ -13,10 +13,3 @@ paddle.vision.ops.RoIPool(output_size, spatial_scale=1.0) ``` 功能一致,参数完全一致,具体如下: - -### 参数映射 - -| torchvision | PaddlePaddle | 备注 | -| ------------------------------------- | ------------------ | -------- | -| output_size | output_size | 池化后输出的尺寸。| -| spatial_scale | spatial_scale | 空间比例因子。| diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transform.functional.pad.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transform.functional.pad.md index 4c54f6111f7..5b0b2b3fd3b 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transform.functional.pad.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transform.functional.pad.md @@ -1,4 +1,4 @@ -## [参数完全一致]torchvision.transforms.functional.pad +## [仅 API 调用方式不一致]torchvision.transforms.functional.pad ### [torchvision.transforms.functional.pad](https://pytorch.org/vision/main/generated/torchvision.transforms.functional.pad.html) @@ -23,12 +23,3 @@ paddle.vision.transforms.pad( ``` 功能一致,参数完全一致,具体如下: - -### 参数映射 - -| torchvision | PaddlePaddle| 备注 | -| ---------------- | ---------------------------------------------------- | ------------------------------------------------------------ | -| img | img | 被填充的图像。| -| padding | padding | 在图像边界上进行填充的范围。 | -| fill | fill | 用于填充的像素值。 | -| padding_mode | padding_mode | 填充模式。| diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.Compose.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.Compose.md index 9f7673db411..5fc3840a5ab 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.Compose.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.Compose.md @@ -1,4 +1,4 @@ -## [参数完全一致]torchvision.transforms.Compose +## [仅 API 调用方式不一致]torchvision.transforms.Compose ### [torchvision.transforms.Compose](https://pytorch.org/vision/main/generated/torchvision.transforms.Compose.html) @@ -17,9 +17,3 @@ paddle.vision.transforms.Compose( ``` 功能一致,参数完全一致,具体如下: - -### 参数映射 - -| torchvision | PaddlePaddle | 备注 | -| ------------------- | ------------------------ | ---------------------------------------- | -| transforms | transforms | 用于组合的数据预处理接口实例列表。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.BICUBIC.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.BICUBIC.md index 98ca3ce29a2..d2b494fb430 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.BICUBIC.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.BICUBIC.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torchvision.transforms.InterpolationMode.BICUBIC +## [仅 API 调用方式不一致]torchvision.transforms.InterpolationMode.BICUBIC ### [torchvision.transforms.InterpolationMode.BICUBIC](https://pytorch.org/vision/stable/index.html) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.BILINEAR.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.BILINEAR.md index ee2ae73a4a9..5901e2eaa07 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.BILINEAR.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.BILINEAR.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torchvision.transforms.InterpolationMode.BILINEAR +## [仅 API 调用方式不一致]torchvision.transforms.InterpolationMode.BILINEAR ### [torchvision.transforms.InterpolationMode.BILINEAR](https://pytorch.org/vision/stable/index.html) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.BOX.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.BOX.md index 808f1c2e5b1..d3c2e4e1554 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.BOX.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.BOX.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torchvision.transforms.InterpolationMode.BOX +## [仅 API 调用方式不一致]torchvision.transforms.InterpolationMode.BOX ### [torchvision.transforms.InterpolationMode.BOX](https://pytorch.org/vision/stable/index.html) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.HAMMING.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.HAMMING.md index c29b69cf3bf..a4c5c5ef988 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.HAMMING.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.HAMMING.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torchvision.transforms.InterpolationMode.HAMMING +## [仅 API 调用方式不一致]torchvision.transforms.InterpolationMode.HAMMING ### [torchvision.transforms.InterpolationMode.HAMMING](https://pytorch.org/vision/stable/index.html) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.LANCZOS.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.LANCZOS.md index 4551de8acd5..fb4901344cb 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.LANCZOS.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.LANCZOS.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torchvision.transforms.InterpolationMode.LANCZOS +## [仅 API 调用方式不一致]torchvision.transforms.InterpolationMode.LANCZOS ### [torchvision.transforms.InterpolationMode.LANCZOS](https://pytorch.org/vision/stable/index.html) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.NEAREST.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.NEAREST.md index 437300f96f8..65ffed37b6f 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.NEAREST.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.NEAREST.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torchvision.transforms.InterpolationMode.NEAREST +## [仅 API 调用方式不一致]torchvision.transforms.InterpolationMode.NEAREST ### [torchvision.transforms.InterpolationMode.NEAREST](https://pytorch.org/vision/stable/index.html) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.NEAREST_EXACT.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.NEAREST_EXACT.md index f9525451642..d87c96d8d1a 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.NEAREST_EXACT.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.NEAREST_EXACT.md @@ -1,4 +1,4 @@ -## [ 无参数 ]torchvision.transforms.InterpolationMode.NEAREST_EXACT +## [仅 API 调用方式不一致]torchvision.transforms.InterpolationMode.NEAREST_EXACT ### [torchvision.transforms.InterpolationMode.NEAREST_EXACT](https://pytorch.org/vision/stable/index.html) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.adjust_brightness.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.adjust_brightness.md index 1e6ab740237..cb435c0937e 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.adjust_brightness.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.adjust_brightness.md @@ -1,4 +1,4 @@ -## [参数完全一致]torchvision.transforms.functional.adjust_brightness +## [仅 API 调用方式不一致]torchvision.transforms.functional.adjust_brightness ### [torchvision.transforms.functional.adjust_brightness](https://pytorch.org/vision/main/generated/torchvision.transforms.functional.adjust_brightness.html) @@ -16,10 +16,3 @@ paddle.vision.transforms.adjust_brightness( ``` 功能一致,参数完全一致,具体如下: - -### 参数映射 - -| torchvision | PaddlePaddle | 备注 | -| --------------------- | ----------------- | --------------------- | -| img | img | 输入的图像。 | -| brightness_factor | brightness_factor | 调整亮度的因子。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.adjust_contrast.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.adjust_contrast.md index 4ef4ae27a8f..2846443c13a 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.adjust_contrast.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.adjust_contrast.md @@ -1,4 +1,4 @@ -## [参数完全一致]torchvision.transforms.functional.adjust_contrast +## [仅 API 调用方式不一致]torchvision.transforms.functional.adjust_contrast ### [torchvision.transforms.functional.adjust_contrast](https://pytorch.org/vision/main/generated/torchvision.transforms.functional.adjust_contrast.html) @@ -16,10 +16,3 @@ paddle.vision.transforms.adjust_contrast( ``` 功能一致,参数完全一致,具体如下: - -### 参数映射 - -| torchvision | PaddlePaddle | 备注 | -| --------------------- | ----------------- | ---------------------------------------- | -| img | img | 输入的图像。 | -| contrast_factor | contrast_factor | 调整对比度的因子。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.adjust_hue.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.adjust_hue.md index af252951a0e..25c8f805ea3 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.adjust_hue.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.adjust_hue.md @@ -1,4 +1,4 @@ -## [参数完全一致]torchvision.transforms.functional.adjust_hue +## [仅 API 调用方式不一致]torchvision.transforms.functional.adjust_hue ### [torchvision.transforms.functional.adjust_hue](https://pytorch.org/vision/main/generated/torchvision.transforms.functional.adjust_hue.html) @@ -16,10 +16,3 @@ paddle.vision.transforms.adjust_hue( ``` 功能一致,参数完全一致,具体如下: - -### 参数映射 - -| torchvision | PaddlePaddle | 备注 | -| --------------------- | ----------------- | ---------------------------------------- | -| img | img | 输入的图像。 | -| hue_factor | hue_factor | 调整色调的因子。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.center_crop.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.center_crop.md index 2545d161741..b3f50036367 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.center_crop.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.center_crop.md @@ -1,4 +1,4 @@ -## [参数完全一致]torchvision.transforms.functional.center_crop +## [仅 API 调用方式不一致]torchvision.transforms.functional.center_crop ### [torchvision.transforms.functional.center_crop](https://pytorch.org/vision/main/generated/torchvision.transforms.functional.center_crop.html) @@ -16,10 +16,3 @@ paddle.vision.transforms.center_crop( ``` 两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| torchvision | PaddlePaddle | 备注 | -| ------------- | ------------- | ---------------- | -| img | img | 输入图片。 | -| output_size | output_size | 输出尺寸。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.crop.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.crop.md index 68073261a5e..d9523103378 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.crop.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.crop.md @@ -1,4 +1,4 @@ -## [参数完全一致]torchvision.transforms.functional.crop +## [仅 API 调用方式不一致]torchvision.transforms.functional.crop ### [torchvision.transforms.functional.crop](https://pytorch.org/vision/main/generated/torchvision.transforms.functional.crop.html) @@ -25,13 +25,3 @@ paddle.vision.transforms.crop( ``` 两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| torchvision | PaddlePaddle | 备注 | -| ----------- | ------------ | ---------------------------- | -| img | img | 输入图片。 | -| top | top | 要裁剪的矩形框左上方的坐标点的垂直方向的值。 | -| left | left | 要裁剪的矩形框左上方的坐标点的水平方向的值。 | -| height | height | 要裁剪的矩形框的高度值。 | -| width | width | 要裁剪的矩形框的宽度值。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.erase.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.erase.md index 120ab0d51ea..f1c3edb572e 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.erase.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.erase.md @@ -1,4 +1,4 @@ -## [参数完全一致]torchvision.transforms.functional.erase +## [仅 API 调用方式不一致]torchvision.transforms.functional.erase ### [torchvision.transforms.functional.erase](https://pytorch.org/vision/main/generated/torchvision.transforms.functional.erase.html?highlight=erase#torchvision.transforms.functional.erase) @@ -29,15 +29,3 @@ paddle.vision.transforms.erase( ``` 两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| torchvision | PaddlePaddle | 备注 | -| ----------- | --------------- | ------------------------------------------------------------ | -| img | img | 输入图片。 | -| i | i | 擦除区域左上角的纵坐标。 | -| j | j | 擦除区域左上角的横坐标。 | -| h | h | 擦除区域的高度。 | -| w | w | 擦除区域的宽度。 | -| v | v | 替换擦除区域中像素的值。 | -| inplace | inplace | 是否进行原地操作。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.hflip.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.hflip.md index b8487dc9338..f9b3a2df87a 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.hflip.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.hflip.md @@ -1,4 +1,4 @@ -## [参数完全一致]torchvision.transforms.functional.hflip +## [仅 API 调用方式不一致]torchvision.transforms.functional.hflip ### [torchvision.transforms.functional.hflip](https://pytorch.org/vision/main/generated/torchvision.transforms.functional.hflip.html) @@ -17,9 +17,3 @@ paddle.vision.transforms.hflip( ``` 两者功能一致,参数完全一致,具体如下: - -### 参数映射 - -| torchvision | PaddlePaddle | 备注 | -| ----------- | ------------ | ----------- | -| img | img | 输入图像。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.to_grayscale.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.to_grayscale.md index 92707f7a989..4fe083bed0f 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.to_grayscale.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.to_grayscale.md @@ -1,4 +1,4 @@ -## [参数完全一致]torchvision.transforms.functional.to_grayscale +## [仅 API 调用方式不一致]torchvision.transforms.functional.to_grayscale ### [torchvision.transforms.functional.to_grayscale](https://pytorch.org/vision/main/generated/torchvision.transforms.functional.to_grayscale.html?highlight=to_grayscale#torchvision.transforms.functional.to_grayscale) @@ -17,10 +17,3 @@ paddle.vision.transforms.to_grayscale( ``` 功能一致,参数完全一致,具体如下: - -### 参数映射 - -| torchvision | PaddlePaddle | 备注 | -|-------------------------- |------------------- |-------------------------- | -| img | img | 输入图像。 | -| num_output_channels | num_output_channels | 输出图像的通道数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.vflip.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.vflip.md index bd0ec35f60a..29d05d8d5ae 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.vflip.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.vflip.md @@ -1,4 +1,4 @@ -## [参数完全一致] torchvision.transforms.functional.vflip +## [仅 API 调用方式不一致] torchvision.transforms.functional.vflip ### [torchvision.transforms.functional.vflip](https://pytorch.org/vision/main/generated/torchvision.transforms.functional.vflip.html) @@ -17,9 +17,3 @@ paddle.vision.transforms.vflip( ``` 功能一致,参数完全一致,具体如下: - -### 参数映射 - -| torchvision | PaddlePaddle | 备注 | -| ----------- | --------------- | --------- | -| img | img | 输入图像。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.PreTrainedTokenizer.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.PreTrainedTokenizer.md index cd59dfb578a..db4ee8ffaa8 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.PreTrainedTokenizer.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.PreTrainedTokenizer.md @@ -1,4 +1,4 @@ -## [参数完全一致]transformers.PreTrainedTokenizer +## [仅 API 调用方式不一致]transformers.PreTrainedTokenizer ### [transformers.PreTrainedTokenizer](https://hf-mirror.com/docs/transformers/v4.42.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer) @@ -13,9 +13,3 @@ paddlenlp.transformers.PretrainedTokenizer(**kwargs) ``` 功能一致,参数完全一致,具体如下: - -### 参数映射 - -| transformers | PaddlePaddle | 备注 | -| ------------ | ------------ | ---------------------- | -| kwargs | kwargs | 预训练分词器的输入,具体用法尚未分析。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.generation.LogitsProcessorList.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.generation.LogitsProcessorList.md index 9b280e43ab8..14430289480 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.generation.LogitsProcessorList.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.generation.LogitsProcessorList.md @@ -1,4 +1,4 @@ -## [无参数]transformers.generation.LogitsProcessorList +## [仅 API 调用方式不一致]transformers.generation.LogitsProcessorList ### [transformers.generation.LogitsProcessorList](https://hf-mirror.com/docs/transformers/v4.42.0/en/internal/generation_utils#transformers.LogitsProcessorList) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.generation.utils.GenerateOutput.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.generation.utils.GenerateOutput.md index 166a6dd18ee..53681fd6ea9 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.generation.utils.GenerateOutput.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.generation.utils.GenerateOutput.md @@ -1,4 +1,4 @@ -## [无参数]transformers.generation.utils.GenerateOutput +## [仅 API 调用方式不一致]transformers.generation.utils.GenerateOutput ### [transformers.generation.utils.GenerateOutput](https://github.com/huggingface/transformers/blob/v4.42.0/src/transformers/generation/utils.py#L345) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.modeling_outputs.BaseModelOutputWithPast.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.modeling_outputs.BaseModelOutputWithPast.md index a3e0523b24e..2627f439da5 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.modeling_outputs.BaseModelOutputWithPast.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.modeling_outputs.BaseModelOutputWithPast.md @@ -1,4 +1,4 @@ -## [参数完全一致]transformers.modeling_outputs.BaseModelOutputWithPast +## [仅 API 调用方式不一致]transformers.modeling_outputs.BaseModelOutputWithPast ### [transformers.modeling_outputs.BaseModelOutputWithPast](https://hf-mirror.com/docs/transformers/v4.42.0/en/main_classes/output#transformers.modeling_outputs.BaseModelOutputWithPast) @@ -14,12 +14,3 @@ paddlenlp.transformers.model_outputs.BaseModelOutputWithPast(last_hidden_state: 功能一致,参数完全一致,具体如下: - -### 参数映射 - -| transformers | PaddlePaddle | 备注 | -| ----------------- | ----------------------------------------------------- | ------------------------------------------------------- | -| last_hidden_state | last_hidden_state | 最后一个隐藏状态。默认值为 None。 | -| past_key_values | past_key_values | 过去的键值对。默认值为 None。 | -| hidden_states | hidden_states | 隐藏状态。默认值为 None。 | -| attentions | attentions | 注意力权重。默认值为 None。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.modeling_outputs.CausalLMOutputWithPast.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.modeling_outputs.CausalLMOutputWithPast.md index f0704ade977..1ce5daaaf26 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.modeling_outputs.CausalLMOutputWithPast.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.modeling_outputs.CausalLMOutputWithPast.md @@ -1,4 +1,4 @@ -## [参数完全一致]transformers.modeling_outputs.CausalLMOutputWithPast +## [仅 API 调用方式不一致]transformers.modeling_outputs.CausalLMOutputWithPast ### [transformers.modeling_outputs.CausalLMOutputWithPast](https://hf-mirror.com/docs/transformers/v4.42.0/en/main_classes/output#transformers.modeling_outputs.CausalLMOutputWithPast) @@ -13,12 +13,3 @@ paddlenlp.transformers.model_outputs.CausalLMOutputWithPast(loss: Optional[paddl ``` 功能一致,参数完全一致,具体如下: - -### 参数映射 -| transformers | PaddlePaddle | 备注 | -|-------------------|-------------------------------------------------------|---------------------------------------------------------| -| loss | loss | 损失值。默认值为 None。 | -| logits | logits | 模型输出的 logits。默认值为 None。 | -| past_key_values | past_key_values | 过去的键值对。默认值为 None。 | -| hidden_states | hidden_states | 隐藏状态。默认值为 None。 | -| attentions | attentions | 注意力权重。默认值为 None。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.utils.add_start_docstrings_to_model_forward.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.utils.add_start_docstrings_to_model_forward.md index 75772b1b196..670c7a13aa7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.utils.add_start_docstrings_to_model_forward.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.utils.add_start_docstrings_to_model_forward.md @@ -1,4 +1,4 @@ -## [参数完全一致]transformers.utils.add_start_docstrings_to_model_forward +## [仅 API 调用方式不一致]transformers.utils.add_start_docstrings_to_model_forward ### [transformers.utils.add_start_docstrings_to_model_forward](https://github.com/huggingface/transformers/blob/44b231671db25974cfebcdae34402ad5099bf37a/src/transformers/utils/doc.py#L45) @@ -13,9 +13,3 @@ paddlenlp.trainer.utils.add_start_docstrings_to_model_forward(*docstr) ``` 功能一致,参数完全一致,具体如下: - -### 参数映射 - -| transformers | PaddlePaddle | 备注 | -| ------------ | ------------ | ---------------------- | -| docstr | docstr | 输入的文档字符串。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.cuda.get_rng_state.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.cuda.get_rng_state.md deleted file mode 100644 index c28c60a81d1..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.cuda.get_rng_state.md +++ /dev/null @@ -1,41 +0,0 @@ -## [ 返回参数类型不一致 ]torch.cuda.get_rng_state -### [torch.cuda.get_rng_state](https://pytorch.org/docs/stable/generated/torch.cuda.get_rng_state.html#torch-cuda-get-rng-state) - -```python -torch.cuda.get_rng_state(device='cuda') -``` - -### [paddle.get_cuda_rng_state](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/get_cuda_rng_state_cn.html#get-cuda-rng-state) - -```python -paddle.get_cuda_rng_state() -``` - -torch 参数更多,并且 torch 与 paddle 的返回参数类型不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| device | - | 返回 RNG 状态的设备,Paddle 无此参数,需要转写。 | -| 返回值 | 返回值 | 返回参数类型不一致, PyTorch 返回 torch.ByteTensor,Paddle 返回 GeneratorState 对象列表。 | - -### 转写示例 - -#### 返回参数类型不同 - -```python -# PyTorch 写法,返回 torch.ByteTensor -x = torch.cuda.get_rng_state(device='cuda:0') - -# Paddle 写法,返回 GeneratorState 对象 -x = paddle.get_cuda_rng_state()[0] -``` - -```python -# PyTorch 写法,返回 torch.ByteTensor -x = torch.cuda.get_rng_state() - -# Paddle 写法,返回 GeneratorState 对象 -x = paddle.get_cuda_rng_state()[paddle.framework._current_expected_place().get_device_id()] -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.nn.functional.one_hot.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.nn.functional.one_hot.md deleted file mode 100644 index c7e0652cbd9..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.nn.functional.one_hot.md +++ /dev/null @@ -1,45 +0,0 @@ -## [ 返回参数类型不一致 ]torch.nn.functional.one_hot - -### [torch.nn.functional.one_hot](https://pytorch.org/docs/stable/generated/torch.nn.functional.one_hot.html?highlight=one_hot#torch.nn.functional.one_hot) - -```python -torch.nn.functional.one_hot(input, - num_classes=-1) -``` - -### [paddle.nn.functional.one_hot](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/one_hot_cn.html) - -```python -paddle.nn.functional.one_hot(x, - num_classes, - name=None) -``` - -两者功能一致,但 Paddle 的 num_classes 没有指定默认值,需要手动指定,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor 。 | -| num_classes | num_classes | 表示一个 one-hot 向量的长度, Paddle 无默认值,必须显式指定,需要转写。 | -| 返回值 | 返回值 | PyTorch 返回值类型为 int64,Paddle 返回值类型为 float32,需要转写。 | - -### 转写示例 -#### num_classes: one-hot 向量的长度 -```python -# PyTorch 写法 -y = torch.nn.functional.one_hot(x) - -# Paddle 写法 -y = paddle.nn.functional.one_hot(x, num_classes=x.max().item() + 1) -``` - -#### 返回值 -```python -# PyTorch 写法 -y = torch.nn.functional.one_hot(x, num_classes=2) - -# Paddle 写法 -y = paddle.nn.functional.one_hot(x, num_classes=2).astype('int64') -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.topk.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.topk.md deleted file mode 100644 index ded7e2e0375..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.topk.md +++ /dev/null @@ -1,50 +0,0 @@ -## [ 返回参数类型不一致 ]torch.topk - -### [torch.topk](https://pytorch.org/docs/stable/generated/torch.topk.html?highlight=topk#torch.topk) - -```python -torch.topk(input, - k, - dim=None, - largest=True, - sorted=True, - *, - out=None) -``` - -### [paddle.topk](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/topk_cn.html#paddle.topk) - -```python -paddle.topk(x, - k, - axis=None, - largest=True, - sorted=True, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,同时两个 api 的返回参数类型不同,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 输入的 Tensor ,仅参数名不一致。 | -| k | k | 在指定的轴上进行 top 寻找的数量, 参数名相同。 | -| dim | axis | 指定对输入 Tensor 进行运算的轴。默认值为-1, 仅参数名不一致。| -| largest | largest | 指定算法排序的方向。如果设置为 True,算法按照降序排序,否则按照升序排序。默认值为 True,参数名相同。 | -| sorted | sorted | 控制返回的结果是否按照有序返回,默认为 True。在 GPU 上总是返回有序的结果。参数名相同。 | -| out | - | 表示以(Tensor, LongTensor)输出的元组,含义是查找 topk 后的返回值和对应元素的索引。Paddle 无此参数,需要转写。 | - -注:PyTorch 返回 (Tensor, LongTensor),Paddle 返回 (Tensor, int64)。 - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.topk(input, k=1, dim=-1, out = (y, indices)) - -# Paddle 写法 -y, indices = paddle.topk(input, k=1, axis=-1) -indices = paddle.to_tensor(indices) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.BoolTensor.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.BoolTensor.md deleted file mode 100644 index cb55031dfb5..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.BoolTensor.md +++ /dev/null @@ -1,23 +0,0 @@ -## [ paddle 参数更多 ] torch.BoolTensor - -### [torch.BoolTensor](https://pytorch.org/docs/stable/tensors.html) - -```python -torch.BoolTensor(data) -``` - -### [paddle.to_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/to_tensor_cn.html#to-tensor) - -```python -paddle.to_tensor(data, dtype='bool', place='cpu') -``` - -Paddle 比 PyTorch 支持更多参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ----------------------------------------------------------- | -| data | data | 要转换的数据。 | -| - | dtype | Tensor 的数据类型,PyTorch 无此参数,Paddle 需设置为 'bool'。 | -| - | place | Tensor 的设备,PyTorch 无此参数,Paddle 需设置为 'cpu' 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.ByteTensor.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.ByteTensor.md deleted file mode 100644 index 78dac6e7fde..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.ByteTensor.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ paddle 参数更多 ] torch.ByteTensor - -### [torch.ByteTensor](https://pytorch.org/docs/stable/tensors.html) - -```python -torch.ByteTensor(data) -``` - -### [paddle.to_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/to_tensor_cn.html#to-tensor) - -```python -paddle.to_tensor(data, dtype='uint8', place='cpu') -``` - -Paddle 比 PyTorch 支持更多参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ----------------------------------------------------------- | -| - | dtype | Tensor 的数据类型,PyTorch 无此参数,Paddle 需设置为 'uint8'。 | -| - | place | Tensor 的设备,PyTorch 无此参数,Paddle 需设置为 'cpu' 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.DoubleTensor.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.DoubleTensor.md deleted file mode 100644 index 452c22e8f97..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.DoubleTensor.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ paddle 参数更多 ] torch.DoubleTensor - -### [torch.DoubleTensor](https://pytorch.org/docs/stable/tensors.html) - -```python -torch.DoubleTensor(data) -``` - -### [paddle.to_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/to_tensor_cn.html#to-tensor) - -```python -paddle.to_tensor(data, dtype='float64', place='cpu') -``` - -Paddle 比 PyTorch 支持更多参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ----------------------------------------------------------- | -| - | dtype | Tensor 的数据类型,PyTorch 无此参数,Paddle 需设置为 'float64'。 | -| - | place | Tensor 的设备,PyTorch 无此参数,Paddle 需设置为 'cpu' 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.FloatTensor.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.FloatTensor.md deleted file mode 100644 index 9736a0cd25d..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.FloatTensor.md +++ /dev/null @@ -1,23 +0,0 @@ -## [ paddle 参数更多 ] torch.FloatTensor - -### [torch.FloatTensor](https://pytorch.org/docs/stable/tensors.html) - -```python -torch.FloatTensor(data) -``` - -### [paddle.to_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/to_tensor_cn.html#to-tensor) - -```python -paddle.to_tensor(data, dtype='float32', place='cpu') -``` - -Paddle 比 PyTorch 支持更多参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ----------------------------------------------------------- | -| data | data | 要转换的数据。 | -| - | dtype | Tensor 的数据类型,PyTorch 无此参数,Paddle 需设置为 'float32'。 | -| - | place | Tensor 的设备,PyTorch 无此参数,Paddle 需设置为 'cpu' 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.HalfTensor.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.HalfTensor.md deleted file mode 100644 index ee78e829f7c..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.HalfTensor.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ paddle 参数更多 ] torch.HalfTensor - -### [torch.HalfTensor](https://pytorch.org/docs/stable/tensors.html) - -```python -torch.HalfTensor(data) -``` - -### [paddle.to_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/to_tensor_cn.html#to-tensor) - -```python -paddle.to_tensor(data, dtype='float16', place='cpu') -``` - -Paddle 比 PyTorch 支持更多参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ----------------------------------------------------------- | -| - | dtype | Tensor 的数据类型,PyTorch 无此参数,Paddle 需设置为 'float16'。 | -| - | place | Tensor 的设备,PyTorch 无此参数,Paddle 需设置为 'cpu' 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.IntTensor.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.IntTensor.md deleted file mode 100644 index ff612639a18..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.IntTensor.md +++ /dev/null @@ -1,23 +0,0 @@ -## [ paddle 参数更多 ] torch.IntTensor - -### [torch.IntTensor](https://pytorch.org/docs/stable/tensors.html) - -```python -torch.IntTensor(data) -``` - -### [paddle.to_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/to_tensor_cn.html#to-tensor) - -```python -paddle.to_tensor(data, dtype='int32', place='cpu') -``` - -Paddle 比 PyTorch 支持更多参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ----------------------------------------------------------- | -| data | data | 要转换的数据。 | -| - | dtype | Tensor 的数据类型,PyTorch 无此参数,Paddle 需设置为 'int32'。 | -| - | place | Tensor 的设备,PyTorch 无此参数,Paddle 需设置为 'cpu' 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.LongTensor.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.LongTensor.md deleted file mode 100644 index 77a43a451b0..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.LongTensor.md +++ /dev/null @@ -1,23 +0,0 @@ -## [ paddle 参数更多 ] torch.LongTensor - -### [torch.LongTensor](https://pytorch.org/docs/stable/tensors.html) - -```python -torch.LongTensor(data) -``` - -### [paddle.to_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/to_tensor_cn.html#to-tensor) - -```python -paddle.to_tensor(data, dtype='int64', place='cpu') -``` - -Paddle 比 PyTorch 支持更多参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ----------------------------------------------------------- | -| data | data | 要转换的数据。 | -| - | dtype | Tensor 的数据类型,PyTorch 无此参数,Paddle 需设置为 'int64'。 | -| - | place | Tensor 的设备,PyTorch 无此参数,Paddle 需设置为 'cpu' 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.ShortTensor.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.ShortTensor.md deleted file mode 100644 index deb9cf2fa07..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.ShortTensor.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ paddle 参数更多 ] torch.ShortTensor - -### [torch.ShortTensor](https://pytorch.org/docs/stable/tensors.html) - -```python -torch.ShortTensor(data) -``` - -### [paddle.to_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/to_tensor_cn.html#to-tensor) - -```python -paddle.to_tensor(data, dtype='int16', place='cpu') -``` - -Paddle 比 PyTorch 支持更多参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ----------------------------------------------------------- | -| - | dtype | Tensor 的数据类型,PyTorch 无此参数,Paddle 需设置为 'int16'。 | -| - | place | Tensor 的设备,PyTorch 无此参数,Paddle 需设置为 'cpu' 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.gather.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.gather.md deleted file mode 100644 index 3dc03dbadea..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.gather.md +++ /dev/null @@ -1,23 +0,0 @@ -## [ paddle 参数更多 ]torch.Tensor.gather - -### [torch.Tensor.gather](https://pytorch.org/docs/stable/generated/torch.Tensor.gather.html?highlight=gather#torch.Tensor.gather) - -```python -torch.Tensor.gather(dim, index) -``` - -### [paddle.Tensor.take_along_axis](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#take-along-axis-arr-indices-axis-broadcast-true) - -```python -paddle.Tensor.take_along_axis(indices, axis, broadcast=True) -``` - -其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ----------------------------------------- | -| dim | axis | 指定 index 获取输入的维度,仅参数名不一致。 | -| index | indices | 索引 Tensor,仅参数名不一致。 | -| - | broadcast | 表示是否需要广播 indices 矩阵,PyTorch 无此参数,Paddle 应设置为 False 结果才与 pytorch 一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.item.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.item.md deleted file mode 100644 index f7848485440..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.item.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ paddle 参数更多 ] torch.Tensor.item - -### [torch.Tensor.item](https://pytorch.org/docs/stable/generated/torch.Tensor.item.html#torch-tensor-item) - -```python -torch.Tensor.item() -``` - -### [paddle.Tensor.item](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#item-args) - -```python -paddle.Tensor.item(*args) -``` - -其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: - - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| - | *args | Tensor 的指定位置,保持默认即可。| diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.logical_and.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.logical_and.md deleted file mode 100644 index 41890d8aadc..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.logical_and.md +++ /dev/null @@ -1,24 +0,0 @@ -## [ paddle 参数更多 ] torch.Tensor.logical_and - -### [torch.Tensor.logical_and](https://pytorch.org/docs/stable/generated/torch.Tensor.logical_and.html) - -```python -torch.Tensor.logical_and(other) -``` - -### [paddle.Tensor.logical_and](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#logical-and-y-out-none-name-none) - -```python -paddle.Tensor.logical_and(y, - out=None, - name=None) -``` - -其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | --------------------------------------------- | -| other | y | 表示输入的 Tensor ,仅参数名不一致。 | -| - | out | 指定算子输出结果的 Tensor,可以是程序中已经创建的任何 Tensor。默认值为 None,此时将创建新的 Tensor 来保存输出结果。PyTorch 无此参数,Paddle 保持默认即可。| diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.logical_not.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.logical_not.md deleted file mode 100644 index 221367958ad..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.logical_not.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ paddle 参数更多 ] torch.Tensor.logical_not - -### [torch.Tensor.logical_not](https://pytorch.org/docs/stable/generated/torch.Tensor.logical_not.html) - -```python -torch.Tensor.logical_not() -``` - -### [paddle.Tensor.logical_not](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#logical-not-out-none-name-none) - -```python -paddle.Tensor.logical_not(out=None, - name=None) -``` - -其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ---------------------------------- | -| - | out | 指定算子输出结果的 Tensor,可以是程序中已经创建的任何 Tensor。默认值为 None,此时将创建新的 Tensor 来保存输出结果。PyTorch 无此参数,Paddle 保持默认即可。| diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.logical_or.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.logical_or.md deleted file mode 100644 index 89a998f8cab..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.logical_or.md +++ /dev/null @@ -1,24 +0,0 @@ -## [ paddle 参数更多 ] torch.Tensor.logical_or - -### [torch.Tensor.logical_or](https://pytorch.org/docs/stable/generated/torch.Tensor.logical_or.html) - -```python -torch.Tensor.logical_or(other) -``` - -### [paddle.Tensor.logical_or](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#logical-or-y-out-none-name-none) - -```python -paddle.Tensor.logical_or(y, - out=None, - name=None) -``` - -其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | --------------------------------------------- | -| other | y | 表示输入的 Tensor ,仅参数名不一致。 | -| - | out | 指定算子输出结果的 Tensor,可以是程序中已经创建的任何 Tensor。默认值为 None,此时将创建新的 Tensor 来保存输出结果。PyTorch 无此参数,Paddle 保持默认即可。| diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.matmul.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.matmul.md deleted file mode 100644 index e3d73b71998..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.matmul.md +++ /dev/null @@ -1,23 +0,0 @@ -## [ paddle 参数更多 ]torch.Tensor.matmul - -### [torch.Tensor.matmul](https://pytorch.org/docs/stable/generated/torch.Tensor.matmul.html) - -```python -torch.Tensor.matmul(other) -``` - -### [paddle.Tensor.matmul](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#matmul-y-transpose-x-false-transpose-y-false-name-none) - -```python -paddle.Tensor.matmul(y, transpose_x=False, transpose_y=False, name=None) -``` - -其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ---- | -| other | y | 输入变量,仅参数名不一致。 | -| - | transpose_x | 相乘前是否转置 x,PyTorch 无此参数,Paddle 保持默认即可。 | -| - | transpose_y | 相乘前是否转置 y,PyTorch 无此参数,Paddle 保持默认即可。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.ravel.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.ravel.md deleted file mode 100644 index 0f0c840b2ed..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.ravel.md +++ /dev/null @@ -1,20 +0,0 @@ -## [ paddle 参数更多 ]torch.Tensor.ravel -### [torch.Tensor.ravel](https://pytorch.org/docs/stable/generated/torch.Tensor.ravel.html#torch.Tensor.ravel) - -```python -torch.Tensor.ravel() -``` - -### [paddle.Tensor.flatten](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#flatten-start-axis-0-stop-axis-1-name-none) - -```python -paddle.Tensor.flatten(start_axis=0, stop_axis=- 1, name=None) -``` - -其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| - | start_axis | 表示 flatten 展开的起始维度, PyTorch 无此参数, Paddle 保持默认即可。 | -| - | stop_axis | 表示 flatten 展开的结束维度, PyTorch 无此参数, Paddle 保持默认即可。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.scatter_add.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.scatter_add.md deleted file mode 100644 index 783eaa36473..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.scatter_add.md +++ /dev/null @@ -1,30 +0,0 @@ -## [ paddle 参数更多 ]torch.Tensor.scatter_add - -### [torch.Tensor.scatter_add](https://pytorch.org/docs/stable/generated/torch.Tensor.scatter_add.html#torch.Tensor.scatter_add) - -```python -torch.Tensor.scatter_add(dim, index, src) -``` - -### [paddle.Tensor.put_along_axis](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/put_along_axis_cn.html) - -```python -paddle.Tensor.put_along_axis(indices, - values, - axis, - reduce='assign', - include_self=True, - broadcast=True) -``` - -其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: - -### 参数映射 -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| dim | axis | 表示在哪一个维度 scatter ,仅参数名不一致。 | -| index | indices | 表示输入的索引张量,仅参数名不一致。 | -| src | values | 表示需要插入的值,仅参数名不一致。 | -| - | reduce | 表示对输出 Tensor 的计算方式, PyTorch 无此参数, Paddle 应设置为 'add' 。 | -| - | include_self | 表示插入 values 时是否包含 arr 中的元素,PyTorch 无此参数,Paddle 应设置为 'True' 。 | -| - | broadcast | 表示是否需要广播 indices 矩阵,PyTorch 无此参数,Paddle 应设置为 'False' 结果才与 pytorch 一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.scatter_add_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.scatter_add_.md deleted file mode 100644 index 2b4ebe0cf18..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.scatter_add_.md +++ /dev/null @@ -1,30 +0,0 @@ -## [ paddle 参数更多 ]torch.Tensor.scatter_add_ - -### [torch.Tensor.scatter_add_](https://pytorch.org/docs/stable/generated/torch.Tensor.scatter_add_.html#torch.Tensor.scatter_add_) - -```python -torch.Tensor.scatter_add_(dim, - index, - src) -``` - -### [paddle.Tensor.put_along_axis_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/put_along_axis__cn.html) - -```python -paddle.Tensor.put_along_axis_(indices, - values, - axis, - reduce='assign', - include_self=True) -``` - -其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: - -### 参数映射 -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| dim | axis | 表示在哪一个维度 scatter ,仅参数名不一致。 | -| index | indices | 表示输入的索引张量,仅参数名不一致。 | -| src | values | 表示需要插入的值,仅参数名不一致。 | -| - | reduce | 表示对输出 Tensor 的计算方式, PyTorch 无此参数, Paddle 应设置为 'add' 。 | -| - | include_self | 表示插入 values 时是否包含 arr 中的元素,PyTorch 无此参数,Paddle 应设置为 'True' 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.scatter_reduce.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.scatter_reduce.md deleted file mode 100644 index 90f7ce9e26e..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.scatter_reduce.md +++ /dev/null @@ -1,26 +0,0 @@ -## [paddle 参数更多]torch.Tensor.scatter_reduce - -### [torch.Tensor.scatter_reduce](https://pytorch.org/docs/stable/generated/torch.Tensor.scatter_reduce.html#torch-tensor-scatter-reduce) - -```python -torch.Tensor.scatter_reduce(dim, index, src, reduce, *, include_self=True) -``` - -### [paddle.Tensor.put_along_axis](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#put-along-axis-indices-value-axis-reduce-assign-include-self-true-broadcast-true) - -```python -paddle.Tensor.put_along_axis(indices, values, axis, reduce="assign", include_self=True, broadcast=True) -``` - -其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------ | ------------ | ------------------------------------------------------------ | -| dim | axis | 表示 scatter 的维度,仅参数名不一致。 | -| index | indices | 表示输入的索引张量,仅参数名不一致。 | -| src | values | 表示需要插入的值,仅参数名不一致。 | -| reduce | reduce | 表示插入 values 时的计算方式,参数默认值不一致。PyTorch 中该参数无默认值,需要输入,Paddle 中默认值为 `assign`,应设置为与 PyTorch 一致。其中 PyTorch 的 `sum` 对应 Paddle 中的 `add`,PyTorch 的 `prod` 对应 Paddle 中 `multiply`。 | -| include_self | include_self | 表示插入 values 时是否包含输入元素中的值。 | -| - | broadcast | 表示是否需要广播索引张量矩阵,PyTorch 无此参数,Paddle 应设置为 `False` 才与 PyTorch 一致 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.softmax.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.softmax.md deleted file mode 100644 index 348a15baf04..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.softmax.md +++ /dev/null @@ -1,29 +0,0 @@ -## [ paddle 参数更多 ]torch.Tensor.softmax -### [torch.Tensor.softmax](https://pytorch.org/docs/stable/generated/torch.Tensor.softmax.html?highlight=softmax#torch.Tensor.softmax) - -```python -torch.Tensor.softmax(dim, dtype) -``` - -### [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) -``` - -功能一致,torch 是类成员方式,paddle 是 function 调用,具体差异如下: -### 参数映射 -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| dim | axis | 计算 softmax 的轴,仅参数名不一致。 | -| dtype | dtype | 数据类型,参数完全一致。 | - -### 转写示例 -#### dim: 计算 softmax 的轴 -```python -# torch 写法 -x.softmax(dim=1) - -# paddle 写法 -paddle.nn.functional.softmax(x, axis=1) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor__upper.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor__upper.md deleted file mode 100644 index 95136c4c6a3..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor__upper.md +++ /dev/null @@ -1,24 +0,0 @@ -## [ paddle 参数更多 ] torch.Tensor - -### [torch.Tensor](https://pytorch.org/docs/stable/tensors.html) - -```python -torch.Tensor(data) -``` - -### [paddle.to_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/to_tensor_cn.html#to-tensor) - -```python -paddle.to_tensor(data, dtype=None, place=None, stop_gradient=True) -``` - -Paddle 比 PyTorch 支持更多参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ----------------------------------------------------------- | -| data | data | 要转换的数据。 | -| - | dtype | Tensor 的数据类型,PyTorch 无此参数,Paddle 保持默认即可。 | -| - | place | Tensor 的设备,PyTorch 无此参数,Paddle 需设置为 'cpu' 。 | -| - | stop_gradient | 是否阻断 Autograd 的梯度传导。PyTorch 无此参数,Paddle 保持默认即可。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.argwhere.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.argwhere.md deleted file mode 100644 index 9162caff0e8..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.argwhere.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ paddle 参数更多 ]torch.argwhere -### [torch.argwhere](https://pytorch.org/docs/stable/generated/torch.argwhere.html#torch.argwhere) - -```python -torch.argwhere(input) -``` - -### [paddle.nonzero](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nonzero_cn.html#nonzero) - -```python -paddle.nonzero(x, as_tuple=False) -``` - -其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 输入的 Tensor ,仅参数名不一致。 | -| - | as_tuple | 返回格式。是否以 1-D Tensor 构成的元组格式返回。 PyTorch 无此参数, Paddle 保持默认即可。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.Embedding.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.Embedding.md deleted file mode 100644 index 9150c72162c..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.Embedding.md +++ /dev/null @@ -1,39 +0,0 @@ -## [ paddle 参数更多 ]torch.nn.Embedding -### [torch.nn.Embedding](https://pytorch.org/docs/stable/generated/torch.nn.Embedding.html?highlight=embedding#torch.nn.Embedding) - -```python -torch.nn.Embedding(num_embeddings, - embedding_dim, - padding_idx=None, - max_norm=None, - norm_type=2.0, - scale_grad_by_freq=False, - sparse=False) -``` -### [paddle.nn.Embedding](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Embedding_cn.html#embedding) - -```python -paddle.nn.Embedding(num_embeddings, - embedding_dim, - padding_idx=None, - max_norm=None, - norm_type=2.0, - sparse=False, - weight_attr=None, - scale_grad_by_freq=False, - name=None) -``` - -Paddle 相比 PyTorch 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| num_embeddings | num_embeddings | 表示嵌入字典的大小。 | -| embedding_dim | embedding_dim | 表示每个嵌入向量的维度。 | -| padding_idx | padding_idx | 在此区间内的参数及对应的梯度将会以 0 进行填充 | -| max_norm | max_norm | 如果给定,Embeddding 向量的范数(范数的计算方式由 norm_type 决定)超过了 max_norm 这个界限,就要再进行归一化。 | -| norm_type | norm_type | 为 maxnorm 选项计算 p-范数的 p。默认值 2.0。 | -| scale_grad_by_freq | scale_grad_by_freq | 是否根据单词在 mini-batch 中出现频率的倒数缩放梯度。 | -| sparse | sparse | 表示是否使用稀疏更新。 | -| - | weight_attr | 指定权重参数属性的对象,PyTorch 无此参数,Paddle 保持默认即可。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.parameter.Parameter.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.parameter.Parameter.md deleted file mode 100644 index 6edcd25f2de..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.parameter.Parameter.md +++ /dev/null @@ -1,38 +0,0 @@ -## [ paddle 参数更多 ]torch.nn.parameter.Parameter -### [torch.nn.parameter.Parameter](https://pytorch.org/docs/stable/generated/torch.nn.parameter.Parameter.html?highlight=torch%20nn%20parameter#torch.nn.parameter.Parameter) - -```python -torch.nn.parameter.Parameter(data=None, - requires_grad=True) -``` - -### [paddle.base.framework.EagerParamBase.from_tensor](https://github.com/PaddlePaddle/Paddle/blob/31b8fe1ff79d7c0121ab371cba310d1faf7792e8/python/paddle/base/framework.py#L7682) - -```python -paddle.base.framework.EagerParamBase.from_tensor(tensor, trainable=True, optimize_attr={'learning_rate': 1.0}, regularizer=None, do_model_average=None, need_clip=True) -``` - -两者功能一致,但 paddle 参数更多,且第一个参数默认值不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ---------------- | -------------------------------------------------------------------------------------------| -| data | tensor | 输入 tensor,参数默认值不一致,torch 为可选参数,paddle 为必选参数,当 torch 未输入该参数时需要转写。 | -| requires_grad | trainable | 是否可训练,仅参数名不一致。 | -| - | optimize_attr | 参数优化的选项。PyTorch 无此参数,Paddle 保持默认即可。 | -| - | regularizer | 参数正则化类型。PyTorch 无此参数,Paddle 保持默认即可。 | -| - | do_model_average | 是否做模型平均。PyTorch 无此参数,Paddle 保持默认即可。 | -| - | need_clip | 是否做梯度裁剪。PyTorch 无此参数,Paddle 保持默认即可。 | - - -### 转写示例 -#### data 参数:输入 tensor -```python -# torch 可不输入,paddle 必须输入,此时使用 0-D tensor 输入 -# PyTorch 写法 -torch.nn.parameter.Parameter() - -# Paddle 写法 -paddle.base.framework.EagerParamBase.from_tensor(paddle.to_tensor([])) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.scatter_add.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.scatter_add.md deleted file mode 100644 index d1dbeda5a68..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.scatter_add.md +++ /dev/null @@ -1,35 +0,0 @@ -## [ paddle 参数更多 ]torch.scatter_add - -### [torch.scatter_add](https://pytorch.org/docs/stable/generated/torch.scatter_add.html#torch.scatter_add) - -```python -torch.scatter_add(input, - dim, - index, - src) -``` - -### [paddle.put_along_axis](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/put_along_axis_cn.html) - -```python -paddle.put_along_axis(arr, - indices, - values, - axis, - reduce='assign', - include_self=True, - broadcast=True) -``` - -其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: - -### 参数映射 -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | arr | 表示输入 Tensor ,仅参数名不一致。 | -| dim | axis | 表示在哪一个维度 scatter ,仅参数名不一致。 | -| index | indices | 表示输入的索引张量,仅参数名不一致。 | -| src | values | 表示需要插入的值,仅参数名不一致。 | -| - | reduce | 表示插入 values 时的计算方式,PyTorch 无此参数,Paddle 应设置为 'add' 。 | -| - | include_self | 表示插入 values 时是否包含 arr 中的元素,PyTorch 无此参数,Paddle 应设置为 'True' 。 | -| - | broadcast | 表示是否需要广播 indices 矩阵,PyTorch 无此参数,Paddle 应设置为 'False' 结果才与 pytorch 一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.scatter_reduce.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.scatter_reduce.md deleted file mode 100644 index a06a2401f9a..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.scatter_reduce.md +++ /dev/null @@ -1,27 +0,0 @@ -## [paddle 参数更多]torch.scatter_reduce - -### [torch.scatter_reduce](https://pytorch.org/docs/stable/generated/torch.scatter_reduce.html#torch-scatter-reduce) - -```python -torch.scatter_reduce(input, dim, index, src, reduce, *, include_self=True) -``` - -### [paddle.put_along_axis](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/put_along_axis_cn.html) - -```python -paddle.put_along_axis(arr, indices, values, axis, reduce='assign', include_self=True, broadcast=True) -``` - -其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------ | ------------ | ------------------------------------------------------------ | -| input | arr | 表示输入 Tensor,仅参数名不一致。 | -| dim | axis | 表示沿着哪个维度 scatter,仅参数名不一致。 | -| index | indices | 表示输入的索引张量,仅参数名不一致。 | -| src | values | 表示要插入的值,仅参数名不一致。 | -| reduce | reduce | 表示插入 values 时的计算方式,参数默认值不一致。PyTorch 中该参数无默认值,需要输入,Paddle 中默认值为 `assign`,应设置为与 PyTorch 一致。其中 PyTorch 的 `sum` 对应 Paddle 中的 `add`,PyTorch 的 `prod` 对应 Paddle 中 `multiply`。 | -| include_self | include_self | 表示插入 values 时是否包含输入 Tensor 中的元素。 | -| - | broadcast | 表示是否需要广播输入的索引张量,PyTorch 无此参数,Paddle 应设置为 `False` 结果才与 pytorch 一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.unique_consecutive.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.unique_consecutive.md deleted file mode 100644 index 784f410aabd..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.unique_consecutive.md +++ /dev/null @@ -1,29 +0,0 @@ -## [ paddle 参数更多 ]torch.unique_consecutive -### [torch.unique_consecutive](https://pytorch.org/docs/stable/generated/torch.unique_consecutive.html?highlight=unique_consecutive#torch.unique_consecutive) - -```python -torch.unique_consecutive(input, - return_inverse=False, - return_counts=False, - dim=None) -``` - -### [paddle.unique_consecutive](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/unique_consecutive_cn.html#unique-consecutive) - -```python -paddle.unique_consecutive(x, - return_inverse=False, - return_counts=False, - axis=None, - dtype='int64', - name=None) -``` - -其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 输入的 Tensor ,仅参数名不一致。 | -| dim | axis | 指定选取连续不重复元素的轴,仅参数名不一致。 | -| - | dtype | 用于设置 inverse 或者 counts 的类型,PyTorch 无此参数,Paddle 保持默认即可。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.add.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.add.md deleted file mode 100644 index a83ce1b2664..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.add.md +++ /dev/null @@ -1,34 +0,0 @@ -## [torch 参数更多]torch.Tensor.add - -### [torch.Tensor.add](https://pytorch.org/docs/stable/generated/torch.Tensor.add.html#torch.Tensor.add) - -```python -torch.Tensor.add(other, *, alpha=1) -``` - -### [paddle.Tensor.add](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#add-y-name-none) - -```python -paddle.Tensor.add(y, name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -------------------------------------------------------- | -| other | y | 输入的 Tensor,仅参数名不一致。 | -| alpha | - | 表示 other 的乘数,Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### alpha:other 的乘数 - -```python -# PyTorch 写法 -y = torch.tensor([3, 5]).add(torch.tensor([2, 3]), alpha=2) - -# Paddle 写法 -y = paddle.to_tensor([3, 5]).add(2 * paddle.to_tensor([2, 3])) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.add_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.add_.md deleted file mode 100644 index cd81be5f0e5..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.add_.md +++ /dev/null @@ -1,34 +0,0 @@ -## [torch 参数更多]torch.Tensor.add\_ - -### [torch.Tensor.add\_](https://pytorch.org/docs/stable/generated/torch.Tensor.add_.html#torch.Tensor.add_) - -```python -torch.Tensor.add_(other, *, alpha=1) -``` - -### [paddle.Tensor.add\_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#id3) - -```python -paddle.Tensor.add_(y, name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -------------------------------------------------------- | -| other | y | 输入的 Tensor,仅参数名不一致。 | -| alpha | - | 表示 other 的乘数,Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### alpha:other 的乘数 - -```python -# PyTorch 写法 -torch.tensor([3, 5]).add_(torch.tensor([2, 3]), alpha=2) - -# Paddle 写法 -paddle.to_tensor([3, 5]).add_(2 * paddle.to_tensor([2, 3])) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.bfloat16.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.bfloat16.md deleted file mode 100644 index d29e72dae76..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.bfloat16.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ torch 参数更多 ] torch.Tensor.bfloat16 - -### [torch.Tensor.bfloat16](https://pytorch.org/docs/stable/generated/torch.Tensor.bfloat16.html#torch.Tensor.bfloat16) - -```python -torch.Tensor.bfloat16(memory_format=torch.preserve_format) -``` - -### [paddle.Tensor.astype](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#astype-dtype) - -```python -paddle.Tensor.astype(dtype) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ----------------------------------------------------------------------------------- | -| memory_format | - |表示内存格式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| - | dtype | 数据类型,PyTorch 无此参数,Paddle 需设置为 `bfloat16`。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.bool.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.bool.md deleted file mode 100644 index 3cfcd859b7d..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.bool.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ torch 参数更多 ] torch.Tensor.bool - -### [torch.Tensor.bool](https://pytorch.org/docs/stable/generated/torch.Tensor.bool.html#torch.Tensor.bool) - -```python -torch.Tensor.bool(memory_format=torch.preserve_format) -``` - -### [paddle.Tensor.astype](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#astype-dtype) - -```python -paddle.Tensor.astype(dtype) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ----------------------------------------------------------------------------------- | -| memory_format | - |表示内存格式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| - | dtype | 数据类型,PyTorch 无此参数,Paddle 需设置为 `bool`。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.byte.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.byte.md deleted file mode 100644 index 3d76842aa05..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.byte.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ torch 参数更多 ] torch.Tensor.byte - -### [torch.Tensor.byte](https://pytorch.org/docs/stable/generated/torch.Tensor.byte.html#torch.Tensor.byte) - -```python -torch.Tensor.byte(memory_format=torch.preserve_format) -``` - -### [paddle.Tensor.astype](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#astype-dtype) - -```python -paddle.Tensor.astype(dtype) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ----------------------------------------------------------------------------------- | -| memory_format | - |表示内存格式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| - | dtype | 数据类型,PyTorch 无此参数,Paddle 需设置为 `uint8`。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.cdouble.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.cdouble.md deleted file mode 100644 index f669a803113..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.cdouble.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ torch 参数更多 ]torch.Tensor.cdouble - -### [torch.Tensor.cdouble](https://pytorch.org/docs/stable/generated/torch.Tensor.cdouble.html?highlight=torch+tensor+cdouble#torch.Tensor.cdouble) - -```python -torch.Tensor.cdouble(memory_format=torch.preserve_format) -``` - -### [paddle.Tensor.astype](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#astype-dtype) - -```python -paddle.Tensor.astype(dtype) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ----------------------------------- | ------------ | ----------------------------------------------------------------------- | -| memory_format | - |表示内存格式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| - | dtype | 数据类型,PyTorch 无此参数,Paddle 需设置为 `complex128`。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.cfloat.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.cfloat.md deleted file mode 100644 index 1f045d1fa0f..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.cfloat.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ torch 参数更多 ]torch.Tensor.cfloat - -### [torch.Tensor.cfloat](https://pytorch.org/docs/stable/generated/torch.Tensor.cfloat.html?highlight=torch+tensor+cfloat#torch.Tensor.cfloat) - -```python -torch.Tensor.cfloat(memory_format=torch.preserve_format) -``` - -### [paddle.Tensor.astype](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#astype-dtype) - -```python -paddle.Tensor.astype(dtype) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ----------------------------------- | ------------ | ----------------------------------------------------------------------- | -| memory_format | - |表示内存格式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| - | dtype | 数据类型,PyTorch 无此参数,Paddle 需设置为 `complex64`。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.char.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.char.md deleted file mode 100644 index 5490a5d4016..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.char.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ torch 参数更多 ] torch.Tensor.char - -### [torch.Tensor.char](https://pytorch.org/docs/stable/generated/torch.Tensor.char.html#torch.Tensor.char) - -```python -torch.Tensor.char(memory_format=torch.preserve_format) -``` - -### [paddle.Tensor.astype](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#astype-dtype) - -```python -paddle.Tensor.astype(dtype) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ----------------------------------------------------------------------------------- | -| memory_format | - |表示内存格式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| - | dtype | 数据类型,PyTorch 无此参数,Paddle 需设置为 `int8`。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.copy_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.copy_.md deleted file mode 100644 index 464ece06214..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.copy_.md +++ /dev/null @@ -1,34 +0,0 @@ -## [ torch 参数更多 ] torch.Tensor.copy_ - -### [torch.Tensor.copy_](https://pytorch.org/docs/stable/generated/torch.Tensor.copy_.html#torch.Tensor.copy_) - -```python -torch.Tensor.copy_(other, non_blocking=False) -``` - -### [paddle.assign](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/assign_cn.html#assign) - -```python -paddle.assign(x, output=None) -``` - -两者功能类似,torch 参数多,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| other | x | 待复制的 tensor,仅参数名不一致。 | -| non_blocking | - | 用于控制 cpu 和 gpu 数据的异步复制。Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| - | output | 输出 Tensor,PyTorch 无此参数,Paddle 需将其设置为调用 copy_类方法的 Tensor 。 | - - -### 转写示例 - -```python -# torch 写法 -y.copy_(x) - -# paddle 写法 -paddle.assign(x, output=y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.cpu.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.cpu.md deleted file mode 100644 index 6d46abff064..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.cpu.md +++ /dev/null @@ -1,21 +0,0 @@ -## [ torch 参数更多 ]torch.Tensor.cpu - -### [torch.Tensor.cpu](https://pytorch.org/docs/stable/generated/torch.Tensor.cpu.html?highlight=torch+tensor+cpu#torch.Tensor.cpu) - -```python -torch.Tensor.cpu(memory_format=torch.preserve_format) -``` - -### [paddle.Tensor.cpu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#cpu) - -```python -paddle.Tensor.cpu() -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ----------------------------------- | ------------ | ----------------------------------------------------------------------- | -| memory_format | - | 表示内存格式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.div.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.div.md deleted file mode 100644 index 00dbbd6bfe7..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.div.md +++ /dev/null @@ -1,38 +0,0 @@ -## [ torch 参数更多 ] torch.Tensor.div - -### [torch.Tensor.div](https://pytorch.org/docs/stable/generated/torch.Tensor.div.html#torch.Tensor.div) - -```python -torch.Tensor.div(other, *, rounding_mode=None) -``` - -### [paddle.Tensor.divide](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#divide-y-name-none) - -```python -paddle.Tensor.divide(y, name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ----------------------------------------------------------------------------------- | -| other | y | 表示输入的 Tensor ,仅参数名不一致。 | -| rounding_mode | - | 用于指定在执行截断除法时的舍入模式,可选值为 'floor'(向下取整) 或 'trunc'(向零取整)。 Paddle 无此参数,需要转写。Paddle 可通过组合 paddle.trunc 或 paddle.floor 实现。 | - -### 转写示例 - -```python -# torch 写法 -x = torch.tensor([4, 8, 12], dtype=torch.float32) -y = torch.tensor([3, 4, 5], dtype=torch.float32) -z1 = x.div(y, rounding_mode='floor') # 向下取整 -z2 = x.div(y, rounding_mode='trunc') # 向零取整 - -# paddle 写法 -x = paddle.to_tensor([4, 8, 12], dtype='float32') -y = paddle.to_tensor([3, 4, 5], dtype='float32') -z1 = x.divide(y).floor() # 向下取整 -z2 = x.divide(y).trunc() # 向零取整 -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.div_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.div_.md deleted file mode 100644 index 811a90f0325..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.div_.md +++ /dev/null @@ -1,38 +0,0 @@ -## [ torch 参数更多 ] torch.Tensor.div_ - -### [torch.Tensor.div_](https://pytorch.org/docs/stable/generated/torch.Tensor.div_.html) - -```python -torch.Tensor.div_(other, *, rounding_mode=None) -``` - -### [paddle.Tensor.divide_]() - -```python -paddle.Tensor.divide_(y) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ----------------------------------------------------------------------------------- | -| other | y | 表示输入的 Tensor ,仅参数名不一致。 | -| rounding_mode | - | 用于指定在执行截断除法时的舍入模式,可选值为 'floor'(向下取整) 或 'trunc'(向零取整)。 Paddle 无此参数,需要转写。 | - -### 转写示例 - -```python -# torch 写法 -x = torch.tensor([4, 8, 12], dtype=torch.float32) -y = torch.tensor([3, 4, 5], dtype=torch.float32) -z1 = x.div_(y, rounding_mode='floor') # 向下取整 -z2 = x.div_(y, rounding_mode='trunc') # 向零取整 - -# paddle 写法 -x = paddle.to_tensor([4, 8, 12], dtype='float32') -y = paddle.to_tensor([3, 4, 5], dtype='float32') -z1 = x.divide_(y).floor_() # 向下取整 -z2 = x.divide_(y).trunc_() # 向零取整 -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.double.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.double.md deleted file mode 100644 index 063a498324a..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.double.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ torch 参数更多 ] torch.Tensor.double - -### [torch.Tensor.double](https://pytorch.org/docs/stable/generated/torch.Tensor.double.html#torch-Tensor-double) - -```python -torch.Tensor.double(memory_format=torch.preserve_format) -``` - -### [paddle.Tensor.astype](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#astype-dtype) - -```python -paddle.Tensor.astype(dtype) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ----------------------------------------------------------------------------------- | -| memory_format | - |表示内存格式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| - | dtype | 数据类型,PyTorch 无此参数,Paddle 需设置为 `float64`。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.float.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.float.md deleted file mode 100644 index 98d29358f16..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.float.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ torch 参数更多 ] torch.Tensor.float - -### [torch.Tensor.float](https://pytorch.org/docs/stable/generated/torch.Tensor.float.html?highlight=float#torch.Tensor.float) - -```python -torch.Tensor.float(memory_format) -``` - -### [paddle.Tensor.astype](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#astype-dtype) - -```python -paddle.Tensor.astype(dtype) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| memory_format | - |表示内存格式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| - | dtype | 数据类型,PyTorch 无此参数,Paddle 需设置为 `float32`。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.half.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.half.md deleted file mode 100644 index 6a474753561..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.half.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ torch 参数更多 ] torch.Tensor.half - -### [torch.Tensor.half](https://pytorch.org/docs/stable/generated/torch.Tensor.half.html#torch.Tensor.half) - -```python -torch.Tensor.half(memory_format=torch.preserve_format) -``` - -### [paddle.Tensor.astype](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#astype-dtype) - -```python -paddle.Tensor.astype(dtype) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ----------------------------------------------------------------------- | -| memory_format | - |表示内存格式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| - | dtype | 数据类型,PyTorch 无此参数,Paddle 需设置为 `float16`。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.int.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.int.md deleted file mode 100644 index 6721f495ab8..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.int.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ torch 参数更多 ] torch.Tensor.int - -### [torch.Tensor.int](https://pytorch.org/docs/stable/generated/torch.Tensor.int.html?highlight=int#torch.Tensor.int) - -```python -torch.Tensor.int(memory_format=torch.preserve_format) -``` - -### [paddle.Tensor.astype](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#astype-dtype) - -```python -paddle.Tensor.astype(dtype) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| memory_format | - |表示内存格式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| - | dtype | 数据类型,PyTorch 无此参数,Paddle 需设置为 `int32`。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.long.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.long.md deleted file mode 100644 index d96ba8d54a7..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.long.md +++ /dev/null @@ -1,22 +0,0 @@ -## [ torch 参数更多 ] torch.Tensor.long - -### [torch.Tensor.long](https://pytorch.org/docs/stable/generated/torch.Tensor.long.html#torch.Tensor.long) - -```python -torch.Tensor.long(memory_format=torch.preserve_format) -``` - -### [paddle.Tensor.astype](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#astype-dtype) - -```python -paddle.Tensor.astype(dtype) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ----------------------------------------------------------------------- | -| memory_format | - |表示内存格式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| - | dtype | 数据类型,PyTorch 无此参数,Paddle 需设置为 `int64`。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.mean.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.mean.md deleted file mode 100644 index e69a96df446..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.mean.md +++ /dev/null @@ -1,34 +0,0 @@ -## [ torch 参数更多 ]torch.Tensor.mean - -### [torch.Tensor.mean](https://pytorch.org/docs/stable/generated/torch.Tensor.mean.html) - -```python -torch.Tensor.mean(dim=None, keepdim=False, *, dtype=None) -``` - -### [paddle.Tensor.mean](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#mean-axis-none-keepdim-false-name-none) - -```python -paddle.Tensor.mean(axis=None, keepdim=False, name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -- | -| dim | axis | 指定对 x 进行计算的轴,仅参数名不一致。 | -| keepdim | keepdim | 是否在输出 Tensor 中保留减小的维度。 | -| dtype | - | 输出 Tensor 的类型,Paddle 无此参数, 需要转写。 | - -### 转写示例 - -#### dtype:输出数据类型 -```python -# PyTorch 写法 -x.mean(dtype=torch.float32) - -# Paddle 写法 -x.mean().astype(paddle.float32) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.new_empty.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.new_empty.md deleted file mode 100644 index ef77921c3d1..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.new_empty.md +++ /dev/null @@ -1,82 +0,0 @@ -## [torch 参数更多]torch.Tensor.new_empty - -### [torch.Tensor.new_empty](https://pytorch.org/docs/stable/generated/torch.Tensor.new_empty.html#torch-tensor-new-empty) - -```python -torch.Tensor.new_empty(*size, *, dtype=None, device=None, requires_grad=False, layout=torch.strided, pin_memory=False) -``` - -### [paddle.empty](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/empty_cn.html) - -```python -paddle.empty(shape, - dtype=None, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------------ | -| *size | shape | 表示输出形状大小, PyTorch 是可变参数用法, Paddle 是列表或元组,需要转写。 | -| dtype | dtype | 表示输出 Tensor 类型,如果没有指定,默认使用当前对象的 dtype,需要转写。 | -| device | - | 表示 Tensor 存放设备位置,Paddle 无此参数,需要转写。 | -| requires_grad | - | 表示是否计算梯度,Paddle 无此参数,需要转写。 | -| layout | - | 表示布局方式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| pin_memory | - | 表示是否使用锁页内存, Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### size:输出形状大小 - -```python -# PyTorch 写法 -x.new_empty(3, 5) - -# Paddle 写法 -paddle.empty([3, 5]) -``` - -#### dtype:数据类型 - -```python -# PyTorch 写法 -x.new_empty(3, 5) - -# Paddle 写法 -paddle.empty([3, 5], dtype=x.dtype) -``` - -#### device: Tensor torch 的设备 - -```python -# PyTorch 写法 -y = x.new_empty((3, 5), device=torch.device('cpu')) - -# Paddle 写法 -y = paddle.empty([3, 5]) -y.cpu() -``` - -#### requires_grad:是否求梯度 - -```python -# PyTorch 写法 -y = x.new_empty((3, 5), requires_grad=True) - -# Paddle 写法 -y = paddle.empty([3, 5]) -y.stop_gradient = False -``` - -#### pin_memory:是否分配到固定内存上 - -```python -# PyTorch 写法 -y = x.new_empty((3, 5), pin_memory=True) - -# Paddle 写法 -y = paddle.empty([3, 5]).pin_memory() -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.new_full.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.new_full.md deleted file mode 100644 index ccab1ea982c..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.new_full.md +++ /dev/null @@ -1,74 +0,0 @@ -## [torch 参数更多]torch.Tensor.new_full - -### [torch.Tensor.new_full](https://pytorch.org/docs/stable/generated/torch.Tensor.new_full.html#torch-tensor-new-full) - -```python -torch.Tensor.new_full(size, fill_value, *, dtype=None, device=None, requires_grad=False, layout=torch.strided, pin_memory=False) -``` - -### [paddle.full](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/full_cn.html) - -```python -paddle.full(shape, - fill_value, - dtype=None, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------ | ----------- | ----------------------------------------------------------- | -| size | shape | 表示创建 Tensor 的形状,仅参数名不一致。 | -| fill_value | fill_value | 表示初始化输出 Tensor 的常量数据的值 | -| dtype | dtype | 表示输出 Tensor 类型,如果没有指定,默认使用当前对象的 dtype,需要转写。 | -| device | - | 表示 Tensor 存放设备位置,Paddle 无此参数,需要转写。 | -| requires_grad | - | 表示是否计算梯度,Paddle 无此参数,需要转写。 | -| layout | - | 表示布局方式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| pin_memory | - | 表示是否使用锁页内存, Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### dtype:数据类型 - -```python -# PyTorch 写法 -x.new_full(3, 5, 1.) - -# Paddle 写法 -paddle.full([3, 5], 1., dtype=x.dtype) -``` - -#### device: Tensor 的设备 - -```python -# PyTorch 写法 -y = x.new_full([3, 5], 1., device=torch.device('cpu')) - -# Paddle 写法 -y = paddle.full([3, 5], 1.) -y.cpu() -``` - -#### requires_grad:是否求梯度 - -```python -# PyTorch 写法 -y = x.new_full([3, 5], 1., requires_grad=True) - -# Paddle 写法 -y = paddle.full([3, 5], 1.) -y.stop_gradient = False -``` - -#### pin_memory:是否分配到固定内存上 - -```python -# PyTorch 写法 -y = x.new_full((3, 5), 1., pin_memory=True) - -# Paddle 写法 -y = paddle.full([3, 5], 1.).pin_memory() -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.new_ones.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.new_ones.md deleted file mode 100644 index 0162f3d889b..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.new_ones.md +++ /dev/null @@ -1,83 +0,0 @@ -## [torch 参数更多]torch.Tensor.new_ones - -### [torch.Tensor.new_ones](https://pytorch.org/docs/stable/generated/torch.Tensor.new_ones.html#torch-tensor-new-ones) - -```python -torch.Tensor.new_ones(*size, *, dtype=None, device=None, requires_grad=False, layout=torch.strided, pin_memory=False) -``` - -### [paddle.ones](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/ones_cn.html) - -```python -paddle.ones(shape, - dtype=None, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------------ | -| *size | shape | 表示输出形状大小, PyTorch 是可变参数用法, Paddle 是列表或元组,需要转写。 | -| dtype | dtype | 表示输出 Tensor 类型,如果没有指定,默认使用当前对象的 dtype,需要转写。 | -| device | - | 表示 Tensor 存放设备位置,Paddle 无此参数,需要转写。 | -| requires_grad | - | 表示是否计算梯度,Paddle 无此参数,需要转写。 | -| layout | - | 表示布局方式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| pin_memory | - | 表示是否使用锁页内存, Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### size:输出形状大小 - -```python -# PyTorch 写法 -x.new_ones(3, 5) - -# Paddle 写法 -paddle.ones([3, 5]) -``` - -#### dtype:数据类型 - -```python -# PyTorch 写法 -x.new_ones(3, 5) - -# Paddle 写法 -paddle.ones([3, 5], dtype=x.dtype) -``` - - -#### device: Tensor torch 的设备 - -```python -# PyTorch 写法 -y = x.new_ones((3, 5), device=torch.device('cpu')) - -# Paddle 写法 -y = paddle.ones([3, 5]) -y.cpu() -``` - -#### requires_grad:是否求梯度 - -```python -# PyTorch 写法 -y = x.new_ones((3, 5), requires_grad=True) - -# Paddle 写法 -y = paddle.ones([3, 5]) -y.stop_gradient = False -``` - -#### pin_memory:是否分配到固定内存上 - -```python -# PyTorch 写法 -y = x.new_ones((3, 5), pin_memory=True) - -# Paddle 写法 -y = paddle.ones([3, 5]).pin_memory() -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.new_zeros.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.new_zeros.md deleted file mode 100644 index 19bd203aad5..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.new_zeros.md +++ /dev/null @@ -1,82 +0,0 @@ -## [torch 参数更多]torch.Tensor.new_zeros - -### [torch.Tensor.new_zeros](https://pytorch.org/docs/stable/generated/torch.Tensor.new_zeros.html#torch-tensor-new-zeros) - -```python -torch.Tensor.new_zeros(*size, *, dtype=None, device=None, requires_grad=False, layout=torch.strided, pin_memory=False) -``` - -### [paddle.zeros](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/zeros_cn.html) - -```python -paddle.zeros(shape, - dtype=None, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------------ | -| *size | shape | 表示输出形状大小, PyTorch 是可变参数用法, Paddle 是列表或元组,需要转写。 | -| dtype | dtype | 表示输出 Tensor 类型,如果没有指定,默认使用当前对象的 dtype,需要转写。 | -| device | - | 表示 Tensor 存放设备位置,Paddle 无此参数,需要转写。 | -| requires_grad | - | 表示是否计算梯度,Paddle 无此参数,需要转写。 | -| layout | - | 表示布局方式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| pin_memory | - | 表示是否使用锁页内存, Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### size:输出形状大小 - -```python -# PyTorch 写法 -x.new_zeros(3, 5) - -# Paddle 写法 -paddle.zeros([3, 5]) -``` - -#### dtype: 数据类型 - -```python -# PyTorch 写法 -x.new_zeros(3, 5) - -# Paddle 写法 -paddle.zeros([3, 5], dtype=x.dtype) -``` - -#### device: Tensor torch 的设备 - -```python -# PyTorch 写法 -y = x.new_zeros((3, 5), device=torch.device('cpu')) - -# Paddle 写法 -y = paddle.zeros([3, 5]) -y.cpu() -``` - -#### requires_grad:是否求梯度 - -```python -# PyTorch 写法 -y = x.new_zeros((3, 5), requires_grad=True) - -# Paddle 写法 -y = paddle.zeros([3, 5]) -y.stop_gradient = False -``` - -#### pin_memory:是否分配到固定内存上 - -```python -# PyTorch 写法 -y = x.new_zeros((3, 5), pin_memory=True) - -# Paddle 写法 -y = paddle.zeros([3, 5]).pin_memory() -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.norm.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.norm.md deleted file mode 100644 index 4852864dab0..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.norm.md +++ /dev/null @@ -1,37 +0,0 @@ -## [torch 参数更多]torch.Tensor.norm - -### [torch.Tensor.norm](https://pytorch.org/docs/stable/generated/torch.Tensor.norm.html#torch.Tensor.norm) - -```python -torch.Tensor.norm(p='fro', dim=None, keepdim=False, dtype=None) -``` - -### [paddle.Tensor.norm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#norm-p-fro-axis-none-keepdim-false-name-none) - -```python -paddle.Tensor.norm(p='fro', axis=None, keepdim=False, name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | --------------------------------------------- | -| p | p | 范数(ord)的种类。 | -| dim | axis | 使用范数计算的轴,仅参数名不一致。 | -| keepdim | keepdim | 是否在输出的 Tensor 中保留和输入一样的维度。 | -| dtype | - | 输出数据类型,Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### dtype 参数:输出数据类型 - -```python -# PyTorch 写法 -x.norm(dim=-1, dtype=torch.float32) - -# Paddle 写法 -y = x.astype('float32') -y.norm(dim=-1) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.random_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.random_.md deleted file mode 100644 index 9f18f71793a..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.random_.md +++ /dev/null @@ -1,25 +0,0 @@ -## [ torch 参数更多 ] torch.Tensor.random_ - -### [torch.Tensor.random_](https://pytorch.org/docs/stable/generated/torch.Tensor.random_.html) - -```python -torch.Tensor.random_(from=0, to=None, *, generator=None) -``` - -### [paddle.Tensor.uniform_](https://www.paddlepaddle.org.cn/documentation/docs/en/develop/api/paddle/Tensor/uniform__en.html) - -```python -paddle.Tensor.uniform_(min: float = - 1.0, max: float = 1.0, seed: int = 0) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - - -| PyTorch | PaddlePaddle | 备注 | -| --------- | ------------ | ------------------------------------------------------------------------------------ | -| from | min | 随机数生成范围的起始值,仅参数名不一致。 | -| to | max | 随机数生成范围的结束值,仅参数名不一致。 | -| generator | - | 用于采样的伪随机数生成器, Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| - | seed | 随机数种子。PyTorch 无此参数,Paddle 保持默认即可。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.repeat_interleave.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.repeat_interleave.md deleted file mode 100644 index fad3a795ff7..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.repeat_interleave.md +++ /dev/null @@ -1,23 +0,0 @@ -## [ torch 参数更多]torch.Tensor.repeat_interleave - -### [torch.Tensor.repeat_interleave](https://pytorch.org/docs/stable/generated/torch.Tensor.repeat_interleave.html#torch.Tensor.repeat_interleave) - -```python -torch.Tensor.repeat_interleave(repeats, dim=None, *, output_size=None) -``` - -### [paddle.Tensor.repeat_interleave](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#repeat-interleave-repeats-axis-none-name-none) - -```python -paddle.Tensor.repeat_interleave(repeats, axis=None, name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | --------------------------------------------------- | -| repeats | repeats | 表示指定复制次数的 1-D Tensor 或指定的复制次数。 | -| dim | axis | 表示复制取值的维度,仅参数名不一致。 | -| output_size | - | 表示给定维度的总输出尺寸,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.short.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.short.md deleted file mode 100644 index 80737bfebc8..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.short.md +++ /dev/null @@ -1,22 +0,0 @@ -## [torch 参数更多]torch.Tensor.short - -### [torch.Tensor.short](https://pytorch.org/docs/stable/generated/torch.Tensor.short.html#torch.Tensor.short) - -```python -torch.Tensor.short(memory_format=torch.preserve_format) -``` - -### [paddle.Tensor.astype](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#put-along-axis-arr-index-value-axis-reduce-assign) - -```python -paddle.Tensor.astype(dtype) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------- | ------- | -| memory_format | - |表示内存格式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| - | dtype | 数据类型,PyTorch 无此参数,Paddle 需设置为 `int16`。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.size.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.size.md deleted file mode 100644 index 29de1493e6b..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.size.md +++ /dev/null @@ -1,55 +0,0 @@ -## [torch 参数更多]torch.Tensor.size - -### [torch.Tensor.size](https://pytorch.org/docs/stable/generated/torch.Tensor.size.html#torch.Tensor.size) - -```python -torch.Tensor.size(dim=None) -``` - -### [paddle.Tensor.shape](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#shape) - -```python -paddle.Tensor.shape -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ------- | -| dim | - | 表示获取大小的轴,Paddle 无此参数,需要转写。 | - -### 转写示例 - -```python -# PyTorch 写法 -torch.tensor([-1, -2, 3]).size(0) - -# Paddle 写法 -paddle.to_tensor([-0.4, -0.2, 0.1, 0.3]).shape[0] -``` - -```python -# PyTorch 写法 -torch.ones(10, 20, 30).size().count(30) - -# Paddle 写法 -tuple(paddle.ones([10, 20, 30]).shape).count(30) -``` - -```python -# PyTorch 写法 -torch.ones(10, 20, 30).size().index(30, 1) - -# Paddle 写法 -tuple(paddle.ones([10, 20, 30]).shape).index(30, 1) -``` - -```python -# PyTorch 写法 -torch.ones(10, 20, 30).size().numel() - -# Paddle 写法 -paddle.ones([10, 20, 30]).numel().item() -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.stride.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.stride.md deleted file mode 100644 index 82f800a5293..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.stride.md +++ /dev/null @@ -1,35 +0,0 @@ -## [ torch 参数更多 ] torch.Tensor.stride - -### [torch.Tensor.stride](https://pytorch.org/docs/stable/generated/torch.Tensor.stride.html#torch-tensor-stride) - -```python -torch.Tensor.stride(dim=None) -``` - -### [paddle.Tensor.get_strides](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#tensor) - -```python -paddle.Tensor.get_strides() -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | --------------------------------------------------------------------------------------------- | -| dim | - | 返回指定维度的步长, Pytorch 为可选值,默认返回全部步长,此时无需转写,当有输入值时,需要转写。 | - -### 转写示例 - -```python -# torch 版本, 默认返回全部 -x.stride(dim=None) - -# Paddle 版本 -if dim is not None: - x.get_strides()[dim] -else: - x.get_strides() -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.sub.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.sub.md deleted file mode 100644 index 7598c5db34b..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.sub.md +++ /dev/null @@ -1,34 +0,0 @@ -## [ torch 参数更多 ]torch.Tensor.sub -### [torch.Tensor.sub](https://pytorch.org/docs/stable/generated/torch.Tensor.sub.html#torch.Tensor.sub) - -```python -torch.Tensor.sub(other, *, alpha=1) -``` - -### [paddle.Tensor.subtract](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/subtract_cn.html#subtract) - -```python -paddle.Tensor.subtract(y, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| other | y | 表示减数的 Tensor,仅参数名不一致。 | -| alpha | - | 表示`other`的乘数,Paddle 无此参数,需要转写。Paddle 应设置 y = alpha * other。 | - - -### 转写示例 -#### alpha:表示`other`的乘数 -```python -# PyTorch 写法 -x.sub(y, alpha=2) - -# Paddle 写法 -x.subtract(2 * y) - -# 注:Paddle 直接将 alpha 与 y 相乘实现 -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.sub_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.sub_.md deleted file mode 100644 index 3b2b5996e1a..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.sub_.md +++ /dev/null @@ -1,33 +0,0 @@ -## [ torch 参数更多 ]torch.Tensor.sub_ -### [torch.Tensor.sub_](https://pytorch.org/docs/stable/generated/torch.Tensor.sub_.html) - -```python -torch.Tensor.sub_(other, *, alpha=1) -``` - -### [paddle.Tensor.subtract_]() - -```python -paddle.Tensor.subtract_(y) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| other | y | 表示减数的 Tensor,仅参数名不一致。 | -| alpha | - | 表示`other`的乘数,Paddle 无此参数,需要转写。Paddle 应设置 y = alpha * other。 | - - -### 转写示例 -#### alpha:表示`other`的乘数 -```python -# PyTorch 写法 -x.sub_(y, alpha=2) - -# Paddle 写法 -x.subtract_(2 * y) - -# 注:Paddle 直接将 alpha 与 y 相乘实现 -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.to.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.to.md deleted file mode 100644 index 7d5b9d0f621..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.to.md +++ /dev/null @@ -1,124 +0,0 @@ -## [torch 参数更多]torch.Tensor.to - -### [torch.Tensor.to](https://pytorch.org/docs/stable/generated/torch.Tensor.to.html#torch.Tensor.to) - -```python -torch.Tensor.to(dtype, non_blocking=False, copy=False, memory_format=torch.preserve_format) -``` - -### [paddle.Tensor.to](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#to-args-kwargs) - -```python -paddle.Tensor.to(dtype, blocking=True) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ----------------------------------------------------------------------- | -| dtype | dtype | 表示输出 Tensor 的数据类型。 | -| non_blocking | blocking | 控制 cpu 和 gpu 数据的异步复制,取值相反,需要转写。 | -| copy | - | 表示是否复制,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| memory_format | - | 表示内存格式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | - -### 转写示例 - -#### non_blocking: cpu 和 gpu 数据的异步复制 - -``` python -# PyTorch 写法 -x = torch.tensor([1, 2, 3]) -x.to(dtype, non_blocking=True) - -# Paddle 写法 -x= paddle.to_tensor([1, 2, 3]) -x.to(dtype, blocking=False) -``` - ---- - -### [torch.Tensor.to](https://pytorch.org/docs/stable/generated/torch.Tensor.to.html#torch.Tensor.to) - -```python -torch.Tensor.to(device=None, dtype=None, non_blocking=False, copy=False, memory_format=torch.preserve_format) -``` - -### [paddle.Tensor.to](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#to-args-kwargs) - -```python -paddle.Tensor.to(device, dtype=None, blocking=True) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ----------------------------------------------------------------------- | -| device | device | 表示 Tensor 存放设备位置。 | -| dtype | dtype | 表示输出 Tensor 的数据类型。 | -| non_blocking | blocking | 控制 cpu 和 gpu 数据的异步复制,取值相反,需要转写。 | -| copy | - | 表示是否复制,Paddle 无此参数,暂无转写方式。 | -| memory_format | - | 表示内存格式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | - -### 转写示例 - -#### non_blocking: cpu 和 gpu 数据的异步复制 - -``` python -# PyTorch 写法 -x = torch.tensor([1, 2, 3]) -x.to(device, dtype, non_blocking=True) - -# Paddle 写法 -x= paddle.to_tensor([1, 2, 3]) -x.to(device, dtype, blocking=False) -``` - ---- - -### [torch.Tensor.to](https://pytorch.org/docs/stable/generated/torch.Tensor.to.html#torch.Tensor.to) - -```python -torch.Tensor.to(other, non_blocking=False, copy=False) -``` - -### [paddle.Tensor.to](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#to-args-kwargs) - -```python -paddle.Tensor.to(dtype) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------ | ------------ | ----------------------------------------------------- | -| other | - | 表示参照 dtype 的 Tensor,Paddle 无此参数,需要转写。 | -| non_blocking | blocking | 控制 cpu 和 gpu 数据的异步复制,取值相反,需要转写。 | -| copy | - | 表示是否复制,Paddle 无此参数,暂无转写方式。 | - -### 转写示例 - -#### other: 表示参照 dtype 的 Tensor - -```python -# PyTorch 写法 -y = x.to(x2) - -# Paddle 写法 -y = x.to(x2.dtype) -``` - -#### non_blocking: cpu 和 gpu 数据的异步复制 - -``` python -# PyTorch 写法 -y = x.to(x2, non_blocking=True) - -# Paddle 写法 -y = x.to(x2.dtype, blocking=False) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.add.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.add.md deleted file mode 100644 index 4fa00e4092b..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.add.md +++ /dev/null @@ -1,53 +0,0 @@ -## [torch 参数更多 ]torch.add - -### [torch.add](https://pytorch.org/docs/stable/generated/torch.add.html?highlight=add#torch.add) - -```python -torch.add(input, - other, - *, - alpha=1, - out=None) -``` - -### [paddle.add](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/add_cn.html#add) - -```python -paddle.add(x, - y, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -------------------------------------------------------- | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| other | y | 表示输入的 Tensor ,仅参数名不一致。 | -| alpha | - | 表示 other 的乘数,Paddle 无此参数,需要转写。 | -| out | - | 表示输出的 Tensor,Paddle 无此参数,需要转写。 | - - -### 转写示例 - -#### alpha:other 的乘数 - -```python -# PyTorch 写法 -torch.add(torch.tensor([3, 5]), torch.tensor([2, 3]), alpha=2) - -# Paddle 写法 -paddle.add(paddle.to_tensor([3, 5]), 2 * paddle.to_tensor( [2, 3])) -``` - -#### out:指定输出 - -```python -# PyTorch 写法 -torch.add(torch.tensor([3, 5]), torch.tensor([2, 3]), out=y) - -# Paddle 写法 -paddle.assign(paddle.add(paddle.to_tensor([3, 5]), paddle.to_tensor([2, 3])), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.amax.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.amax.md deleted file mode 100644 index 1b03c76efef..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.amax.md +++ /dev/null @@ -1,36 +0,0 @@ -## [ torch 参数更多 ]torch.amax - -### [torch.amax](https://pytorch.org/docs/stable/generated/torch.amax.html) - -```python -torch.amax(input, dim, keepdim=False, *, out=None) -``` - -### [paddle.amax](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/amax_cn.html#amax) - -```python -paddle.amax(x, axis=None, keepdim=False, name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -- | -| input | x | 输入 Tensor,仅参数名不一致。 | -| dim | axis | 求最大值运算的维度,仅参数名不一致。 | -| keepdim | keepdim | 是否在输出 Tensor 中保留减小的维度。 | -| out | - | 输出 Tensor,Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### out: 指定输出 - -```python -# PyTorch 写法 -torch.amax(a, dim=0,out=y) - -# Paddle 写法 -paddle.assign(paddle.amax(a, dim=0), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.amin.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.amin.md deleted file mode 100644 index 2a461b835bf..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.amin.md +++ /dev/null @@ -1,36 +0,0 @@ -## [ torch 参数更多 ]torch.amin - -### [torch.amin](https://pytorch.org/docs/stable/generated/torch.amin.html) - -```python -torch.amin(input, dim, keepdim=False, *, out=None) -``` - -### [paddle.amin](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/amin_cn.html#amin) - -```python -paddle.amin(x, axis=None, keepdim=False, name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -- | -| input | x | 输入 Tensor,仅参数名不一致。 | -| dim | axis | 求最小值运算的维度,仅参数名不一致。 | -| keepdim | keepdim | 是否在输出 Tensor 中保留减小的维度。 | -| out | - | 输出 Tensor,Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### out: 指定输出 - -```python -# PyTorch 写法 -torch.amin(a, dim=0,out=y) - -# Paddle 写法 -paddle.assign(paddle.amin(a, dim=0), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.arange.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.arange.md deleted file mode 100644 index b31c802dbec..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.arange.md +++ /dev/null @@ -1,74 +0,0 @@ -## [torch 参数更多]torch.arange - -### [torch.arange](https://pytorch.org/docs/stable/generated/torch.arange.html?highlight=arange#torch.arange) - -```python -torch.arange(start=0, - end, - step=1, - *, - out=None, - dtype=None, - layout=torch.strided, - device=None, - requires_grad=False) -``` - -### [paddle.arange](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/arange_cn.html) - -```python -paddle.arange(start=0, - end=None, - step=1, - dtype=None, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------------ | -| start | start | 表示区间起点(且区间包括此值)。 | -| end | end | 表示区间终点(且通常区间不包括此值)。 | -| step | step | 表示均匀分割的步长。 | -| out | - | 表示输出的 Tensor,Paddle 无此参数,需要转写。 | -| dtype | dtype | 表示输出 Tensor 类型。 | -| layout | - | 表示布局方式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| device | - | 表示 Tensor 存放设备位置,Paddle 无此参数,需要转写。 | -| requires_grad | - | 表示是否计算梯度,Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### out:指定输出 - -```python -# PyTorch 写法 -torch.arange(5, out=y) - -# Paddle 写法 -paddle.assign(paddle.arange(5), y) -``` - -#### device: Tensor 的设备 - -```python -# PyTorch 写法 -y = torch.arange(5, device=torch.device('cpu')) - -# Paddle 写法 -y = paddle.arange(5) -y.cpu() -``` - -#### requires_grad:是否求梯度 - -```python -# PyTorch 写法 -y = torch.arange(5, requires_grad=True) - -# Paddle 写法 -y = paddle.arange(5) -y.stop_gradient = False -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.asarray.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.asarray.md deleted file mode 100644 index cad5938d7d1..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.asarray.md +++ /dev/null @@ -1,37 +0,0 @@ -## [torch 参数更多]torch.asarray - -### [torch.asarray](https://pytorch.org/docs/stable/generated/torch.asarray.html#torch.asarray) - -```python -torch.asarray(obj, *, dtype=None, device=None, copy=None, requires_grad=False) -``` - -### [paddle.to_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/to_tensor_cn.html) - -```python -paddle.to_tensor(data, dtype=None, place=None, stop_gradient=True) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------- | ------------------------------------------------------------------------ | -| obj | data | 初始化 Tensor 的数据,仅参数名不一致。 | -| dtype | dtype | 创建 Tensor 的数据类型。 | -| device | place | 创建 Tensor 的设备位置。 | -| copy | - | 是否和原 Tensor 共享内存,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| requires_grad | stop_gradient | 是否阻断 Autograd 的梯度传导,PyTorch 和 Paddle 取值相反,需要转写。 | - -### 转写示例 - -#### requires_grad 参数:是否阻断 Autograd 的梯度传导 - -```python -# PyTorch 写法: -torch.asarray(x, requires_grad=False) - -# Paddle 写法: -paddle.to_tensor(x, stop_gradient=True) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.autograd.Function.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.autograd.Function.md deleted file mode 100644 index bc50bde43fa..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.autograd.Function.md +++ /dev/null @@ -1,22 +0,0 @@ -## [torch 参数更多]torch.autograd.Function - -### [torch.autograd.Function](https://pytorch.org/docs/stable/autograd.html#torch.autograd.Function) - -```python -torch.autograd.Function(*args, **kwargs) -``` - -### [paddle.autograd.PyLayer](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/autograd/PyLayer_cn.html#paddle.autograd.PyLayer) - -```python -paddle.autograd.PyLayer() -``` - -其中 PyTorch 相比 Paddle 支持更多其他参数,但该类一般用于继承实现,不会调用其参数。 - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ----------------------------------------- | -| args | - | 自定义参数,Paddle 无此参数,可直接删除。 | -| kwargs | - | 自定义参数,Paddle 无此参数,可直接删除。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.bmm.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.bmm.md deleted file mode 100644 index a4a8723ad0d..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.bmm.md +++ /dev/null @@ -1,35 +0,0 @@ -## [ torch 参数更多]torch.bmm - -### [torch.bmm](https://pytorch.org/docs/stable/generated/torch.bmm.html?highlight=bmm#torch.bmm) - -```python -torch.bmm(input,mat2,*,out=None) -``` - -### [paddle.bmm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/bmm_cn.html) - -```python -paddle.bmm(x,y,name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------- | ------- | -| input | x | 表示输入的第一个 Tensor ,仅参数名不一致。 | -| mat2 | y | 表示输入的第二个 Tensor ,仅参数名不一致。 | -| out | - | 表示输出的 Tensor , Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### out: 输出的 Tensor - -```python -# PyTorch 写法 -torch.bmm(x, y, out=output) - -# Paddle 写法 -paddle.assign(paddle.bmm(x, y), output) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.cat.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.cat.md deleted file mode 100644 index 1bee6ecaeaf..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.cat.md +++ /dev/null @@ -1,32 +0,0 @@ -## [torch 参数更多 ]torch.cat -### [torch.cat](https://pytorch.org/docs/stable/generated/torch.cat.html?highlight=cat#torch.cat) - -```python -torch.cat(tensors, dim=0, *, out=None) -``` - -### [paddle.concat](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/concat_cn.html#concat) - -```python -paddle.concat(x, axis=0, name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| tensors | x | 表示输入的 Tensor ,仅参数名不一致。 | -| dim | axis | 表示连接的维度,仅参数名不一致。 | -| out | - | 表示输出的 Tensor , Paddle 无此参数,需要转写。 | - - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.cat([x, y], out=y) - -# Paddle 写法 -paddle.assign(paddle.concat([x, y]), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.ceil.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.ceil.md deleted file mode 100644 index 012434f13e6..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.ceil.md +++ /dev/null @@ -1,35 +0,0 @@ -## [ torch 参数更多 ]torch.ceil - -### [torch.ceil](https://pytorch.org/docs/stable/generated/torch.ceil.html#torch.ceil) - -```python -torch.ceil(input, - *, - out=None) -``` - -### [paddle.ceil](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/ceil_cn.html) - -```python -paddle.ceil(x, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| out | - | 表示输出的结果 Tensor,Paddle 无此参数,需要转写。| - - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.ceil(torch.tensor([-0.6341, -1.4208]), out=y) - -# Paddle 写法 -paddle.assign(paddle.ceil(paddle.to_tensor([-0.6341, -1.4208])), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.clamp.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.clamp.md deleted file mode 100644 index afedaf16dbe..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.clamp.md +++ /dev/null @@ -1,40 +0,0 @@ -## [ torch 参数更多 ]torch.clamp -### [torch.clamp](https://pytorch.org/docs/stable/generated/torch.clamp.html#torch-clamp) - -```python -torch.clamp(input, - min=None, - max=None, - *, - out=None) -``` - -### [paddle.clip](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/clip_cn.html#clip) - -```python -paddle.clip(x, - min=None, - max=None, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| min | min | 表示裁剪的最小值。 | -| max | max | 表示裁剪的最大值。 | -| out | - | 表示输出的 Tensor , Paddle 无此参数,需要转写。 | - - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.clamp(torch.tensor([-1.7120, 0.1734]), min=-0.5, max=0.5, out=y) - -# Paddle 写法 -paddle.assign(paddle.clip(paddle.to_tensor([-1.7120, 0.1734]), min=-0.5, max=0.5), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.complex.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.complex.md deleted file mode 100644 index 2e749ab152a..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.complex.md +++ /dev/null @@ -1,34 +0,0 @@ -## [ torch 参数更多 ]torch.complex - - -### [torch.complex](https://pytorch.org/docs/stable/generated/torch.complex.html) - -```python -torch.complex(real, imag, *, out=None) -``` - -### [paddle.complex](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/complex_cn.html#complex) - -```python -paddle.complex(real, imag, name=None) -``` - -其中,PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -- | -| real | real | 实部,数据类型为:float32 或 float64。 | -| imag | imag | 虚部,数据类型和 real 相同。 | -| out | - | 输出 Tensor。 | - -### 转写示例 - -```python -# PyTorch 写法 -torch.complex(a, b, out=out) - -# Paddle 写法 -paddle.assign(paddle.complex(a, b), out) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.cos.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.cos.md deleted file mode 100644 index d8ab7b7caf3..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.cos.md +++ /dev/null @@ -1,34 +0,0 @@ -## [ torch 参数更多 ]torch.cos -### [torch.cos](https://pytorch.org/docs/stable/generated/torch.cos.html#torch-cos) - -```python -torch.cos(input, - *, - out=None) -``` - -### [paddle.cos](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/cos_cn.html#cos) - -```python -paddle.cos(x, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor,仅参数名不一致。 | -| out | - | 表示输出的 Tensor,Paddle 无此参数,需要转写。 | - - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.cos(torch.tensor([1.4309, 1.2706]), out=y) - -# Paddle 写法 -paddle.assign(paddle.cos(paddle.to_tensor([1.4309, 1.2706])), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.cumsum.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.cumsum.md deleted file mode 100644 index 1f20d5cef23..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.cumsum.md +++ /dev/null @@ -1,42 +0,0 @@ -## [torch 参数更多 ]torch.cumsum - -### [torch.cumsum](https://pytorch.org/docs/stable/generated/torch.cumsum.html?highlight=cumsum#torch.cumsum) - -```python -torch.cumsum(input, - dim, - *, - dtype=None, - out=None) -``` - -### [paddle.cumsum](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/cumsum_cn.html#cumsum) - -```python -paddle.cumsum(x, - axis=None, - dtype=None, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 输入的 Tensor ,仅参数名不一致。 | -| dim | axis | 指明需要累加的维度,仅参数名不一致。 | -| dtype | dtype | 输出 Tensor 的数据类型,默认为 None,参数名相同。 | -| out | - | 表示输出的 Tensor ,Paddle 无此参数,需要转写。 | - - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.cumsum(input, dim=-1, dtype='float64', out=y) - -# Paddle 写法 -paddle.assign(paddle.cumsum(input, dim=-1, dtype='float64'), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.diff.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.diff.md deleted file mode 100644 index 78da648f364..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.diff.md +++ /dev/null @@ -1,46 +0,0 @@ -## [ torch 参数更多 ]torch.diff -### [torch.diff](https://pytorch.org/docs/stable/generated/torch.diff.html?highlight=diff#torch.diff) - -```python -torch.diff(input, - n=1, - dim=-1, - prepend=None, - append=None, - *, - out=None) -``` - -### [paddle.diff](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/diff_cn.html#diff) - -```python -paddle.diff(x, - n=1, - axis=-1, - prepend=None, - append=None, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| n | n | 表示需要计算前向差值的次数。 | -| dim | axis | 表示进行运算的轴,仅参数名不一致。 | -| prepend | prepend | 表示在计算前向差值之前,沿着指定维度 axis 附加到输入 x 的前面。 | -| append | append | 表示在计算前向差值之前,沿着指定维度 axis 附加到输入 x 的后面。 | -| out | - | 表示输出的 Tensor,Paddle 无此参数,需要转写。 | - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.diff(torch.tensor([3, 5]), out=y) - -# Paddle 写法 -paddle.assign(paddle.diff(paddle.to_tensor([3, 5])), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.div.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.div.md deleted file mode 100644 index 2b9088273a4..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.div.md +++ /dev/null @@ -1,62 +0,0 @@ -## [ torch 参数更多 ]torch.div -### [torch.div](https://pytorch.org/docs/stable/generated/torch.div.html#torch.div) -```python -torch.div(input, - other, - *, - rounding_mode=None, - out=None) -``` - -### [paddle.divide](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/divide_cn.html) -```python -paddle.divide(x, - y, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor,仅参数名不一致。 | -| other | y | 表示输入的 Tensor,仅参数名不一致。 | -| rounding_mode | - | 表示舍入模式,Paddle 无此参数, 需要转写。 | -| out | - | 表示输出的 Tensor,Paddle 无此参数,需要转写。 | - - -### 转写示例 -#### rounding_mode: 舍入模式 -```python -# PyTorch 写法 (rounding_mode 参数设置为 None) -x = torch.div(torch.tensor([2, 3, 4]), torch.tensor([1, 5, 2])) - -# Paddle 写法 -a = paddle.to_tensor([2, 3, 4], dtype='float64') -b = paddle.to_tensor([1, 5, 2], dtype='float64') -x = paddle.divide(a, b) - -# PyTorch 写法 (rounding_mode 参数设置为"trunc") -x = torch.div(torch.tensor([-0.3711, -1.9353]), torch.tensor([0.8032, 0.2930]), rounding_mode='trunc') - -# Paddle 写法 -x = paddle.divide(paddle.to_tensor([-0.3711, -1.9353]), paddle.to_tensor([0.8032, 0.2930])) -x = paddle.trunc(x) - -# PyTorch 写法 (rounding_mode 参数设置为"floor") -x = torch.div(torch.tensor([-0.3711, -1.9353]), torch.tensor([0.8032, 0.2930]), rounding_mode='floor') - -# Paddle 写法 -x = paddle.divide(paddle.to_tensor([-0.3711, -1.9353]), paddle.to_tensor([0.8032, 0.2930])) -x = paddle.floor(x) -``` - -#### out:指定输出 -```python -# PyTorch 写法 -torch.div(torch.tensor([2, 3, 4]), torch.tensor([1, 5, 2]), out=y) - -# Paddle 写法 -paddle.assign(paddle.divide(paddle.to_tensor([2, 3, 4]), paddle.to_tensor([1, 5, 2])), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.dot.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.dot.md deleted file mode 100644 index 07074938e05..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.dot.md +++ /dev/null @@ -1,35 +0,0 @@ -## [torch 参数更多 ]torch.dot - -### [torch.dot](https://pytorch.org/docs/stable/generated/torch.dot.html?highlight=dot#torch.dot) - -```python -torch.dot(input, tensor, *, out=None) -``` - -### [paddle.dot](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/dot_cn.html#dot) - -```python -paddle.dot(x, y, name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 输入的 Tensor ,仅参数名不一致。 | -| tensor | y | 输入的 Tensor ,仅参数名不一致。 | -| out | - | 表示输出的 Tensor,Paddle 无此参数,需要转写。 | - - -### 转写示例 - -#### out:指定输出 -```python -# PyTorch 写法 -torch.dot(torch.tensor([2, 3]), torch.tensor([2, 1]), out=y) - -# Paddle 写法 -paddle.assign(paddle.dot(paddle.to_tensor([2, 3]), paddle.to_tensor([2, 1])), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.empty.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.empty.md deleted file mode 100644 index c169482b70a..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.empty.md +++ /dev/null @@ -1,92 +0,0 @@ -## [torch 参数更多]torch.empty - -### [torch.empty](https://pytorch.org/docs/stable/generated/torch.empty.html?highlight=empty#torch.empty) - -```python -torch.empty(*size, - *, - out=None, - dtype=None, - layout=torch.strided, - device=None, - requires_grad=False, - pin_memory=False, - memory_format=torch.contiguous_format) -``` - -### [paddle.empty](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/empty_cn.html) - -```python -paddle.empty(shape, - dtype=None, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------------ | -| *size | shape | 表示输出形状大小, PyTorch 是可变参数用法, Paddle 是列表或元组,需要转写。 | -| out | - | 表示输出的 Tensor,Paddle 无此参数,需要转写。 | -| dtype | dtype | 表示输出 Tensor 类型。 | -| layout | - | 表示布局方式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| device | - | 表示 Tensor 存放设备位置,Paddle 无此参数,需要转写。 | -| requires_grad | - | 表示是否计算梯度,Paddle 无此参数,需要转写。 | -| pin_memory | - | 表示是否使用锁页内存, Paddle 无此参数,需要转写。 | -| memory_format | - | 表示内存格式, Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | - -### 转写示例 - -#### size:输出形状大小 - -```python -# PyTorch 写法 -torch.empty(3, 5) - -# Paddle 写法 -paddle.empty([3, 5]) -``` - -#### out:指定输出 - -```python -# PyTorch 写法 -torch.empty((3, 5), out=y) - -# Paddle 写法 -paddle.assign(paddle.empty([3, 5]), y) -``` - -#### device: Tensor 的设备 - -```python -# PyTorch 写法 -y = torch.empty((3, 5), device=torch.device('cpu')) - -# Paddle 写法 -y = paddle.empty([3, 5]) -y.cpu() -``` - -#### requires_grad:是否求梯度 - -```python -# PyTorch 写法 -y = torch.empty((3, 5), requires_grad=True) - -# Paddle 写法 -y = paddle.empty([3, 5]) -y.stop_gradient = False -``` - -#### pin_memory:是否分配到固定内存上 - -```python -# PyTorch 写法 -y = torch.empty((3, 5), pin_memory=True) - -# Paddle 写法 -y = paddle.empty([3, 5]).pin_memory() -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.empty_like.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.empty_like.md deleted file mode 100644 index 37a0c1285d2..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.empty_like.md +++ /dev/null @@ -1,58 +0,0 @@ -## [torch 参数更多]torch.empty_like - -### [torch.empty_like](https://pytorch.org/docs/stable/generated/torch.empty_like.html?highlight=empty_like#torch.empty_like) - -```python -torch.empty_like(input, - *, - dtype=None, - layout=None, - device=None, - requires_grad=False, - memory_format=torch.preserve_format) -``` - -### [paddle.empty_like](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/empty_like_cn.html) - -```python -paddle.empty_like(x, - dtype=None, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| dtype | dtype | 表示输出 Tensor 类型。 | -| layout | - | 表示布局方式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| device | - | 表示 Tensor 存放设备位置,Paddle 无此参数,需要转写。 | -| requires_grad | - | 表示是否计算梯度,Paddle 无此参数,需要转写。 | -| memory_format | - | 表示内存格式, Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | - -### 转写示例 - -#### device: Tensor 的设备 - -```python -# PyTorch 写法 -y = torch.empty_like(x, device=torch.device('cpu')) - -# Paddle 写法 -y = paddle.empty_like(x) -y.cpu() -``` - -#### requires_grad:是否求梯度 - -```python -# PyTorch 写法 -y = torch.empty_like(x, requires_grad=True) - -# Paddle 写法 -y = paddle.empty_like(x) -y.stop_gradient = False -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.eq.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.eq.md deleted file mode 100644 index e40ca557465..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.eq.md +++ /dev/null @@ -1,34 +0,0 @@ -## [ torch 参数更多 ]torch.eq - -### [torch.eq](https://pytorch.org/docs/stable/generated/torch.eq.html) - -```python -torch.eq(input, other, *, out) -``` - -### [paddle.equal](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/equal_cn.html#equal) - -```python -paddle.equal(x, y) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | --------------------------- | -| input | x | 输入 Tensor,仅参数名不一致。 | -| other | y | 输入 Tensor,仅参数名不一致。 | -| out | - | 表示输出的 Tensor ,Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### out 参数:指定输出 -``` python -# PyTorch 写法: -torch.eq(x, y, out=out) - -# Paddle 写法: -paddle.assign(paddle.equal(x, y), out) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.eye.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.eye.md deleted file mode 100644 index 8941c2b9880..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.eye.md +++ /dev/null @@ -1,71 +0,0 @@ -## [torch 参数更多]torch.eye - -### [torch.eye](https://pytorch.org/docs/stable/generated/torch.eye.html?highlight=eye#torch.eye) - -```python -torch.eye(n, - m=None, - *, - out=None, - dtype=None, - layout=torch.strided, - device=None, - requires_grad=False) -``` - -### [paddle.eye](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/eye_cn.html) - -```python -paddle.eye(num_rows, - num_columns=None, - dtype=None, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------------ | -| n | num_rows | 表示生成 2-D Tensor 的行数,仅参数名不一致。 | -| m | num_columns | 表示生成 2-D Tensor 的列数, 仅参数名不一致。 | -| out | - | 表示输出的 Tensor,Paddle 无此参数,需要转写。 | -| dtype | dtype | 表示输出 Tensor 类型。 | -| layout | - | 表示布局方式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| device | - | 表示 Tensor 存放设备位置,Paddle 无此参数,需要转写。 | -| requires_grad | - | 表示是否计算梯度,Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### out:指定输出 - -```python -# PyTorch 写法 -torch.eye(3, out=y) - -# Paddle 写法 -paddle.assign(paddle.eye(3), y) -``` - -#### device: Tensor 的设备 - -```python -# PyTorch 写法 -torch.eye(3, device=torch.device('cpu')) - -# Paddle 写法 -y = paddle.eye(3) -y.cpu() -``` - -#### requires_grad:是否求梯度 - -```python -# PyTorch 写法 -y = torch.eye(3, requires_grad=True) - -# Paddle 写法 -y = paddle.eye(3) -y.stop_gradient = False -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.floor.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.floor.md deleted file mode 100644 index 95e856ed929..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.floor.md +++ /dev/null @@ -1,33 +0,0 @@ -## [torch 参数更多]torch.floor -### [torch.floor](https://pytorch.org/docs/stable/generated/torch.floor.html?highlight=torch+floor#torch.floor) - -```python -torch.floor(input, - *, - out=None) -``` - -### [paddle.floor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/floor_cn.html#floor) - -```python -paddle.floor(x, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| out | - | 表示输出的 Tensor , Paddle 无此参数,需要转写。 | - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.floor(torch.tensor([-0.4, -0.2, 0.1, 0.3]), out=y) - -# Paddle 写法 -paddle.assign(paddle.floor(paddle.to_tensor([-0.4, -0.2, 0.1, 0.3])), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.full.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.full.md deleted file mode 100644 index a6943235952..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.full.md +++ /dev/null @@ -1,71 +0,0 @@ -## [torch 参数更多]torch.full - -### [torch.full](https://pytorch.org/docs/stable/generated/torch.full.html?highlight=ful#torch.full) - -```python -torch.full(size, - fill_value, - *, - out=None, - dtype=None, - layout=torch.strided, - device=None, - requires_grad=False) -``` - -### [paddle.full](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/full_cn.html) - -```python -paddle.full(shape, - fill_value, - dtype=None, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------------ | -| size | shape | 表示创建 Tensor 的形状,仅参数名不一致。 | -| fill_value | fill_value | 表示初始化输出 Tensor 的常量数据的值 | -| out | - | 表示输出的 Tensor,Paddle 无此参数,需要转写。 | -| dtype | dtype | 表示输出 Tensor 类型。 | -| layout | - | 表示布局方式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| device | - | 表示 Tensor 存放设备位置,Paddle 无此参数,需要转写。 | -| requires_grad | - | 表示是否计算梯度,Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### out:指定输出 - -```python -# PyTorch 写法 -torch.full([3, 5], 1., out=y) - -# Paddle 写法 -paddle.assign(paddle.full([3, 5], 1.), y) -``` - -#### device: Tensor 的设备 - -```python -# PyTorch 写法 -y = torch.full([3, 5], 1., device=torch.device('cpu')) - -# Paddle 写法 -y = paddle.full([3, 5], 1.) -y.cpu() -``` - -#### requires_grad:是否求梯度 - -```python -# PyTorch 写法 -y = torch.full([3, 5], 1., requires_grad=True) - -# Paddle 写法 -y = paddle.full([3, 5], 1.) -y.stop_gradient = False -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.full_like.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.full_like.md deleted file mode 100644 index 47957302b30..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.full_like.md +++ /dev/null @@ -1,57 +0,0 @@ -## [torch 参数更多 ]torch.full_like -### [torch.full_like](https://pytorch.org/docs/stable/generated/torch.full_like.html?highlight=full_like#torch.full_like) - -```python -torch.full_like(input, - fill_value, - *, - dtype=None, - layout=torch.strided, - device=None, - requires_grad=False, - memory_format=torch.preserve_format) -``` - -### [paddle.full_like](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/full_like_cn.html#full-like) - -```python -paddle.full_like(x, - fill_value, - dtype=None, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| fill_value | fill_value | 表示填充值。 | -| dtype | dtype | 表示数据类型。| -| layout | - | 表示布局方式, Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| device | - | 表示 Tensor 存放设备位置,Paddle 无此参数,需要转写。 | -| requires_grad | - | 表示是否计算梯度, Paddle 无此参数,需要转写。 | -| memory_format | - | 表示内存格式, Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。| - - -### 转写示例 - -#### device: Tensor 的设备 -```python -# PyTorch 写法 -torch.full_like(x, 1., device=torch.device('cpu')) - -# Paddle 写法 -y = paddle.full_like(x, 1.) -y.cpu() - -#### requires_grad:是否需要求反向梯度,需要修改该 Tensor 的 stop_gradient 属性 -```python -# PyTorch 写法 -x = torch.full_like([3, 5], 1., requires_grad=True) - -# Paddle 写法 -x = paddle.full_like([3, 5], 1.) -x.stop_gradient = False -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.gather.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.gather.md deleted file mode 100644 index 8932011a337..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.gather.md +++ /dev/null @@ -1,44 +0,0 @@ -## [torch 参数更多 ]torch.gather -### [torch.gather](https://pytorch.org/docs/stable/generated/torch.gather.html?highlight=gather#torch.gather) - -```python -torch.gather(input, - dim, - index, - *, - sparse_grad=False, - out=None) -``` - -### [paddle.gather](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/gather_cn.html#gather) - -```python -paddle.gather(input, - dim, - index, - out=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | input | 表示输入 Tensor ,参数名保持一致。 | -| dim | dim | 用于指定 index 获取输入的维度,参数名保持一致。 | -| index | index | 聚合元素的索引矩阵,维度和输入 (input) 的维度一致,参数名保持一致。 | -| sparse_grad | - | 表示是否对梯度稀疏化,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| out | out | 表示目标 Tensor ,用于引用式返回结果,保持一致。 | - - -### 转写示例 -#### out:指定输出 -``` python -# PyTorch 写法: -t = torch.tensor([[1, 2], [3, 4]]) -torch.gather(t, dim = 1, index = torch.tensor([[0, 0], [1, 0]]), out = y) - -# Paddle 写法: -t = paddle.to_tensor([[1, 2], [3, 4]]) -paddle.gather(t, dim = 1, index = paddle.to_tensor([[0, 0], [1, 0]]), out = y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.ger.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.ger.md deleted file mode 100644 index 2a40331b2b2..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.ger.md +++ /dev/null @@ -1,35 +0,0 @@ -## [torch 参数更多 ]torch.ger - -### [torch.ger](https://pytorch.org/docs/stable/generated/torch.ger.html?highlight=ger#torch.ger) - -```python -torch.ger(input, vec2, *, out=None) -``` - -### [paddle.outer](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/outer_cn.html) - -```python -paddle.outer(x, y, name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 输入的 Tensor ,仅参数名不一致。 | -| vec2 | y | 输入的 Tensor ,仅参数名不一致。 | -| out | - | 表示输出的 Tensor,Paddle 无此参数,需要转写。 | - - -### 转写示例 - -#### out:指定输出 -```python -# PyTorch 写法 -torch.ger([1., 2., 3., 4.], [1., 2., 3.], out=y) - -# Paddle 写法 -paddle.assign(paddle.outer([1., 2., 3., 4.], [1., 2., 3.]), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.gt.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.gt.md deleted file mode 100644 index 2f1eee179a9..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.gt.md +++ /dev/null @@ -1,33 +0,0 @@ -## [torch 参数更多 ]torch.gt - -### [torch.gt](https://pytorch.org/docs/stable/generated/torch.gt.html) - -```python -torch.gt(input, other, *, out=None) -``` - -### [paddle.greater_than](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/greater_than_cn.html) - -```python -paddle.greater_than(x, y, name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| other | y | 表示输入的 Tensor ,仅参数名不一致。 | -| out | - | 表示输出的 Tensor , Paddle 无此参数,需要转写。 | - - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.gt(x, y, out=output) - -# Paddle 写法 -paddle.assign(paddle.greater_than(x,y), output) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.index_select.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.index_select.md deleted file mode 100644 index 1e79c48e659..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.index_select.md +++ /dev/null @@ -1,39 +0,0 @@ -## [torch 参数更多 ]torch.index_select -### [torch.index_select](https://www.paddlepaddle.org.cn/documentation/docs/stable/develop/api/paddle/index_select_cn.html#index-select) - -```python -torch.index_select(input, - dim, - index, - *, - out=None) -``` - -### [paddle.index_select](https://www.paddlepaddle.org.cn/documentation/docs/stable/develop/api/paddle/index_select_cn.html#index-select) - -```python -paddle.index_select(x, - index, - axis=0, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| dim | axis | 表示进行运算的轴,仅参数名不一致。 | -| out | - | 表示输出的 Tensor , Paddle 无此参数,需要转写。 | - - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.index_select(x, dim=1, index=index, out=y) - -# Paddle 写法 -paddle.assign(paddle.index_select(x, axis=1, index=index), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.norm.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.norm.md deleted file mode 100644 index 5721eaa3f3d..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.norm.md +++ /dev/null @@ -1,47 +0,0 @@ -## [ torch 参数更多 ]torch.linalg.norm - -### [torch.linalg.norm](https://pytorch.org/docs/stable/generated/torch.linalg.norm.html#torch.linalg.norm) - -```python -torch.linalg.norm(input, ord=None, dim=None, keepdim=False, *, out=None, dtype=None) -``` - -### [paddle.linalg.norm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/norm_cn.html#norm) - -```python -paddle.linalg.norm(x, p='fro', axis=None, keepdim=False, name=None) -``` - -PyTorch 支持更多的参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的一个 tensor 列表 ,仅参数名不一致。 | -| ord | p | 范数的种类。参数不一致。PyTorch 支持负实数的范数,Paddle 不支持,暂无转写方式。 | -| dim | axis | 使用范数计算的轴 ,仅参数名不一致。 | -| keepdim | keepdim | 是否在输出的 Tensor 中保留和输入一样的维度。 | -| out | - | 表示输出的 Tensor , Paddle 无此参数,需要转写。 | -| dtype | - | 表示输出 Tensor 的数据类型, Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### out:指定输出 - -```python -# PyTorch 写法 -torch.linalg.norm(x, out=y) - -# Paddle 写法 -paddle.assign(paddle.linalg.norm(x), y) -``` - -#### dtype:表示输出 Tensor 的数据类型 - -```python -# PyTorch 写法 -torch.linalg.norm(x, dtype=torch.float64) - -# Paddle 写法 -paddle.linalg.norm(x.astype(paddle.float64)) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.vector_norm.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.vector_norm.md deleted file mode 100644 index 22a27ac7f5d..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.vector_norm.md +++ /dev/null @@ -1,48 +0,0 @@ -## [torch 参数更多]torch.linalg.vector_norm - -### [torch.linalg.vector_norm](https://pytorch.org/docs/stable/generated/torch.linalg.vector_norm.html#torch.linalg.vector_norm) - -```python -torch.linalg.vector_norm(x, ord=2, dim=None, keepdim=False, *, dtype=None, out=None) -``` - -### [paddle.linalg.vector_norm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/vector_norm_cn.html) - -```python -paddle.linalg.vector_norm(x, p=2.0, axis=None, keepdim=False, name=None) -``` - -其中 PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ------------------------------------------------------------------------------- | -| x | x | 输入 Tensor。 | -| ord | p | 范数的种类,仅参数名不一致。 | -| dim | axis | 使用范数计算的轴 ,仅参数名不一致。 | -| keepdim | keepdim | 是否在输出的 Tensor 中保留和输入一样的维度。 | -| dtype | - | 表示输出 Tensor 的数据类型, Paddle 无此参数,需要转写。 | -| out | - | 表示输出的 Tensor , Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### out:指定输出 - -```python -# PyTorch 写法 -torch.linalg.vector_norm(x, out=y) - -# Paddle 写法 -paddle.assign(paddle.linalg.vector_norm(x), y) -``` - -#### dtype:表示输出 Tensor 的数据类型 - -```python -# PyTorch 写法 -torch.linalg.vector_norm(x, dtype=torch.float64) - -# Paddle 写法 -paddle.linalg.vector_norm(x.astype(paddle.float64)) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.log.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.log.md deleted file mode 100644 index 266db807ce1..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.log.md +++ /dev/null @@ -1,33 +0,0 @@ -## [torch 参数更多 ]torch.log -### [torch.log](https://pytorch.org/docs/stable/generated/torch.log.html?highlight=log#torch.log) - -```python -torch.log(input, - *, - out=None) -``` - -### [paddle.log](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/log_cn.html#log) - -```python -paddle.log(x, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| out | - | 表示输出的 Tensor , Paddle 无此参数,需要转写。 | - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.log(input, out=y) - -# Paddle 写法 -paddle.assign(paddle.log(input), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.log2.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.log2.md deleted file mode 100644 index a3073387fc9..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.log2.md +++ /dev/null @@ -1,34 +0,0 @@ -## [torch 参数更多 ]torch.log2 -### [torch.log2](https://pytorch.org/docs/stable/generated/torch.log2.html?highlight=log2#torch.log2) - -```python -torch.log2(input, - *, - out=None) -``` - -### [paddle.log2](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/log2_cn.html#log2) - -```python -paddle.log2(x, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| out | - | 表示输出的 Tensor , Paddle 无此参数,需要转写。 | - - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.log2(input, out=y) - -# Paddle 写法 -paddle.assign(paddle.log2(input), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.masked_select.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.masked_select.md deleted file mode 100644 index 987e09f5119..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.masked_select.md +++ /dev/null @@ -1,37 +0,0 @@ -## [torch 参数更多 ]torch.masked_select -### [torch.masked_select](https://pytorch.org/docs/stable/generated/torch.masked_select.html?highlight=masked_select#torch.masked_select) - -```python -torch.masked_select(input, - mask, - *, - out=None) -``` - -### [paddle.masked_select](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/masked_select_cn.html#masked-select) - -```python -paddle.masked_select(x, - mask, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| mask | mask | 表示用于索引的二进制掩码的 Tensor 。 | -| out | - | 表示输出的 Tensor , Paddle 无此参数,需要转写。 | - - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.masked_select(x, mask, out=y) - -# Paddle 写法 -paddle.assign(paddle.masked_select(x, mask), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.matmul.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.matmul.md deleted file mode 100644 index 0d7b3c99805..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.matmul.md +++ /dev/null @@ -1,38 +0,0 @@ -## [torch 参数更多 ]torch.matmul -### [torch.matmul](https://pytorch.org/docs/stable/generated/torch.matmul.html?highlight=matmul#torch.matmul) -```python -torch.matmul(input, - other, - out=None) -``` - -### [paddle.matmul](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/matmul_cn.html) -```python -paddle.matmul(x, - y, - transpose_x=False, - transpose_y=False, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的第一个 Tensor ,仅参数名不一致。 | -| other | y | 表示输入的第二个 Tensor ,仅参数名不一致。 | -| - | transpose_x | 表示相乘前是否转置 x,PyTorch 无此参数,Paddle 保持默认即可。 | -| - | transpose_y | 表示相乘前是否转置 y,PyTorch 无此参数,Paddle 保持默认即可。 | -| out | - | 表示输出的 Tensor,Paddle 无此参数,需要转写。 | - - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.matmul(a, b, out=y) - -# Paddle 写法 -paddle.assign(paddle.matmul(a, b), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.maximum.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.maximum.md deleted file mode 100644 index f6b55f6e95d..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.maximum.md +++ /dev/null @@ -1,33 +0,0 @@ -## [torch 参数更多 ]torch.maximum - -### [torch.maximum](https://pytorch.org/docs/stable/generated/torch.maximum.html#torch.maximum) - -```python -torch.maximum(input, other, *, out=None) -``` - -### [paddle.maximum](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/maximum_cn.html) - -```python -paddle.maximum(x, y, name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| other | y | 表示输入的 Tensor ,仅参数名不一致。 | -| out | - | 表示输出的 Tensor , Paddle 无此参数,需要转写。 | - - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.maximum(x, y, out=output) - -# Paddle 写法 -paddle.assign(paddle.maximum(x,y), output) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.mean.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.mean.md deleted file mode 100644 index b9e660c6ac0..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.mean.md +++ /dev/null @@ -1,47 +0,0 @@ -## [ torch 参数更多 ]torch.mean - -### [torch.mean](https://pytorch.org/docs/stable/generated/torch.mean.html) - -```python -torch.mean(input, dim, keepdim=False, *, dtype=None, out=None) -``` - -### [paddle.mean](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/mean_cn.html#mean) - -```python -paddle.mean(x, axis=None, keepdim=False, name=None) -``` - -其中 PyTorch 和 Paddle 功能一致,仅参数名不一致,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -- | -| input | x | 输入 Tensor,仅参数名不一致。 | -| dim | axis | 指定对 x 进行计算的轴,仅参数名不一致。 | -| keepdim | keepdim | 是否在输出 Tensor 中保留减小的维度。 | -| dtype | - | 输出 Tensor 的类型,Paddle 无此参数, 需要转写。 | -| out | - | 输出 Tensor,Paddle 无此参数, 需要转写。 | - -### 转写示例 - -#### dtype:输出数据类型 - -```python -# PyTorch 写法 -torch.mean(x, dtype=torch.float32) - -# Paddle 写法 -paddle.mean(x).astype(paddle.float32) -``` - -#### out:输出 Tensor - -```python -# PyTorch 写法 -torch.mean(x, out=y) - -# Paddle 写法 -paddle.assign(paddle.mean(x), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.minimum.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.minimum.md deleted file mode 100644 index e7bd305b8f2..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.minimum.md +++ /dev/null @@ -1,33 +0,0 @@ -## [torch 参数更多 ]torch.minimum - -### [torch.minimum](https://pytorch.org/docs/stable/generated/torch.minimum.html#torch.minimum) - -```python -torch.minimum(input, other, *, out=None) -``` - -### [paddle.minimum](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/minimum_cn.html) - -```python -paddle.minimum(x, y, name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| other | y | 表示输入的 Tensor ,仅参数名不一致。 | -| out | - | 表示输出的 Tensor , Paddle 无此参数,需要转写。 | - - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.minimum(x, y, out=output) - -# Paddle 写法 -paddle.assign(paddle.minimum(x,y), output) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.msort.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.msort.md deleted file mode 100644 index e65bb4a681e..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.msort.md +++ /dev/null @@ -1,34 +0,0 @@ -## [ torch 参数更多 ]torch.msort - -### [torch.msort](https://pytorch.org/docs/stable/generated/torch.msort.html#torch.msort) - -```python -torch.msort(input, *, out=None) -``` - -### [paddle.sort](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sort_cn.html#sort) - -```python -paddle.sort(x, axis=-1, descending=False, name=None) -``` - -其中 PyTorch 与 Paddle 有不同的参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| - | axis | 排序的维度,当维度为 0 时,Paddle 与 PyTorch 功能一致。 | -| - | descending | 设置是否降序排列。PyTorch 无此参数,Paddle 保持默认即可。 | -| out | - | 表示输出的 Tensor , Paddle 无此参数,需要转写 。 | - -### 转写示例 -#### out:表示输出的 Tensor -```python -# PyTorch 写法 -torch.msort(input, out=out) - -# Paddle 写法 -paddle.assign(paddl.sort(input, axis=0), out) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.mul.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.mul.md deleted file mode 100644 index df23a182f9b..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.mul.md +++ /dev/null @@ -1,33 +0,0 @@ -## [ torch 参数更多 ]torch.mul - -### [torch.mul](https://pytorch.org/docs/stable/generated/torch.mul.html?highlight=torch+mul#torch.mul) - -```python -torch.mul(input, other, *, out=None) -``` - -### [paddle.multiply](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/multiply_cn.html) - -```python -paddle.multiply(x, y, name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ----------------------------------- | ------------ | ----------------------------------------------------------------------- | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| other | y | 表示输入的 Tensor ,仅参数名不一致。 | -| out | - | 表示输出的 Tensor , Paddle 无此参数,需要转写。 | - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.mul([3, 5], [1, 2], out=y) - -# Paddle 写法 -paddle.assign(paddle.multiply([3, 5], [1, 2]),y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.multinomial.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.multinomial.md deleted file mode 100644 index c9a408c702d..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.multinomial.md +++ /dev/null @@ -1,40 +0,0 @@ -## [ torch 参数更多 ]torch.multinomial -### [torch.multinomial](https://pytorch.org/docs/stable/generated/torch.multinomial.html#torch.multinomial) -```python -torch.multinomial(input, - num_samples, - replacement=False, - *, - generator=None, - out=None) -``` -### [paddle.multinomial](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/multinomial_cn.html) -```python -paddle.multinomial(x, - num_samples=1, - replacement=False, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor,仅参数名不一致。 | -| num_samples | num_samples | 表示采样的次数。 | -| replacement | replacement | 表示是否是可放回的采样。 | -| generator | - | 用于采样的伪随机数生成器,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| out | - | 表示输出的 Tensor,Paddle 无此参数,需要转写。 | - - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.multinomial(torch.tensor([0.3, 0.5, 0.2]), out=y) - -# Paddle 写法 -paddle.assign(paddle.multinomial(paddle.to_tensor([0.3, 0.5, 0.2])), y) -``` -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.SiLU.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.SiLU.md deleted file mode 100644 index d4764f585c7..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.SiLU.md +++ /dev/null @@ -1,21 +0,0 @@ -## [torch 参数更多]torch.nn.SiLU - -### [torch.nn.SiLU](https://pytorch.org/docs/stable/generated/torch.nn.SiLU.html#torch.nn.SiLU) - -```python -torch.nn.SiLU(inplace=False) -``` - -### [paddle.nn.Silu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Silu_cn.html) - -```python -paddle.nn.Silu(name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | --------------------------------------------------------------------------------------------------------------- | -| inplace | - | 表示在不更改变量的内存地址的情况下,直接修改变量的值,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.dropout1d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.dropout1d.md deleted file mode 100644 index ff17f73492b..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.dropout1d.md +++ /dev/null @@ -1,26 +0,0 @@ -## [ torch 参数更多 ]torch.nn.functional.dropout1d - -### [torch.nn.functional.dropout1d](https://pytorch.org/docs/stable/generated/torch.nn.functional.dropout1d.html#torch.nn.functional.dropout1d) - -```python -torch.nn.functional.dropout1d(input, p=0.5, training=True, inplace=False) -``` - -### [paddle.nn.functional.dropout](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/dropout_cn.html) - -```python -paddle.nn.functional.dropout(x, p=0.5, axis=None, training=True, mode='upscale_in_train', name=None) -``` - -PyTorch 对于 dropout1d/dropout2d/dropout3d,是将某个 Channel 以一定概率全部置 0,Paddle 是所有元素以一定概率置 0,但该差异一般不影响网络训练效果。 -其中 PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| -------- | ------------ | --------------------------------------------------------------------------------------------------------------- | -| input | x | 输入的多维 Tensor,仅参数名不一致。 | -| p | p | 将输入节点置 0 的概率,即丢弃概率。 | -| training | training | 标记是否为训练阶段。 | -| inplace | - | 表示在不更改变量的内存地址的情况下,直接修改变量的值,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| - | axis | 指定对输入 Tensor 进行 dropout 操作的轴,PyTorch 无此参数,Paddle 保持默认即可。 | -| - | mode | 标记是否为训练阶段,PyTorch 无此参数,Paddle 保持默认即可。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.utils.clip_grad_norm_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.utils.clip_grad_norm_.md similarity index 96% rename from docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.utils.clip_grad_norm_.md rename to docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.utils.clip_grad_norm_.md index c36f2598667..221a8eb3bf7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.utils.clip_grad_norm_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.utils.clip_grad_norm_.md @@ -1,4 +1,4 @@ -## [ 参数完全一致 ]torch.nn.utils.clip_grad_norm_ +## [ torch 参数更多 ]torch.nn.utils.clip_grad_norm_ ### [torch.nn.utils.clip_grad_norm_](https://pytorch.org/docs/stable/generated/torch.nn.utils.clip_grad_norm_.html?highlight=clip_grad_norm_#torch.nn.utils.clip_grad_norm_) ```python diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.utils.clip_grad_value_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.utils.clip_grad_value_.md similarity index 95% rename from docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.utils.clip_grad_value_.md rename to docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.utils.clip_grad_value_.md index 6b73fa219c8..11567bd8f23 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.utils.clip_grad_value_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.utils.clip_grad_value_.md @@ -1,4 +1,4 @@ -## [ 参数完全一致 ]torch.nn.utils.clip_grad_value_ +## [ torch 参数更多 ]torch.nn.utils.clip_grad_value_ ### [torch.nn.utils.clip_grad_value_](https://pytorch.org/docs/stable/generated/torch.nn.utils.clip_grad_value_.html?highlight=clip_grad_value_#torch.nn.utils.clip_grad_value_) ```python diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nonzero.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nonzero.md deleted file mode 100644 index 8ec6bbb90e6..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nonzero.md +++ /dev/null @@ -1,36 +0,0 @@ -## [ torch 参数更多 ]torch.nonzero -### [torch.nonzero](https://pytorch.org/docs/stable/generated/torch.nonzero.html#torch.nonzero) - -```python -torch.nonzero(input, - *, - out=None, - as_tuple=False) -``` - -### [paddle.nonzero](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nonzero_cn.html) - -```python -paddle.nonzero(x, - as_tuple=False) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| out | - | 表示输出的 Tensor , Paddle 无此参数,需要转写。 | -| as_tuple | as_tuple | bool 类型表示输出数据的格式,默认 False 时,输出一个张量,True 时输出一组一维张量。 | - - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.nonzero(torch.tensor([3, 5]), out=y) - -# Paddle 写法 -paddle.assign(paddle.nonzero(paddle.to_tensor([3, 5])), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.norm.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.norm.md deleted file mode 100644 index 027672939dd..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.norm.md +++ /dev/null @@ -1,47 +0,0 @@ -## [ torch 参数更多 ]torch.norm - -### [torch.norm](https://pytorch.org/docs/stable/generated/torch.norm.html) - -```python -torch.norm(input, p='fro', dim=None, keepdim=False, out=None, dtype=None) -``` - -### [paddle.linalg.norm](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/linalg/norm_cn.html#norm) - -```python -paddle.linalg.norm(x, p='fro', axis=None, keepdim=False, name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -- | -| input | x | 输入 Tensor,仅参数名不一致。 | -| p | p | 范数(ord)的种类。 | -| dim | axis | 使用范数计算的轴,仅参数名不一致。 | -| keepdim | keepdim | 是否在输出的 Tensor 中保留和输入一样的维度。 | -| out | - | 表示输出的 Tensor,Paddle 无此参数,需要转写。 | -| dtype | - | 表示输出 Tensor 的数据类型, Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### out 参数:指定输出 -``` python -# PyTorch 写法: -torch.norm(x, out=y) - -# Paddle 写法: -paddle.assign(paddle.linalg.norm(x) , y) -``` - -#### dtype:表示输出 Tensor 的数据类型 - -```python -# PyTorch 写法 -torch.norm(x, dtype=torch.float64) - -# Paddle 写法 -paddle.linalg.norm(x.astype(paddle.float64)) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.ones_like.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.ones_like.md deleted file mode 100644 index 736aaa80812..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.ones_like.md +++ /dev/null @@ -1,58 +0,0 @@ -## [torch 参数更多]torch.ones_like - -### [torch.ones_like](https://pytorch.org/docs/stable/generated/torch.ones_like.html?highlight=ones_like#torch.ones_like) - -```python -torch.ones_like(input, - *, - dtype=None, - layout=None, - device=None, - requires_grad=False, - memory_format=torch.preserve_format) -``` - -### [paddle.ones_like](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/ones_like_cn.html) - -```python -paddle.ones_like(x, - dtype=None, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------------ | -| input | x | 表示输入 Tensor ,仅名称不同。 | -| dtype | dtype | 表示输出 Tensor 类型。 | -| layout | - | 表示布局方式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| device | - | 表示 Tensor 存放设备位置,Paddle 无此参数,需要转写。 | -| requires_grad | - | 表示是否计算梯度,Paddle 无此参数,需要转写。 | -| memory_format | - | 表示内存格式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | - -### 转写示例 - -#### device: Tensor 的设备 - -```python -# PyTorch 写法 -y = torch.ones_like(x, device=torch.device('cpu')) - -# Paddle 写法 -y = paddle.ones_like(x) -y.cpu() -``` - -#### requires_grad:是否求梯度 - -```python -# PyTorch 写法 -y = torch.ones_like(x, requires_grad=True) - -# Paddle 写法 -y = paddle.ones_like(x) -y.stop_gradient = False -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.outer.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.outer.md deleted file mode 100644 index 0cd90043034..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.outer.md +++ /dev/null @@ -1,35 +0,0 @@ -## [torch 参数更多 ]torch.outer - -### [torch.outer](https://pytorch.org/docs/stable/generated/torch.outer.html#torch.outer) - -```python -torch.outer(input, vec2, *, out=None) -``` - -### [paddle.outer](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/outer_cn.html) - -```python -paddle.outer(x, y, name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 输入的 Tensor ,仅参数名不一致。 | -| vec2 | y | 输入的 Tensor ,仅参数名不一致。 | -| out | - | 表示输出的 Tensor,Paddle 无此参数,需要转写。 | - - -### 转写示例 - -#### out:指定输出 -```python -# PyTorch 写法 -torch.outer([1., 2., 3., 4.], [1., 2., 3.], out=y) - -# Paddle 写法 -paddle.assign(paddle.outer([1., 2., 3., 4.], [1., 2., 3.]), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.polar.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.polar.md deleted file mode 100644 index 1be20732538..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.polar.md +++ /dev/null @@ -1,33 +0,0 @@ -## [torch 参数更多 ]torch.polar - -### [torch.polar](https://pytorch.org/docs/stable/generated/torch.polar.html#torch.polar) -```python -torch.polar(abs, angle, *, out=None) -``` - -### [paddle.polar](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/polar_cn.html) - -```python -paddle.polar(abs, angle, name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ---------------------------------------------- | -| abs | abs | 输入的模,参数完全一致。 | -| angle | angle | 输入的相位角,参数完全一致。 | -| out | - | 输出 Tensor,Paddle 无此参数,需要转写。 | - - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.polar(abs, angle, out=y) - -# Paddle 写法 -paddle.assign(paddle.polar(abs, angle), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.pow.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.pow.md deleted file mode 100644 index 6872c23d5bb..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.pow.md +++ /dev/null @@ -1,38 +0,0 @@ -## [torch 参数更多 ]torch.pow - -### [torch.pow](https://pytorch.org/docs/stable/generated/torch.pow.html?highlight=pow#torch.pow) - -```python -torch.pow(input, - exponent, - *, - out=None) -``` - -### [paddle.pow](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/pow_cn.html) - -```python -paddle.pow(x, - y, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| exponent | y | 表示输入的 Tensor ,仅参数名不一致。 | -| out | - | 表示输出的 Tensor , Paddle 无此参数,需要转写。 | - - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.pow([3, 5], 2, out=y) - -# Paddle 写法 -paddle.assign(paddle.pow([3, 5], 2), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.randperm.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.randperm.md deleted file mode 100644 index 67fbed77388..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.randperm.md +++ /dev/null @@ -1,83 +0,0 @@ -## [torch 参数更多 ]torch.randperm - -### [torch.randperm](https://pytorch.org/docs/stable/generated/torch.randperm.html?highlight=rand#torch.randperm) - -```python -torch.randperm(n, - *, - generator=None, - out=None, - dtype=torch.int64, - layout=torch.strided, - device=None, - requires_grad=False, - pin_memory=False) -``` - -### [paddle.randperm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/randperm_cn.html#randperm) - -```python -paddle.randperm(n, - dtype='int64', - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------------ | -| n | n | 表示随机序列的上限。 | -| generator | - | 用于采样的伪随机数生成器, Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| out | - | 表示输出的 Tensor , Paddle 无此参数,需要转写。 | -| dtype | dtype | 表示数据类型。 | -| layout | - | 表示布局方式, Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| device | - | 表示 Tensor 存放设备位置,Paddle 无此参数,需要转写。 | -| requires_grad | - | 表示是否计算梯度, Paddle 无此参数,需要转写。 | -| pin_memeory | - | 表示是否使用锁页内存, Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### out:指定输出 - -```python -# PyTorch 写法 -torch.randperm(10, out=y) - -# Paddle 写法 -paddle.assign(paddle.randperm(10), y) -``` - - -#### requires_grad:是否求梯度 - -```python -# PyTorch 写法 -x = torch.randperm(10, dtype=torch.float64,requires_grad=True) - -# Paddle 写法 -x = paddle.randperm(10) -x.stop_gradient = False -``` - -#### pin_memory:是否分配到固定内存上 - -```python -# PyTorch 写法 -x = torch.randperm(10, pin_memory=True) - -# Paddle 写法 -x = paddle.randperm(10).pin_memory() -``` - -#### device: Tensor 的设备 - -```python -# PyTorch 写法 -torch.randperm(10, device=torch.device('cpu')) - -# Paddle 写法 -y = paddle.randperm(10) -y.cpu() -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.range.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.range.md deleted file mode 100644 index c64a77933e5..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.range.md +++ /dev/null @@ -1,74 +0,0 @@ -## [torch 参数更多]torch.range - -### [torch.range](https://pytorch.org/docs/stable/generated/torch.range.html?highlight=range#torch.range) - -```python -torch.range(start=0, - end, - step=1, - *, - out=None, - dtype=None, - layout=torch.strided, - device=None, - requires_grad=False) -``` - -### [paddle.arange](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/arange_cn.html) - -```python -paddle.arange(start=0, - end=None, - step=1, - dtype=None, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------------ | -| start | start | 表示区间起点(且区间包括此值)。 | -| end | end | 表示区间终点(且通常区间不包括此值)。 | -| step | step | 表示均匀分割的步长。 | -| out | - | 表示输出的 Tensor,Paddle 无此参数,需要转写。 | -| dtype | dtype | 表示输出 Tensor 类型。 | -| layout | - | 表示布局方式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| device | - | 表示 Tensor 存放设备位置,Paddle 无此参数,需要转写。 | -| requires_grad | - | 表示是否计算梯度,Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### out:指定输出 - -```python -# PyTorch 写法 -torch.range(5, out=y) - -# Paddle 写法 -paddle.assign(paddle.arange(5), y) -``` - -#### device: Tensor 的设备 - -```python -# PyTorch 写法 -y = torch.range(5, device=torch.device('cpu')) - -# Paddle 写法 -y = paddle.arange(5) -y.cpu() -``` - -#### requires_grad:是否求梯度 - -```python -# PyTorch 写法 -y = torch.range(5, requires_grad=True) - -# Paddle 写法 -y = paddle.arange(5) -y.stop_gradient = False -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.remainder.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.remainder.md deleted file mode 100644 index 901431a29f7..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.remainder.md +++ /dev/null @@ -1,37 +0,0 @@ -## [torch 参数更多 ]torch.remainder -### [torch.remainder](https://pytorch.org/docs/stable/generated/torch.remainder.html?highlight=remainder#torch.remainder) - -```python -torch.remainder(input, - other, - *, - out=None) -``` - -### [paddle.remainder](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/remainder_cn.html#remainder) - -```python -paddle.remainder(x, - y, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 被除数,PyTorch 可为 Tensor or Scalar,Paddle 仅可为 Tensor。 | -| other | y | 除数,PyTorch 可为 Tensor or Scalar,Paddle 仅可为 Tensor。 | -| out | - | 表示输出的 Tensor,Paddle 无此参数,需要转写。 | - - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.remainder([3, 5], 2, out=y) - -# Paddle 写法 -paddle.assign(paddle.remainder([3, 5], 2), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.repeat_interleave.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.repeat_interleave.md deleted file mode 100644 index 920346fecfe..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.repeat_interleave.md +++ /dev/null @@ -1,24 +0,0 @@ -## [ torch 参数更多]torch.repeat_interleave - -### [torch.repeat_interleave](https://pytorch.org/docs/stable/generated/torch.repeat_interleave.html#torch-repeat-interleave) - -```python -torch.repeat_interleave(input, repeats, dim=None, *, output_size=None) -``` - -### [paddle.repeat_interleave](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/repeat_interleave_cn.html#repeat-interleave) - -```python -paddle.repeat_interleave(x, repeats, axis=None, name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | --------------------------------------------------- | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| repeats | repeats | 表示指定复制次数的 1-D Tensor 或指定的复制次数。 | -| dim | axis | 表示复制取值的维度,仅参数名不一致。 | -| output_size | - | 表示给定维度的总输出尺寸,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.rsqrt.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.rsqrt.md deleted file mode 100644 index 50038ac5863..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.rsqrt.md +++ /dev/null @@ -1,34 +0,0 @@ -## [torch 参数更多 ]torch.rsqrt -### [torch.rsqrt](https://pytorch.org/docs/stable/generated/torch.rsqrt.html?highlight=rsqrt#torch.rsqrt) - -```python -torch.rsqrt(input, - *, - out=None) -``` - -### [paddle.rsqrt](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/rsqrt_cn.html#rsqrt) - -```python -paddle.rsqrt(x, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 输入的 Tensor ,仅参数名不一致。 | -| out | - | 表示输出的 Tensor,Paddle 无此参数,需要转写。 | - - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.rsqrt([3, 5], out=y) - -# Paddle 写法 -paddle.assign(paddle.rsqrt([3, 5]), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.sign.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.sign.md deleted file mode 100644 index 283559b6b50..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.sign.md +++ /dev/null @@ -1,34 +0,0 @@ -## [torch 参数更多 ]torch.sign -### [torch.sign](https://pytorch.org/docs/stable/generated/torch.sign.html?highlight=sign#torch.sign) - -```python -torch.sign(input, - *, - out=None) -``` - -### [paddle.sign](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sign_cn.html#sign) - -```python -paddle.sign(x, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 输入的 Tensor ,仅参数名不一致。 | -| out | - | 表示输出的 Tensor,Paddle 无此参数,需要转写。 | - - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.sign([3, 5], out=y) - -# Paddle 写法 -paddle.assign(paddle.sign([3, 5]), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.sin.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.sin.md deleted file mode 100644 index d3f0fe321ae..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.sin.md +++ /dev/null @@ -1,34 +0,0 @@ -## [torch 参数更多 ]torch.sin -### [torch.sin](https://pytorch.org/docs/stable/generated/torch.sin.html?highlight=sin#torch.sin) - -```python -torch.sin(input, - *, - out=None) -``` - -### [paddle.sin](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sin_cn.html#sin) - -```python -paddle.sin(x, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 输入的 Tensor ,仅参数名不一致。 | -| out | - | 表示输出的 Tensor,Paddle 无此参数,需要转写。 | - - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.sin([3, 5], out=y) - -# Paddle 写法 -paddle.assign(paddle.sin([3, 5]), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.softmax.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.softmax.md deleted file mode 100644 index 084bcac6424..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.softmax.md +++ /dev/null @@ -1,36 +0,0 @@ -## [ torch 参数更多 ]torch.softmax - -### [torch.softmax](https://pytorch.org/docs/stable/generated/torch.softmax.html) - -```python -torch.softmax(input, dim, *, dtype=None, out=None) -``` - -### [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) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -- | -| input | x | 表示输入张量,仅参数名不一致。 | -| dim | axis | 表示对输入 Tensor 进行运算的轴,仅参数名不一致。 | -| dtype | dtype | 表示返回张量所需的数据类型。 | -| out | - | 表示输出的 Tensor ,Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### out - -```python -# PyTorch -torch.softmax(x, dim, out=y) - -# Paddle -paddle.assign(paddle.nn.functional.softmax(x, dim), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.logsumexp.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.logsumexp.md deleted file mode 100644 index b5693594802..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.logsumexp.md +++ /dev/null @@ -1,32 +0,0 @@ -## [ torch 参数更多 ]torch.special.logsumexp -### [torch.special.logsumexp](https://pytorch.org/docs/stable/special.html#torch.special.logsumexp) - -```python -torch.special.logsumexp(input, dim, keepdim=False, *, out=None) -``` - -### [paddle.logsumexp](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/logsumexp_cn.html) - -```python -paddle.logsumexp(x, axis=None, keepdim=False, name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 输入的 Tensor.仅参数名不一致。 | -| dim | axis | 指定对输入进行计算的轴。仅参数名不一致。 | -| keepdim | keepdim | 是否在输出 Tensor 中保留减小的维度。 | -| out | - | 表示输出的 Tensor , Paddle 无此参数,需要转写。 | - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.special.logsumexp(input, dim=1, out=y) - -# Paddle 写法 -paddle.assign(paddle.logsumexp(input, axis=1), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.sqrt.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.sqrt.md deleted file mode 100644 index c307d01d869..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.sqrt.md +++ /dev/null @@ -1,34 +0,0 @@ -## [torch 参数更多 ]torch.sqrt -### [torch.sqrt](https://pytorch.org/docs/stable/generated/torch.sqrt.html?highlight=sqrt#torch.sqrt) - -```python -torch.sqrt(input, - *, - out=None) -``` - -### [paddle.sqrt](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sqrt_cn.html#sqrt) - -```python -paddle.sqrt(x, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| out | - | 表示输出的 Tensor , Paddle 无此参数,需要转写。 | - - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.sqrt([0.1, 0.2], out=y) - -# Paddle 写法 -paddle.assign(paddle.sqrt([0.1, 0.2]), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.stack.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.stack.md deleted file mode 100644 index 3d089ffccff..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.stack.md +++ /dev/null @@ -1,38 +0,0 @@ -## [ torch 参数更多 ]torch.stack - -### [torch.stack](https://pytorch.org/docs/stable/generated/torch.stack.html#torch.stack) - -```python -torch.stack(tensors, - dim=0, - *, - out=None) -``` - -### [paddle.stack](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/stack_cn.html) - -```python -paddle.stack(x, - axis=0, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| tensors | x | 表示输入的 Tensor ,仅参数名不一致。 | -| dim | axis | 表示要堆叠的轴,仅参数名不一致。 | -| out | - | 表示输出的 Tensor,Paddle 无此参数,需要转写。 | - - -### 转写示例 -#### out:指定输出 -```python -# PyTorch 写法 -torch.stack(torch.tensor([3, 5]), out=y) - -# Paddle 写法 -paddle.assign(paddle.stack(paddle.to_tensor([3, 5])), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.sub.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.sub.md deleted file mode 100644 index 0ed9caab2a3..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.sub.md +++ /dev/null @@ -1,49 +0,0 @@ -## [ torch 参数更多 ]torch.sub -### [torch.sub](https://pytorch.org/docs/stable/generated/torch.sub.html?highlight=torch%20sub#torch.sub) - -```python -torch.sub(input, - other, - *, - alpha=1, - out=None) -``` - -### [paddle.subtract](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/subtract_cn.html#subtract) - -```python -paddle.subtract(x, - y, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示被减数的 Tensor,仅参数名不一致。 | -| other | y | 表示减数的 Tensor,仅参数名不一致。 | -| alpha | - | 表示`other`的乘数,Paddle 无此参数,需要转写。 Paddle 应设置 y = alpha * other。 | -| out | - | 表示输出的 Tensor,Paddle 无此参数,需要转写。 | - - -### 转写示例 -#### alpha:表示`other`的乘数 -```python -# PyTorch 写法 -torch.sub(x, y, alpha=2) - -# Paddle 写法 -paddle.subtract(x, 2*y) - -# 注:Paddle 直接将 alpha 与 y 相乘实现 -``` -#### out:指定输出 -```python -# PyTorch 写法 -torch.sub(x, y, out=z) - -# Paddle 写法 -paddle.assign(paddle.subtract(x, y), z) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.take_along_dim.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.take_along_dim.md deleted file mode 100644 index 90e1c243749..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.take_along_dim.md +++ /dev/null @@ -1,41 +0,0 @@ -## [ torch 参数更多 ]torch.take_along_dim - -### [torch.take_along_dim](https://pytorch.org/docs/stable/generated/torch.take_along_dim.html?highlight=torch+take_along_dim#torch.take_along_dim) - -```python -torch.take_along_dim(input, - indices, - dim, - out=None) -``` - -### [paddle.take_along_axis](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/take_along_axis_cn.html) - -```python -paddle.take_along_axis(arr, - indices, - axis, - broadcast=True) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | arr | 表示输入的 Tensor ,仅参数名不一致。 | -| indices | indices | 表示索引矩阵 ,仅参数名不一致。 | -| dim | axis | 表示沿着哪个维度获取对应的值,仅参数名不一致。 | -| out | - | 表示输出的 Tensor , Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### out:指定输出 - -```python -# PyTorch 写法 -torch.take_along_dim(t, idx, 1,out=y) - -# Paddle 写法 -paddle.assign(paddle.take_along_axis(t, idx, 1), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.tensor.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.tensor.md deleted file mode 100644 index 24e9f2108f1..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.tensor.md +++ /dev/null @@ -1,60 +0,0 @@ -## [torch 参数更多 ]torch.tensor -### [torch.tensor](https://pytorch.org/docs/stable/generated/torch.tensor.html?highlight=tensor#torch.tensor) - -```python -torch.tensor(data, - dtype=None, - device=None, - requires_grad=False, - pin_memory=False) -``` - -### [paddle.to_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/to_tensor_cn.html#to-tensor) - -```python -paddle.to_tensor(data, - dtype=None, - place=None, - stop_gradient=True) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| data | data | 表示输入的数据。 | -| dtype | dtype | 表示数据的类型。 | -| device | place | 表示 Tensor 存放设备位置,两者参数类型不相同,需要转写。 | -| requires_grad | stop_gradient | 表示是否计算梯度,两者参数功能相反,需要转写。 | -| pin_memeory | - | 表示是否使用锁页内存, Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### device: Tensor 的设备 -```python -# PyTorch 写法 -torch.tensor(3, device=torch.device('cpu')) - -# Paddle 写法 -y = paddle.to_tensor(3, place=paddle.CPUPlace()) -``` - -#### requires_grad:是否不阻断梯度传导 -```python -# PyTorch 写法 -x = torch.tensor(3, requires_grad=True) - -# Paddle 写法 -x = paddle.to_tensor(3, stop_gradient=False) -``` - -#### pin_memory:是否分配到固定内存上 -```python -# PyTorch 写法 -x = torch.tensor(3, pin_memory=True) - -# Paddle 写法 -x = paddle.to_tensor(3).pin_memory() -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.tril.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.tril.md deleted file mode 100644 index 5f02246e58e..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.tril.md +++ /dev/null @@ -1,35 +0,0 @@ -## [ torch 参数更多]torch.tril - -### [torch.tril](https://pytorch.org/docs/stable/generated/torch.tril.html?highlight=tril#torch.tril) - -```python -torch.tril(input,diagonal=0,*,out=None) -``` - -### [paddle.tril](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/tril_cn.html) - -```python -paddle.tril(x, diagonal=0,name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------- | ------- | -| input | x | 表示输入的 Tensor,仅参数名不一致 。 | -| diagonal | diagonal | 表示指定的对角线,默认值是 0 ,表示主对角线。如果 diagonal > 0 ,表示主对角线之上的对角线;如果 diagonal < 0 ,表示主对角线之下的对角线。 | -| out | - | 表示输出的 Tensor ,Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### out: 输出的 Tensor - -```python -# PyTorch 写法 -torch.tril(input,diagonal,out=output) - -# Paddle 写法 -paddle.assign(paddle.tril(input,diagonal),output) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.triu.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.triu.md deleted file mode 100644 index ceb889ebe0b..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.triu.md +++ /dev/null @@ -1,36 +0,0 @@ -## [ torch 参数更多]torch.triu - -### [torch.triu](https://pytorch.org/docs/stable/generated/torch.triu.html?highlight=triu#torch.triu) - -```python -torch.triu(input,diagonal=0,*,out=None) -``` - -### [paddle.triu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/triu_cn.html) - -```python -paddle.triu(x,diagonal=0,name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------- | ------- | -| input | x | 表示输入的 Tensor,仅参数名不一致。 | -| diagonal | diagonal | 指定的对角线,默认值为 0 ,表示主对角线。如果 diagonal > 0 ,表示主对角线之上的对角线;如果 diagonal < 0 ,表示主对角线之下的对角线。 | -| out | - | 表示输出的 Tensor , Paddle 没有此参数,需要转写。 | - -### 转写示例 - -#### out: 输出的 Tensor - -```python -# PyTorch 写法 -torch.triu(input,diagonal,out=output) - - -# Paddle 写法 -paddle.assign(paddle.triu(input,diagonal),output) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.true_divide.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.true_divide.md deleted file mode 100644 index 376a8748092..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.true_divide.md +++ /dev/null @@ -1,35 +0,0 @@ -## [ torch 参数更多 ]torch.true_divide - -### [torch.true\_divide](https://pytorch.org/docs/stable/generated/torch.true_divide.html) - -```python -torch.true_divide(input, other, *, out) -``` - -### [paddle.divide](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/divide_cn.html#divide) - -```python -paddle.divide(x, y, name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | -- | -| input | x | 输入 Tensor,仅参数名不一致。 | -| other | y | 输入 Tensor,仅参数名不一致。 | -| out | - | 表示输出的 Tensor ,Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### out - -```python -# PyTorch -torch.true_divide(x, y, out=z) - -# Paddle -paddle.assign(paddle.div(x, y), z) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.var.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.var.md deleted file mode 100644 index 31d3d3c09e7..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.var.md +++ /dev/null @@ -1,55 +0,0 @@ -## [ torch 参数更多 ]torch.var - -### [torch.var](https://pytorch.org/docs/stable/generated/torch.var.html) - -```python -torch.var(input, dim=None, unbiased=True, keepdim=False, *, correction=1, out=None) -``` - -### [paddle.var](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/var_cn.html#var) - -```python -paddle.var(x, axis=None, unbiased=True, keepdim=False, name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ---------- | ------------ | -- | -| input | x | 输入张量,仅参数名不一致。 | -| dim | axis | 指定对 x 进行计算的轴,仅参数名不一致。 | -| unbiased | unbiased | 是否使用无偏估计来计算标准差。 | -| keepdim | keepdim | 是否在输出 Tensor 中保留减小的维度。 | -| correction | - | 样本尺寸与其自由度的差异,Paddle 无此参数,需要转写。 | -| out | - | 表示输出的 Tensor ,Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### correction - -```python -# PyTorch -torch.var(x, dim, correction=0) - -# Paddle -paddle.var(x, dim, unbiased=False) - - -# PyTorch -torch.var(x, dim, correction=1) - -# Paddle -paddle.var(x, dim, unbiased=True) -``` - -#### out - -```python -# PyTorch -torch.var(x, out=y) - -# Paddle -paddle.assign(paddle.var(x), y) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.where.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.where.md deleted file mode 100644 index 179230bd8df..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.where.md +++ /dev/null @@ -1,36 +0,0 @@ -## [ torch 参数更多 ] torch.where - -### [torch.where](https://pytorch.org/docs/stable/generated/torch.where.html) - -```python -torch.where(condition, input, other, *, out=None) -``` - -### [paddle.where](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/where_cn.html) - -```python -paddle.where(condition, x, y, name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| condition | condition | 判断条件。 | -| input | x | 当 condition 为 true 时,选择 input 元素,仅参数名不一致。 | -| other | y | 当 condition 为 false 时,选择 other 中元素,仅参数名不一致。 | -| out | - | 表示输出的 Tensor,Paddle 无此参数,需要转写。 | - -### 转写示例 - -#### out:指定输出 - -```python -# PyTorch 写法 -torch.where(x > 0, x, y, out=z) - -# Paddle 写法 -paddle.assign(paddle.where(x > 0, x, y), z) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.zeros_like.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.zeros_like.md deleted file mode 100644 index 0a4d422052a..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.zeros_like.md +++ /dev/null @@ -1,58 +0,0 @@ -## [torch 参数更多]torch.zeros_like - -### [torch.zeros_like](https://pytorch.org/docs/stable/generated/torch.zeros_like.html?highlight=zeros_like#torch.zeros_like) - -```python -torch.zeros_like(input, - *, - dtype=None, - layout=None, - device=None, - requires_grad=False, - memory_format=torch.preserve_format) -``` - -### [paddle.zeros_like](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/zeros_like_cn.html) - -```python -paddle.zeros_like(x, - dtype=None, - name=None) -``` - -PyTorch 相比 Paddle 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------------ | -| input | x | 表示输入 Tensor ,仅名称不同。 | -| dtype | dtype | 表示输出 Tensor 类型。 | -| layout | - | 表示布局方式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | -| device | - | 表示 Tensor 存放设备位置,Paddle 无此参数,需要转写。 | -| requires_grad | - | 表示是否计算梯度,Paddle 无此参数,需要转写。 | -| memory_format | - | 表示内存格式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | - -### 转写示例 - -#### device: Tensor 的设备 - -```python -# PyTorch 写法 -y = torch.zeros_like(x, device=torch.device('cpu')) - -# Paddle 写法 -y = paddle.zeros_like(x) -y.cpu() -``` - -#### requires_grad:是否求梯度 - -```python -# PyTorch 写法 -y = torch.zeros_like(x, requires_grad=True) - -# Paddle 写法 -y = paddle.zeros_like(x) -y.stop_gradient = False -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/pytorch_api_mapping_cn.md b/docs/guides/model_convert/convert_from_pytorch/pytorch_api_mapping_cn.md index 8516a1e49b7..eeac36a9428 100644 --- a/docs/guides/model_convert/convert_from_pytorch/pytorch_api_mapping_cn.md +++ b/docs/guides/model_convert/convert_from_pytorch/pytorch_api_mapping_cn.md @@ -8,9 +8,11 @@ ## API 映射分类 +根据 PyTorch API 与 Paddle API 两者之间的映射差异,将映射关系分为以下 13 类 + | 序号 | 类别 | 简介 | | ---- | ---- | ---- | -| 1 |API 完全一致|此类 API 使用方式完全一致,无需转换,只需在文件最上方插入一行 `import paddle as torch` 即可。(或者也可将代码里所有前缀 `torch.` 替换为 `paddle.`)| +| 1 |API 完全一致|**此类 API 能极大降低代码迁移成本,其使用方式完全一致,** 只需要将代码中所有前缀 `torch.`替换为 `paddle.`即可。(或者只需在文件最上方插入一行 `import paddle as torch`即可)| | 2 |仅 API 调用方式不一致|参数一致,但 API 调用方式不一致。此类 API 需要转换,但转换成本较低,只需要对 API 调用方式进行改写,无需处理 API 参数部分。包括:API 名称不同、API 路径不同、Tensor 类方法改成普通方法、Tensor 方法改成属性、Tensor 属性改成方法 等情况。| | 3 |仅参数名不一致|此类 API 功能相同,但部分参数名称不同| | 4 |paddle 参数更多|此类 API 在 PaddlePaddle 中提供了更多可选参数| @@ -27,7 +29,8 @@ ### 1. API 完全一致 **分类简介** -此类 API 使用方式完全一致,无需转换,只需在文件最上方插入一行 `import paddle as torch` 即可。(或者也可将代码里所有前缀 `torch.` 替换为 `paddle.`) +**此类 API 能极大降低代码迁移成本,其使用方式完全一致,** 只需要将代码中所有前缀 `torch.`替换为 `paddle.`即可。(或者只需在文件最上方插入一行 `import paddle as torch`即可) + **转写示例** ```python @@ -45,7 +48,551 @@ paddle.nn.Softplus(beta=0.5, threshold=15) | 序号 | Pytorch 最新 release | Paddle develop | 备注 | |------|-------------------|---------------|------| - +| 1 | [torch.Tensor.bfloat16](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.bfloat16) | paddle.Tensor.bfloat16 | - | +| 2 | [torch.Tensor.bool](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.bool) | paddle.Tensor.bool | - | +| 3 | [torch.Tensor.byte](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.byte) | paddle.Tensor.byte | - | +| 4 | [torch.Tensor.char](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.char) | paddle.Tensor.char | - | +| 5 | [torch.Tensor.double](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.double) | paddle.Tensor.double | - | +| 6 | [torch.Tensor.float](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.float) | paddle.Tensor.float | - | +| 7 | [torch.Tensor.half](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.half) | paddle.Tensor.half | - | +| 8 | [torch.Tensor.int](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.int) | paddle.Tensor.int | - | +| 9 | [torch.Tensor.long](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.long) | paddle.Tensor.long | - | +| 10 | [torch.Tensor.short](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.short) | paddle.Tensor.short | - | +| 11 | [torch.Tensor.cfloat](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.cfloat) | paddle.Tensor.cfloat | - | +| 12 | [torch.Tensor.cdouble](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.cdouble) | paddle.Tensor.cdouble | - | +| 13 | [torch.nn.init.calculate_gain](https://pytorch.org/docs/stable/generated/torch.nn.init.calculate_gain.html#torch.nn.init.calculate_gain) | paddle.nn.init.calculate_gain | - | +| 14 | [torch.nn.init.constant_](https://pytorch.org/docs/stable/generated/torch.nn.init.constant_.html#torch.nn.init.constant_) | paddle.nn.init.constant_ | - | +| 15 | [torch.nn.init.dirac_](https://pytorch.org/docs/stable/generated/torch.nn.init.dirac_.html#torch.nn.init.dirac_) | paddle.nn.init.dirac_ | - | +| 16 | [torch.nn.init.eye_](https://pytorch.org/docs/stable/generated/torch.nn.init.eye_.html#torch.nn.init.eye_) | paddle.nn.init.eye_ | - | +| 17 | [torch.nn.init.kaiming_normal_](https://pytorch.org/docs/stable/generated/torch.nn.init.kaiming_normal_.html#torch.nn.init.kaiming_normal_) | paddle.nn.init.kaiming_normal_ | - | +| 18 | [torch.nn.init.kaiming_uniform_](https://pytorch.org/docs/stable/generated/torch.nn.init.kaiming_uniform_.html#torch.nn.init.kaiming_uniform_) | paddle.nn.init.kaiming_uniform_ | - | +| 19 | [torch.nn.init.normal_](https://pytorch.org/docs/stable/generated/torch.nn.init.normal_.html#torch.nn.init.normal_) | paddle.nn.init.normal_ | - | +| 20 | [torch.nn.init.ones_](https://pytorch.org/docs/stable/generated/torch.nn.init.ones_.html#torch.nn.init.ones_) | paddle.nn.init.ones_ | - | +| 21 | [torch.nn.init.orthogonal_](https://pytorch.org/docs/stable/generated/torch.nn.init.orthogonal_.html#torch.nn.init.orthogonal_) | paddle.nn.init.orthogonal_ | - | +| 22 | [torch.nn.init.trunc_normal_](https://pytorch.org/docs/stable/generated/torch.nn.init.trunc_normal_.html#torch.nn.init.trunc_normal_) | paddle.nn.init.trunc_normal_ | - | +| 23 | [torch.nn.init.uniform_](https://pytorch.org/docs/stable/generated/torch.nn.init.uniform_.html#torch.nn.init.uniform_) | paddle.nn.init.uniform_ | - | +| 24 | [torch.nn.init.xavier_normal_](https://pytorch.org/docs/stable/generated/torch.nn.init.xavier_normal_.html#torch.nn.init.xavier_normal_) | paddle.nn.init.xavier_normal_ | - | +| 25 | [torch.nn.init.xavier_uniform_](https://pytorch.org/docs/stable/generated/torch.nn.init.xavier_uniform_.html#torch.nn.init.xavier_uniform_) | paddle.nn.init.xavier_uniform_ | - | +| 26 | [torch.nn.init.zeros_](https://pytorch.org/docs/stable/generated/torch.nn.init.zeros_.html#torch.nn.init.zeros_) | paddle.nn.init.zeros_ | - | +| 27 | [torch.nn.Conv1d](https://pytorch.org/docs/stable/generated/torch.nn.Conv1d.html#torch.nn.Conv1d) | paddle.nn.Conv1d | - | +| 28 | [torch.nn.Conv2d](https://pytorch.org/docs/stable/generated/torch.nn.Conv2d.html#torch.nn.Conv2d) | paddle.nn.Conv2d | - | +| 29 | [torch.nn.Conv3d](https://pytorch.org/docs/stable/generated/torch.nn.Conv3d.html#torch.nn.Conv3d) | paddle.nn.Conv3d | - | +| 30 | [torch.nn.Embedding](https://pytorch.org/docs/stable/generated/torch.nn.Embedding.html#torch.nn.Embedding) | paddle.nn.Embedding | - | +| 31 | [torch.complex](https://pytorch.org/docs/stable/torch.html#torch.complex) | paddle.complex | - | +| 32 | [torch.polar](https://pytorch.org/docs/stable/torch.html#torch.polar) | paddle.polar | - | +| 33 | [torch.cat](https://pytorch.org/docs/stable/torch.html#torch.cat) | paddle.cat | - | +| 34 | [torch.stack](https://pytorch.org/docs/stable/torch.html#torch.stack) | paddle.stack | - | +| 35 | [torch.swapaxes](https://pytorch.org/docs/stable/torch.html#torch.swapaxes) | paddle.swapaxes | - | +| 36 | [torch.swapdims](https://pytorch.org/docs/stable/torch.html#torch.swapdims) | paddle.swapdims | - | +| 37 | [torch.where](https://pytorch.org/docs/stable/torch.html#torch.where) | paddle.where | - | +| 38 | [torch.clamp](https://pytorch.org/docs/stable/torch.html#torch.clamp) | paddle.clamp | - | +| 39 | [torch.clip](https://pytorch.org/docs/stable/torch.html#torch.clip) | paddle.clip | - | +| 40 | [torch.cos](https://pytorch.org/docs/stable/torch.html#torch.cos) | paddle.cos | - | +| 41 | [torch.floor](https://pytorch.org/docs/stable/torch.html#torch.floor) | paddle.floor | - | +| 42 | [torch.log](https://pytorch.org/docs/stable/torch.html#torch.log) | paddle.log | - | +| 43 | [torch.mul](https://pytorch.org/docs/stable/torch.html#torch.mul) | paddle.mul | - | +| 44 | [torch.multiply](https://pytorch.org/docs/stable/torch.html#torch.multiply) | paddle.multiply | - | +| 45 | [torch.pow](https://pytorch.org/docs/stable/torch.html#torch.pow) | paddle.pow | - | +| 46 | [torch.rsqrt](https://pytorch.org/docs/stable/torch.html#torch.rsqrt) | paddle.rsqrt | - | +| 47 | [torch.sign](https://pytorch.org/docs/stable/torch.html#torch.sign) | paddle.sign | - | +| 48 | [torch.sin](https://pytorch.org/docs/stable/torch.html#torch.sin) | paddle.sin | - | +| 49 | [torch.eq](https://pytorch.org/docs/stable/torch.html#torch.eq) | paddle.eq | - | +| 50 | [torch.gt](https://pytorch.org/docs/stable/torch.html#torch.gt) | paddle.gt | - | +| 51 | [torch.view_as_real](https://pytorch.org/docs/stable/torch.html#torch.view_as_real) | paddle.view_as_real | - | +| 52 | [torch.view_as_complex](https://pytorch.org/docs/stable/torch.html#torch.view_as_complex) | paddle.view_as_complex | - | +| 53 | [torch.ger](https://pytorch.org/docs/stable/torch.html#torch.ger) | paddle.ger | - | +| 54 | [torch.Tensor.mul](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.mul) | paddle.Tensor.mul | - | +| 55 | [torch.Tensor.mul_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.mul_) | paddle.Tensor.mul_ | - | +| 56 | [torch.Tensor.swapaxes](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.swapaxes) | paddle.Tensor.swapaxes | - | +| 57 | [torch.Tensor.swapdims](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.swapdims) | paddle.Tensor.swapdims | - | +| 58 | [torch.autograd.Function](https://pytorch.org/docs/stable/generated/torch.autograd.Function.html#torch.autograd.Function) | paddle.autograd.Function | - | +| 59 | [torch.take_along_dim](https://pytorch.org/docs/stable/torch.html#torch.take_along_dim) | paddle.take_along_dim | - | +| 60 | [torch.Tensor.take_along_dim](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.take_along_dim) | paddle.Tensor.take_along_dim | - | +| 61 | [torch.special.logsumexp](https://pytorch.org/docs/stable/generated/torch.special.logsumexp.html#torch.special.logsumexp) | paddle.special.logsumexp | - | +| 62 | [torch.argwhere](https://pytorch.org/docs/stable/torch.html#torch.argwhere) | paddle.argwhere | - | +| 63 | [torch.concatenate](https://pytorch.org/docs/stable/torch.html#torch.concatenate) | paddle.concatenate | - | +| 64 | [torch.is_autocast_enabled](https://pytorch.org/docs/stable/torch.html#torch.is_autocast_enabled) | paddle.is_autocast_enabled | - | +| 65 | [torch.get_autocast_gpu_dtype](https://pytorch.org/docs/stable/torch.html#torch.get_autocast_gpu_dtype) | paddle.get_autocast_gpu_dtype | - | +| 66 | [torch.cumsum](https://pytorch.org/docs/stable/torch.html#torch.cumsum) | paddle.cumsum | - | +| 67 | [torch.diff](https://pytorch.org/docs/stable/torch.html#torch.diff) | paddle.diff | - | +| 68 | [torch.nn.functional.dropout1d](https://pytorch.org/docs/stable/generated/torch.nn.functional.dropout1d.html#torch.nn.functional.dropout1d) | paddle.nn.functional.dropout1d | - | +| 69 | [torch.nn.parameter.Parameter](https://pytorch.org/docs/stable/generated/torch.nn.parameter.Parameter.html#torch.nn.parameter.Parameter) | paddle.nn.parameter.Parameter | - | +| 70 | [torch.add](https://pytorch.org/docs/stable/torch.html#torch.add) | paddle.add | - | +| 71 | [torch.div](https://pytorch.org/docs/stable/torch.html#torch.div) | paddle.div | - | +| 72 | [torch.divide](https://pytorch.org/docs/stable/torch.html#torch.divide) | paddle.divide | - | +| 73 | [torch.true_divide](https://pytorch.org/docs/stable/torch.html#torch.true_divide) | paddle.true_divide | - | +| 74 | [torch.Tensor.add](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.add) | paddle.Tensor.add | - | +| 75 | [torch.Tensor.add_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.add_) | paddle.Tensor.add_ | - | +| 76 | [torch.Tensor.div](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.div) | paddle.Tensor.div | - | +| 77 | [torch.Tensor.div_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.div_) | paddle.Tensor.div_ | - | +| 78 | [torch.Tensor.divide](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.divide) | paddle.Tensor.divide | - | +| 79 | [torch.Tensor.divide_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.divide_) | paddle.Tensor.divide_ | - | +| 80 | [torch.Tensor.true_divide](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.true_divide) | paddle.Tensor.true_divide | - | +| 81 | [torch.Size](https://pytorch.org/docs/stable/torch.html#torch.Size) | paddle.Size | - | +| 82 | [torch.Tensor.is_cuda](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.is_cuda) | paddle.Tensor.is_cuda | - | +| 83 | [torch.sub](https://pytorch.org/docs/stable/torch.html#torch.sub) | paddle.sub | - | +| 84 | [torch.Tensor.sub](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.sub) | paddle.Tensor.sub | - | +| 85 | [torch.Tensor.sub_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.sub_) | paddle.Tensor.sub_ | - | +| 86 | [torch.Tensor.random_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.random_) | paddle.Tensor.random_ | - | +| 87 | [torch.range](https://pytorch.org/docs/stable/torch.html#torch.range) | paddle.range | - | +| 88 | [torch.arange](https://pytorch.org/docs/stable/torch.html#torch.arange) | paddle.arange | - | +| 89 | [torch.randn](https://pytorch.org/docs/stable/torch.html#torch.randn) | paddle.randn | - | +| 90 | [torch.zeros](https://pytorch.org/docs/stable/torch.html#torch.zeros) | paddle.zeros | - | +| 91 | [torch.ones](https://pytorch.org/docs/stable/torch.html#torch.ones) | paddle.ones | - | +| 92 | [torch.full](https://pytorch.org/docs/stable/torch.html#torch.full) | paddle.full | - | +| 93 | [torch.empty](https://pytorch.org/docs/stable/torch.html#torch.empty) | paddle.empty | - | +| 94 | [torch.zeros_like](https://pytorch.org/docs/stable/torch.html#torch.zeros_like) | paddle.zeros_like | - | +| 95 | [torch.ones_like](https://pytorch.org/docs/stable/torch.html#torch.ones_like) | paddle.ones_like | - | +| 96 | [torch.full_like](https://pytorch.org/docs/stable/torch.html#torch.full_like) | paddle.full_like | - | +| 97 | [torch.empty_like](https://pytorch.org/docs/stable/torch.html#torch.empty_like) | paddle.empty_like | - | +| 98 | [torch.Tensor.new_zeros](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.new_zeros) | paddle.Tensor.new_zeros | - | +| 99 | [torch.Tensor.new_ones](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.new_ones) | paddle.Tensor.new_ones | - | +| 100 | [torch.Tensor.new_full](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.new_full) | paddle.Tensor.new_full | - | +| 101 | [torch.Tensor.new_empty](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.new_empty) | paddle.Tensor.new_empty | - | +| 102 | [torch.eye](https://pytorch.org/docs/stable/torch.html#torch.eye) | paddle.eye | - | +| 103 | [torch.cuda.cudart](https://pytorch.org/docs/stable/generated/torch.cuda.cudart.html#torch.cuda.cudart) | paddle.cuda.cudart | - | +| 104 | [torch.cuda.check_error](https://pytorch.org/docs/stable/generated/torch.cuda.check_error.html#torch.cuda.check_error) | paddle.cuda.check_error | - | +| 105 | [torch.cuda.mem_get_info](https://pytorch.org/docs/stable/generated/torch.cuda.mem_get_info.html#torch.cuda.mem_get_info) | paddle.cuda.mem_get_info | - | +| 106 | [torch.cuda.is_initialized](https://pytorch.org/docs/stable/generated/torch.cuda.is_initialized.html#torch.cuda.is_initialized) | paddle.cuda.is_initialized | - | +| 107 | [torch.permute](https://pytorch.org/docs/stable/torch.html#torch.permute) | paddle.permute | - | +| 108 | [torch.Tensor.permute](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.permute) | paddle.Tensor.permute | - | +| 109 | [torch.repeat_interleave](https://pytorch.org/docs/stable/torch.html#torch.repeat_interleave) | paddle.repeat_interleave | - | +| 110 | [torch.Tensor.repeat_interleave](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.repeat_interleave) | paddle.Tensor.repeat_interleave | - | +| 111 | [torch.Tensor.repeat](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.repeat) | paddle.Tensor.repeat | - | +| 112 | [torch.maximum](https://pytorch.org/docs/stable/torch.html#torch.maximum) | paddle.maximum | - | +| 113 | [torch.minimum](https://pytorch.org/docs/stable/torch.html#torch.minimum) | paddle.minimum | - | +| 114 | [torch.topk](https://pytorch.org/docs/stable/torch.html#torch.topk) | paddle.topk | - | +| 115 | [torch.sqrt](https://pytorch.org/docs/stable/torch.html#torch.sqrt) | paddle.sqrt | - | +| 116 | [torch.amin](https://pytorch.org/docs/stable/torch.html#torch.amin) | paddle.amin | - | +| 117 | [torch.amax](https://pytorch.org/docs/stable/torch.html#torch.amax) | paddle.amax | - | +| 118 | [torch.Tensor.stride](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.stride) | paddle.Tensor.stride | - | +| 119 | [torch.Tensor.get_device](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.get_device) | paddle.Tensor.get_device | - | +| 120 | [torch.random.initial_seed](https://pytorch.org/docs/stable/generated/torch.random.initial_seed.html#torch.random.initial_seed) | paddle.random.initial_seed | - | +| 121 | [torch.as_tensor](https://pytorch.org/docs/stable/torch.html#torch.as_tensor) | paddle.as_tensor | - | +| 122 | [torch.tensor](https://pytorch.org/docs/stable/torch.html#torch.tensor) | paddle.tensor | - | +| 123 | [torch.Tensor.copy_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.copy_) | paddle.Tensor.copy_ | - | +| 124 | [torch.Tensor.norm](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.norm) | paddle.Tensor.norm | - | +| 125 | [torch.Tensor](https://pytorch.org/docs/stable/tensors.html#torch.Tensor) | paddle.Tensor | - | +| 126 | [torch.FloatTensor](https://pytorch.org/docs/stable/torch.html#torch.FloatTensor) | paddle.FloatTensor | - | +| 127 | [torch.DoubleTensor](https://pytorch.org/docs/stable/torch.html#torch.DoubleTensor) | paddle.DoubleTensor | - | +| 128 | [torch.HalfTensor](https://pytorch.org/docs/stable/torch.html#torch.HalfTensor) | paddle.HalfTensor | - | +| 129 | [torch.BFloat16Tensor](https://pytorch.org/docs/stable/torch.html#torch.BFloat16Tensor) | paddle.BFloat16Tensor | - | +| 130 | [torch.ByteTensor](https://pytorch.org/docs/stable/torch.html#torch.ByteTensor) | paddle.ByteTensor | - | +| 131 | [torch.CharTensor](https://pytorch.org/docs/stable/torch.html#torch.CharTensor) | paddle.CharTensor | - | +| 132 | [torch.ShortTensor](https://pytorch.org/docs/stable/torch.html#torch.ShortTensor) | paddle.ShortTensor | - | +| 133 | [torch.IntTensor](https://pytorch.org/docs/stable/torch.html#torch.IntTensor) | paddle.IntTensor | - | +| 134 | [torch.LongTensor](https://pytorch.org/docs/stable/torch.html#torch.LongTensor) | paddle.LongTensor | - | +| 135 | [torch.BoolTensor](https://pytorch.org/docs/stable/torch.html#torch.BoolTensor) | paddle.BoolTensor | - | +| 136 | [torch.norm](https://pytorch.org/docs/stable/torch.html#torch.norm) | paddle.norm | - | +| 137 | [torch.linalg.norm](https://pytorch.org/docs/stable/generated/torch.linalg.norm.html#torch.linalg.norm) | paddle.linalg.norm | - | +| 138 | [torch.Tensor.size](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.size) | paddle.Tensor.size | - | +| 139 | [torch.Tensor.to](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.to) | paddle.Tensor.to | - | +| 140 | [torch.nn.Module.to](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.to) | paddle.nn.Module.to | - | +| 141 | [torch.linalg.vector_norm](https://pytorch.org/docs/stable/generated/torch.linalg.vector_norm.html#torch.linalg.vector_norm) | paddle.linalg.vector_norm | - | +| 142 | [torch.functional.split](https://pytorch.org/docs/stable/generated/torch.functional.split.html#torch.functional.split) | paddle.functional.split | - | +| 143 | [torch.functional.unique_consecutive](https://pytorch.org/docs/stable/generated/torch.functional.unique_consecutive.html#torch.functional.unique_consecutive) | paddle.functional.unique_consecutive | - | +| 144 | [torch.functional.atleast_1d](https://pytorch.org/docs/stable/generated/torch.functional.atleast_1d.html#torch.functional.atleast_1d) | paddle.functional.atleast_1d | - | +| 145 | [torch.functional.atleast_2d](https://pytorch.org/docs/stable/generated/torch.functional.atleast_2d.html#torch.functional.atleast_2d) | paddle.functional.atleast_2d | - | +| 146 | [torch.functional.atleast_3d](https://pytorch.org/docs/stable/generated/torch.functional.atleast_3d.html#torch.functional.atleast_3d) | paddle.functional.atleast_3d | - | +| 147 | [torch.functional.broadcast_shapes](https://pytorch.org/docs/stable/generated/torch.functional.broadcast_shapes.html#torch.functional.broadcast_shapes) | paddle.functional.broadcast_shapes | - | +| 148 | [torch.functional.einsum](https://pytorch.org/docs/stable/generated/torch.functional.einsum.html#torch.functional.einsum) | paddle.functional.einsum | - | +| 149 | [torch.functional.norm](https://pytorch.org/docs/stable/generated/torch.functional.norm.html#torch.functional.norm) | paddle.functional.norm | - | +| 150 | [torch.multinomial](https://pytorch.org/docs/stable/torch.html#torch.multinomial) | paddle.multinomial | - | +| 151 | [torch.var](https://pytorch.org/docs/stable/torch.html#torch.var) | paddle.var | - | +| 152 | [torch.rand_like](https://pytorch.org/docs/stable/torch.html#torch.rand_like) | paddle.rand_like | - | +| 153 | [torch.mean](https://pytorch.org/docs/stable/torch.html#torch.mean) | paddle.mean | - | +| 154 | [torch.Tensor.mean](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.mean) | paddle.Tensor.mean | - | +| 155 | [torch.msort](https://pytorch.org/docs/stable/torch.html#torch.msort) | paddle.msort | - | +| 156 | [torch.Tensor.msort](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.msort) | paddle.Tensor.msort | - | +| 157 | [torch.Tensor.ravel](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.ravel) | paddle.Tensor.ravel | - | +| 158 | [torch.ravel](https://pytorch.org/docs/stable/torch.html#torch.ravel) | paddle.ravel | - | +| 159 | [torch.Tensor.scatter_add](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.scatter_add) | paddle.Tensor.scatter_add | - | +| 160 | [torch.scatter_add](https://pytorch.org/docs/stable/torch.html#torch.scatter_add) | paddle.scatter_add | - | +| 161 | [torch.Tensor.scatter_add_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.scatter_add_) | paddle.Tensor.scatter_add_ | - | +| 162 | [torch.Tensor.tril](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.tril) | paddle.Tensor.tril | - | +| 163 | [torch.tril](https://pytorch.org/docs/stable/torch.html#torch.tril) | paddle.tril | - | +| 164 | [torch.Tensor.triu](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.triu) | paddle.Tensor.triu | - | +| 165 | [torch.triu](https://pytorch.org/docs/stable/torch.html#torch.triu) | paddle.triu | - | +| 166 | [torch.bmm](https://pytorch.org/docs/stable/torch.html#torch.bmm) | paddle.bmm | - | +| 167 | [torch.Tensor.bmm](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.bmm) | paddle.Tensor.bmm | - | +| 168 | [torch.nn.GELU](https://pytorch.org/docs/stable/generated/torch.nn.GELU.html#torch.nn.GELU) | paddle.nn.GELU | - | +| 169 | [torch.broadcast_shapes](https://pytorch.org/docs/stable/torch.html#torch.broadcast_shapes) | paddle.broadcast_shapes | - | +| 170 | [torch.Tensor.scatter_reduce](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.scatter_reduce) | paddle.Tensor.scatter_reduce | - | +| 171 | [torch.scatter_reduce](https://pytorch.org/docs/stable/torch.html#torch.scatter_reduce) | paddle.scatter_reduce | - | +| 172 | [torch.nn.functional.silu](https://pytorch.org/docs/stable/generated/torch.nn.functional.silu.html#torch.nn.functional.silu) | paddle.nn.functional.silu | - | +| 173 | [torch.Tensor.softmax](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.softmax) | paddle.Tensor.softmax | - | +| 174 | [torch.special.softmax](https://pytorch.org/docs/stable/generated/torch.special.softmax.html#torch.special.softmax) | paddle.special.softmax | - | +| 175 | [torch.softmax](https://pytorch.org/docs/stable/torch.html#torch.softmax) | paddle.softmax | - | +| 176 | [torch.Tensor.clamp](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.clamp) | paddle.Tensor.clamp | - | +| 177 | [torch.Tensor.itemsize](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.itemsize) | paddle.Tensor.itemsize | - | +| 178 | [torch.get_default_dtype](https://pytorch.org/docs/stable/torch.html#torch.get_default_dtype) | paddle.get_default_dtype | - | +| 179 | [torch.einsum](https://pytorch.org/docs/stable/torch.html#torch.einsum) | paddle.einsum | - | +| 180 | [torch.nn.Identity](https://pytorch.org/docs/stable/generated/torch.nn.Identity.html#torch.nn.Identity) | paddle.nn.Identity | - | +| 181 | [torch.Tensor.ndim](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.ndim) | paddle.Tensor.ndim | - | +| 182 | [torch.Tensor.T](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.T) | paddle.Tensor.T | - | +| 183 | [torch.Tensor.abs](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.abs) | paddle.Tensor.abs | - | +| 184 | [torch.Tensor.cos](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.cos) | paddle.Tensor.cos | - | +| 185 | [torch.Tensor.detach](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.detach) | paddle.Tensor.detach | - | +| 186 | [torch.Tensor.dim](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.dim) | paddle.Tensor.dim | - | +| 187 | [torch.Tensor.fill_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.fill_) | paddle.Tensor.fill_ | - | +| 188 | [torch.Tensor.isnan](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.isnan) | paddle.Tensor.isnan | - | +| 189 | [torch.Tensor.item](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.item) | paddle.Tensor.item | - | +| 190 | [torch.Tensor.log](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.log) | paddle.Tensor.log | - | +| 191 | [torch.Tensor.masked_scatter](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.masked_scatter) | paddle.Tensor.masked_scatter | - | +| 192 | [torch.Tensor.masked_fill_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.masked_fill_) | paddle.Tensor.masked_fill_ | - | +| 193 | [torch.Tensor.masked_fill](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.masked_fill) | paddle.Tensor.masked_fill | - | +| 194 | [torch.Tensor.nonzero](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.nonzero) | paddle.Tensor.nonzero | - | +| 195 | [torch.Tensor.normal_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.normal_) | paddle.Tensor.normal_ | - | +| 196 | [torch.Tensor.sigmoid](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.sigmoid) | paddle.Tensor.sigmoid | - | +| 197 | [torch.Tensor.sin](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.sin) | paddle.Tensor.sin | - | +| 198 | [torch.Tensor.square](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.square) | paddle.Tensor.square | - | +| 199 | [torch.Tensor.tolist](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.tolist) | paddle.Tensor.tolist | - | +| 200 | [torch.Tensor.zero_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.zero_) | paddle.Tensor.zero_ | - | +| 201 | [torch.distributed.get_rank](https://pytorch.org/docs/stable/generated/torch.distributed.get_rank.html#torch.distributed.get_rank) | paddle.distributed.get_rank | - | +| 202 | [torch.distributed.get_world_size](https://pytorch.org/docs/stable/generated/torch.distributed.get_world_size.html#torch.distributed.get_world_size) | paddle.distributed.get_world_size | - | +| 203 | [torch.Tensor.shape](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.shape) | paddle.Tensor.shape | - | +| 204 | [torch.float32](https://pytorch.org/docs/stable/torch.html#torch.float32) | paddle.float32 | - | +| 205 | [torch.long](https://pytorch.org/docs/stable/torch.html#torch.long) | paddle.long | - | +| 206 | [torch.int32](https://pytorch.org/docs/stable/torch.html#torch.int32) | paddle.int32 | - | +| 207 | [torch.bfloat16](https://pytorch.org/docs/stable/torch.html#torch.bfloat16) | paddle.bfloat16 | - | +| 208 | [torch.int64](https://pytorch.org/docs/stable/torch.html#torch.int64) | paddle.int64 | - | +| 209 | [torch.bool](https://pytorch.org/docs/stable/torch.html#torch.bool) | paddle.bool | - | +| 210 | [torch.uint8](https://pytorch.org/docs/stable/torch.html#torch.uint8) | paddle.uint8 | - | +| 211 | [torch.Tensor.abs_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.abs_) | paddle.Tensor.abs_ | - | +| 212 | [torch.Tensor.acos](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.acos) | paddle.Tensor.acos | - | +| 213 | [torch.Tensor.acos_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.acos_) | paddle.Tensor.acos_ | - | +| 214 | [torch.Tensor.acosh](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.acosh) | paddle.Tensor.acosh | - | +| 215 | [torch.Tensor.acosh_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.acosh_) | paddle.Tensor.acosh_ | - | +| 216 | [torch.Tensor.angle](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.angle) | paddle.Tensor.angle | - | +| 217 | [torch.Tensor.apply_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.apply_) | paddle.Tensor.apply_ | - | +| 218 | [torch.Tensor.asin](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.asin) | paddle.Tensor.asin | - | +| 219 | [torch.Tensor.asin_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.asin_) | paddle.Tensor.asin_ | - | +| 220 | [torch.Tensor.asinh](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.asinh) | paddle.Tensor.asinh | - | +| 221 | [torch.Tensor.asinh_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.asinh_) | paddle.Tensor.asinh_ | - | +| 222 | [torch.Tensor.atan](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.atan) | paddle.Tensor.atan | - | +| 223 | [torch.Tensor.atan_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.atan_) | paddle.Tensor.atan_ | - | +| 224 | [torch.Tensor.atanh](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.atanh) | paddle.Tensor.atanh | - | +| 225 | [torch.Tensor.atanh_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.atanh_) | paddle.Tensor.atanh_ | - | +| 226 | [torch.Tensor.bincount](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.bincount) | paddle.Tensor.bincount | - | +| 227 | [torch.Tensor.bitwise_not](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.bitwise_not) | paddle.Tensor.bitwise_not | - | +| 228 | [torch.Tensor.bitwise_not_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.bitwise_not_) | paddle.Tensor.bitwise_not_ | - | +| 229 | [torch.Tensor.ceil](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.ceil) | paddle.Tensor.ceil | - | +| 230 | [torch.Tensor.ceil_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.ceil_) | paddle.Tensor.ceil_ | - | +| 231 | [torch.Tensor.cholesky](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.cholesky) | paddle.Tensor.cholesky | - | +| 232 | [torch.Tensor.cholesky_inverse](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.cholesky_inverse) | paddle.Tensor.cholesky_inverse | - | +| 233 | [torch.Tensor.clip](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.clip) | paddle.Tensor.clip | - | +| 234 | [torch.Tensor.clip_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.clip_) | paddle.Tensor.clip_ | - | +| 235 | [torch.Tensor.coalesce](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.coalesce) | paddle.Tensor.coalesce | - | +| 236 | [torch.Tensor.conj](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.conj) | paddle.Tensor.conj | - | +| 237 | [torch.Tensor.cos_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.cos_) | paddle.Tensor.cos_ | - | +| 238 | [torch.Tensor.cosh](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.cosh) | paddle.Tensor.cosh | - | +| 239 | [torch.Tensor.cosh_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.cosh_) | paddle.Tensor.cosh_ | - | +| 240 | [torch.Tensor.cumprod](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.cumprod) | paddle.Tensor.cumprod | - | +| 241 | [torch.Tensor.cumprod_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.cumprod_) | paddle.Tensor.cumprod_ | - | +| 242 | [torch.Tensor.data_ptr](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.data_ptr) | paddle.Tensor.data_ptr | - | +| 243 | [torch.Tensor.deg2rad](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.deg2rad) | paddle.Tensor.deg2rad | - | +| 244 | [torch.Tensor.dense_dim](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.dense_dim) | paddle.Tensor.dense_dim | - | +| 245 | [torch.Tensor.detach_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.detach_) | paddle.Tensor.detach_ | - | +| 246 | [torch.Tensor.diag_embed](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.diag_embed) | paddle.Tensor.diag_embed | - | +| 247 | [torch.Tensor.diagflat](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.diagflat) | paddle.Tensor.diagflat | - | +| 248 | [torch.Tensor.digamma](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.digamma) | paddle.Tensor.digamma | - | +| 249 | [torch.Tensor.digamma_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.digamma_) | paddle.Tensor.digamma_ | - | +| 250 | [torch.Tensor.dtype](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.dtype) | paddle.Tensor.dtype | - | +| 251 | [torch.Tensor.erf](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.erf) | paddle.Tensor.erf | - | +| 252 | [torch.Tensor.erfinv](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.erfinv) | paddle.Tensor.erfinv | - | +| 253 | [torch.Tensor.erfinv_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.erfinv_) | paddle.Tensor.erfinv_ | - | +| 254 | [torch.Tensor.exp](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.exp) | paddle.Tensor.exp | - | +| 255 | [torch.Tensor.exp_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.exp_) | paddle.Tensor.exp_ | - | +| 256 | [torch.Tensor.expm1](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.expm1) | paddle.Tensor.expm1 | - | +| 257 | [torch.Tensor.floor](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.floor) | paddle.Tensor.floor | - | +| 258 | [torch.Tensor.floor_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.floor_) | paddle.Tensor.floor_ | - | +| 259 | [torch.Tensor.frac](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.frac) | paddle.Tensor.frac | - | +| 260 | [torch.Tensor.frac_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.frac_) | paddle.Tensor.frac_ | - | +| 261 | [torch.Tensor.frexp](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.frexp) | paddle.Tensor.frexp | - | +| 262 | [torch.Tensor.grad](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.grad) | paddle.Tensor.grad | - | +| 263 | [torch.Tensor.i0](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.i0) | paddle.Tensor.i0 | - | +| 264 | [torch.Tensor.i0_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.i0_) | paddle.Tensor.i0_ | - | +| 265 | [torch.Tensor.indices](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.indices) | paddle.Tensor.indices | - | +| 266 | [torch.Tensor.inverse](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.inverse) | paddle.Tensor.inverse | - | +| 267 | [torch.Tensor.is_complex](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.is_complex) | paddle.Tensor.is_complex | - | +| 268 | [torch.Tensor.is_floating_point](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.is_floating_point) | paddle.Tensor.is_floating_point | - | +| 269 | [torch.Tensor.is_leaf](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.is_leaf) | paddle.Tensor.is_leaf | - | +| 270 | [torch.Tensor.isfinite](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.isfinite) | paddle.Tensor.isfinite | - | +| 271 | [torch.Tensor.isinf](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.isinf) | paddle.Tensor.isinf | - | +| 272 | [torch.Tensor.isneginf](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.isneginf) | paddle.Tensor.isneginf | - | +| 273 | [torch.Tensor.isposinf](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.isposinf) | paddle.Tensor.isposinf | - | +| 274 | [torch.Tensor.isreal](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.isreal) | paddle.Tensor.isreal | - | +| 275 | [torch.Tensor.istft](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.istft) | paddle.Tensor.istft | - | +| 276 | [torch.Tensor.lgamma](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.lgamma) | paddle.Tensor.lgamma | - | +| 277 | [torch.Tensor.lgamma_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.lgamma_) | paddle.Tensor.lgamma_ | - | +| 278 | [torch.Tensor.log10](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.log10) | paddle.Tensor.log10 | - | +| 279 | [torch.Tensor.log10_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.log10_) | paddle.Tensor.log10_ | - | +| 280 | [torch.Tensor.log1p](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.log1p) | paddle.Tensor.log1p | - | +| 281 | [torch.Tensor.log1p_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.log1p_) | paddle.Tensor.log1p_ | - | +| 282 | [torch.Tensor.log2](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.log2) | paddle.Tensor.log2 | - | +| 283 | [torch.Tensor.log2_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.log2_) | paddle.Tensor.log2_ | - | +| 284 | [torch.Tensor.log_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.log_) | paddle.Tensor.log_ | - | +| 285 | [torch.Tensor.logit](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.logit) | paddle.Tensor.logit | - | +| 286 | [torch.Tensor.logit_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.logit_) | paddle.Tensor.logit_ | - | +| 287 | [torch.Tensor.lu](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.lu) | paddle.Tensor.lu | - | +| 288 | [torch.Tensor.mT](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.mT) | paddle.Tensor.mT | - | +| 289 | [torch.Tensor.masked_scatter_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.masked_scatter_) | paddle.Tensor.masked_scatter_ | - | +| 290 | [torch.Tensor.masked_select](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.masked_select) | paddle.Tensor.masked_select | - | +| 291 | [torch.Tensor.matrix_power](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.matrix_power) | paddle.Tensor.matrix_power | - | +| 292 | [torch.Tensor.mm](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.mm) | paddle.Tensor.mm | - | +| 293 | [torch.Tensor.moveaxis](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.moveaxis) | paddle.Tensor.moveaxis | - | +| 294 | [torch.Tensor.mv](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.mv) | paddle.Tensor.mv | - | +| 295 | [torch.Tensor.nan_to_num](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.nan_to_num) | paddle.Tensor.nan_to_num | - | +| 296 | [torch.Tensor.nan_to_num_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.nan_to_num_) | paddle.Tensor.nan_to_num_ | - | +| 297 | [torch.Tensor.ndimension](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.ndimension) | paddle.Tensor.ndimension | - | +| 298 | [torch.Tensor.neg](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.neg) | paddle.Tensor.neg | - | +| 299 | [torch.Tensor.neg_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.neg_) | paddle.Tensor.neg_ | - | +| 300 | [torch.Tensor.pin_memory](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.pin_memory) | paddle.Tensor.pin_memory | - | +| 301 | [torch.Tensor.polygamma](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.polygamma) | paddle.Tensor.polygamma | - | +| 302 | [torch.Tensor.polygamma_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.polygamma_) | paddle.Tensor.polygamma_ | - | +| 303 | [torch.Tensor.rad2deg](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.rad2deg) | paddle.Tensor.rad2deg | - | +| 304 | [torch.Tensor.reciprocal](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.reciprocal) | paddle.Tensor.reciprocal | - | +| 305 | [torch.Tensor.reciprocal_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.reciprocal_) | paddle.Tensor.reciprocal_ | - | +| 306 | [torch.Tensor.register_hook](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.register_hook) | paddle.Tensor.register_hook | - | +| 307 | [torch.Tensor.rsqrt](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.rsqrt) | paddle.Tensor.rsqrt | - | +| 308 | [torch.Tensor.rsqrt_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.rsqrt_) | paddle.Tensor.rsqrt_ | - | +| 309 | [torch.Tensor.sgn](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.sgn) | paddle.Tensor.sgn | - | +| 310 | [torch.Tensor.sigmoid_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.sigmoid_) | paddle.Tensor.sigmoid_ | - | +| 311 | [torch.Tensor.sign](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.sign) | paddle.Tensor.sign | - | +| 312 | [torch.Tensor.signbit](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.signbit) | paddle.Tensor.signbit | - | +| 313 | [torch.Tensor.sin_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.sin_) | paddle.Tensor.sin_ | - | +| 314 | [torch.Tensor.sinc](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.sinc) | paddle.Tensor.sinc | - | +| 315 | [torch.Tensor.sinc_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.sinc_) | paddle.Tensor.sinc_ | - | +| 316 | [torch.Tensor.sinh](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.sinh) | paddle.Tensor.sinh | - | +| 317 | [torch.Tensor.sinh_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.sinh_) | paddle.Tensor.sinh_ | - | +| 318 | [torch.Tensor.sparse_dim](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.sparse_dim) | paddle.Tensor.sparse_dim | - | +| 319 | [torch.Tensor.sqrt](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.sqrt) | paddle.Tensor.sqrt | - | +| 320 | [torch.Tensor.sqrt_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.sqrt_) | paddle.Tensor.sqrt_ | - | +| 321 | [torch.Tensor.t](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.t) | paddle.Tensor.t | - | +| 322 | [torch.Tensor.t_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.t_) | paddle.Tensor.t_ | - | +| 323 | [torch.Tensor.tan](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.tan) | paddle.Tensor.tan | - | +| 324 | [torch.Tensor.tan_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.tan_) | paddle.Tensor.tan_ | - | +| 325 | [torch.Tensor.tanh](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.tanh) | paddle.Tensor.tanh | - | +| 326 | [torch.Tensor.tanh_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.tanh_) | paddle.Tensor.tanh_ | - | +| 327 | [torch.Tensor.to_dense](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.to_dense) | paddle.Tensor.to_dense | - | +| 328 | [torch.Tensor.tril_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.tril_) | paddle.Tensor.tril_ | - | +| 329 | [torch.Tensor.triu_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.triu_) | paddle.Tensor.triu_ | - | +| 330 | [torch.Tensor.trunc](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.trunc) | paddle.Tensor.trunc | - | +| 331 | [torch.Tensor.trunc_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.trunc_) | paddle.Tensor.trunc_ | - | +| 332 | [torch.Tensor.values](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.values) | paddle.Tensor.values | - | +| 333 | [torch.\_\_version\_\_](https://pytorch.org/docs/stable/torch.html#torch.__version__) | paddle.\_\_version\_\_ | - | +| 334 | [torch.\_\_version\_\_.split](https://pytorch.org/docs/stable/generated/torch.__version__.split.html#torch.__version__.split) | paddle.\_\_version\_\_.split | - | +| 335 | [torch.diag_embed](https://pytorch.org/docs/stable/torch.html#torch.diag_embed) | paddle.diag_embed | - | +| 336 | [torch.distributed.ReduceOp.MAX](https://pytorch.org/docs/stable/generated/torch.distributed.ReduceOp.html#torch.distributed.ReduceOp.MAX) | paddle.distributed.ReduceOp.MAX | - | +| 337 | [torch.distributed.ReduceOp.MIN](https://pytorch.org/docs/stable/generated/torch.distributed.ReduceOp.html#torch.distributed.ReduceOp.MIN) | paddle.distributed.ReduceOp.MIN | - | +| 338 | [torch.distributed.ReduceOp.SUM](https://pytorch.org/docs/stable/generated/torch.distributed.ReduceOp.html#torch.distributed.ReduceOp.SUM) | paddle.distributed.ReduceOp.SUM | - | +| 339 | [torch.distributed.batch_isend_irecv](https://pytorch.org/docs/stable/generated/torch.distributed.batch_isend_irecv.html#torch.distributed.batch_isend_irecv) | paddle.distributed.batch_isend_irecv | - | +| 340 | [torch.distributed.get_backend](https://pytorch.org/docs/stable/generated/torch.distributed.get_backend.html#torch.distributed.get_backend) | paddle.distributed.get_backend | - | +| 341 | [torch.distributed.is_available](https://pytorch.org/docs/stable/generated/torch.distributed.is_available.html#torch.distributed.is_available) | paddle.distributed.is_available | - | +| 342 | [torch.distributed.is_initialized](https://pytorch.org/docs/stable/generated/torch.distributed.is_initialized.html#torch.distributed.is_initialized) | paddle.distributed.is_initialized | - | +| 343 | [torch.e](https://pytorch.org/docs/stable/torch.html#torch.e) | paddle.e | - | +| 344 | [torch.enable_grad](https://pytorch.org/docs/stable/torch.html#torch.enable_grad) | paddle.enable_grad | - | +| 345 | [torch.inf](https://pytorch.org/docs/stable/torch.html#torch.inf) | paddle.inf | - | +| 346 | [torch.is_grad_enabled](https://pytorch.org/docs/stable/torch.html#torch.is_grad_enabled) | paddle.is_grad_enabled | - | +| 347 | [torch.nan](https://pytorch.org/docs/stable/torch.html#torch.nan) | paddle.nan | - | +| 348 | [torch.newaxis](https://pytorch.org/docs/stable/torch.html#torch.newaxis) | paddle.newaxis | - | +| 349 | [torch.nn.LogSigmoid](https://pytorch.org/docs/stable/generated/torch.nn.LogSigmoid.html#torch.nn.LogSigmoid) | paddle.nn.LogSigmoid | - | +| 350 | [torch.nn.Sigmoid](https://pytorch.org/docs/stable/generated/torch.nn.Sigmoid.html#torch.nn.Sigmoid) | paddle.nn.Sigmoid | - | +| 351 | [torch.nn.Softplus](https://pytorch.org/docs/stable/generated/torch.nn.Softplus.html#torch.nn.Softplus) | paddle.nn.Softplus | - | +| 352 | [torch.nn.Softsign](https://pytorch.org/docs/stable/generated/torch.nn.Softsign.html#torch.nn.Softsign) | paddle.nn.Softsign | - | +| 353 | [torch.nn.Tanh](https://pytorch.org/docs/stable/generated/torch.nn.Tanh.html#torch.nn.Tanh) | paddle.nn.Tanh | - | +| 354 | [torch.nn.Tanhshrink](https://pytorch.org/docs/stable/generated/torch.nn.Tanhshrink.html#torch.nn.Tanhshrink) | paddle.nn.Tanhshrink | - | +| 355 | [torch.nn.TransformerDecoder](https://pytorch.org/docs/stable/generated/torch.nn.TransformerDecoder.html#torch.nn.TransformerDecoder) | paddle.nn.TransformerDecoder | - | +| 356 | [torch.nn.TripletMarginWithDistanceLoss](https://pytorch.org/docs/stable/generated/torch.nn.TripletMarginWithDistanceLoss.html#torch.nn.TripletMarginWithDistanceLoss) | paddle.nn.TripletMarginWithDistanceLoss | - | +| 357 | [torch.nn.utils.parameters_to_vector](https://pytorch.org/docs/stable/generated/torch.nn.utils.parameters_to_vector.html#torch.nn.utils.parameters_to_vector) | paddle.nn.utils.parameters_to_vector | - | +| 358 | [torch.nn.utils.vector_to_parameters](https://pytorch.org/docs/stable/generated/torch.nn.utils.vector_to_parameters.html#torch.nn.utils.vector_to_parameters) | paddle.nn.utils.vector_to_parameters | - | +| 359 | [torch.pi](https://pytorch.org/docs/stable/torch.html#torch.pi) | paddle.pi | - | +| 360 | [torch.set_default_dtype](https://pytorch.org/docs/stable/torch.html#torch.set_default_dtype) | paddle.set_default_dtype | - | +| 361 | [torch.t](https://pytorch.org/docs/stable/torch.html#torch.t) | paddle.t | - | +| 362 | [torch.utils.cpp_extension.BuildExtension](https://pytorch.org/docs/stable/generated/torch.utils.cpp_extension.BuildExtension.html#torch.utils.cpp_extension.BuildExtension) | paddle.utils.cpp_extension.BuildExtension | - | +| 363 | [torch.utils.cpp_extension.BuildExtension.with_options](https://pytorch.org/docs/stable/generated/torch.utils.cpp_extension.BuildExtension.html#torch.utils.cpp_extension.BuildExtension.with_options) | paddle.utils.cpp_extension.BuildExtension.with_options | - | +| 364 | [torch.Tensor.element_size](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.element_size) | paddle.Tensor.element_size | - | +| 365 | [torch.Tensor.view_as](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.view_as) | paddle.Tensor.view_as | - | +| 366 | [torch.dtype](https://pytorch.org/docs/stable/torch.html#torch.dtype) | paddle.dtype | - | +| 367 | [torch.Tensor.\_\_and\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__and__) | paddle.Tensor.\_\_and\_\_ | - | +| 368 | [torch.Tensor.\_\_array\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__array__) | paddle.Tensor.\_\_array\_\_ | - | +| 369 | [torch.Tensor.\_\_bool\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__bool__) | paddle.Tensor.\_\_bool\_\_ | - | +| 370 | [torch.Tensor.\_\_eq\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__eq__) | paddle.Tensor.\_\_eq\_\_ | - | +| 371 | [torch.Tensor.\_\_format\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__format__) | paddle.Tensor.\_\_format\_\_ | - | +| 372 | [torch.Tensor.\_\_getitem\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__getitem__) | paddle.Tensor.\_\_getitem\_\_ | - | +| 373 | [torch.Tensor.\_\_index\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__index__) | paddle.Tensor.\_\_index\_\_ | - | +| 374 | [torch.Tensor.\_\_invert\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__invert__) | paddle.Tensor.\_\_invert\_\_ | - | +| 375 | [torch.Tensor.\_\_len\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__len__) | paddle.Tensor.\_\_len\_\_ | - | +| 376 | [torch.Tensor.\_\_or\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__or__) | paddle.Tensor.\_\_or\_\_ | - | +| 377 | [torch.Tensor.\_\_rpow\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__rpow__) | paddle.Tensor.\_\_rpow\_\_ | - | +| 378 | [torch.Tensor.\_\_rsub\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__rsub__) | paddle.Tensor.\_\_rsub\_\_ | - | +| 379 | [torch.Tensor.\_\_rtruediv\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__rtruediv__) | paddle.Tensor.\_\_rtruediv\_\_ | - | +| 380 | [torch.Tensor.\_\_setitem\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__setitem__) | paddle.Tensor.\_\_setitem\_\_ | - | +| 381 | [torch.matmul](https://pytorch.org/docs/stable/torch.html#torch.matmul) | paddle.matmul | - | +| 382 | [torch.linalg.matmul](https://pytorch.org/docs/stable/generated/torch.linalg.matmul.html#torch.linalg.matmul) | paddle.linalg.matmul | - | +| 383 | [torch.Tensor.multiply](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.multiply) | paddle.Tensor.multiply | - | +| 384 | [torch.Tensor.multiply_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.multiply_) | paddle.Tensor.multiply_ | - | +| 385 | [torch.Tensor.matmul](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.matmul) | paddle.Tensor.matmul | - | +| 386 | [torch.Tensor.amax](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.amax) | paddle.Tensor.amax | - | +| 387 | [torch.Tensor.amin](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.amin) | paddle.Tensor.amin | - | +| 388 | [torch.log2](https://pytorch.org/docs/stable/torch.html#torch.log2) | paddle.log2 | - | +| 389 | [torch.Tensor.remainder](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.remainder) | paddle.Tensor.remainder | - | +| 390 | [torch.remainder](https://pytorch.org/docs/stable/torch.html#torch.remainder) | paddle.remainder | - | +| 391 | [torch.broadcast_to](https://pytorch.org/docs/stable/torch.html#torch.broadcast_to) | paddle.broadcast_to | - | +| 392 | [torch.nn.functional.embedding](https://pytorch.org/docs/stable/generated/torch.nn.functional.embedding.html#torch.nn.functional.embedding) | paddle.nn.functional.embedding | - | +| 393 | [torch.no_grad](https://pytorch.org/docs/stable/torch.html#torch.no_grad) | paddle.no_grad | - | +| 394 | [torch.reshape](https://pytorch.org/docs/stable/torch.html#torch.reshape) | paddle.reshape | - | +| 395 | [torch.Tensor.bitwise_or_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.bitwise_or_) | paddle.Tensor.bitwise_or_ | - | +| 396 | [torch.Tensor.view](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.view) | paddle.Tensor.view | - | +| 397 | [torch.unique_consecutive](https://pytorch.org/docs/stable/torch.html#torch.unique_consecutive) | paddle.unique_consecutive | - | +| 398 | [torch.Tensor.cumsum](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.cumsum) | paddle.Tensor.cumsum | - | +| 399 | [torch.Tensor.expand](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.expand) | paddle.Tensor.expand | - | +| 400 | [torch.isfinite](https://pytorch.org/docs/stable/torch.html#torch.isfinite) | paddle.isfinite | - | +| 401 | [torch.isinf](https://pytorch.org/docs/stable/torch.html#torch.isinf) | paddle.isinf | - | +| 402 | [torch.isnan](https://pytorch.org/docs/stable/torch.html#torch.isnan) | paddle.isnan | - | +| 403 | [torch.flatten](https://pytorch.org/docs/stable/torch.html#torch.flatten) | paddle.flatten | - | +| 404 | [torch.Tensor.flatten](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.flatten) | paddle.Tensor.flatten | - | +| 405 | [torch.roll](https://pytorch.org/docs/stable/torch.html#torch.roll) | paddle.roll | - | +| 406 | [torch.Tensor.sum](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.sum) | paddle.Tensor.sum | - | +| 407 | [torch.sum](https://pytorch.org/docs/stable/torch.html#torch.sum) | paddle.sum | - | +| 408 | [torch.prod](https://pytorch.org/docs/stable/torch.html#torch.prod) | paddle.prod | - | +| 409 | [torch.ceil](https://pytorch.org/docs/stable/torch.html#torch.ceil) | paddle.ceil | - | +| 410 | [torch.floor_divide](https://pytorch.org/docs/stable/torch.html#torch.floor_divide) | paddle.floor_divide | - | +| 411 | [torch.masked_select](https://pytorch.org/docs/stable/torch.html#torch.masked_select) | paddle.masked_select | - | +| 412 | [torch.finfo](https://pytorch.org/docs/stable/torch.html#torch.finfo) | paddle.finfo | - | +| 413 | [torch.is_complex](https://pytorch.org/docs/stable/torch.html#torch.is_complex) | paddle.is_complex | - | +| 414 | [torch.concat](https://pytorch.org/docs/stable/torch.html#torch.concat) | paddle.concat | - | +| 415 | [torch.nonzero](https://pytorch.org/docs/stable/torch.html#torch.nonzero) | paddle.nonzero | - | +| 416 | [torch.Tensor.pow](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.pow) | paddle.Tensor.pow | - | +| 417 | [torch.Tensor.prod](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.prod) | paddle.Tensor.prod | - | +| 418 | [torch.Tensor.reshape](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.reshape) | paddle.Tensor.reshape | - | +| 419 | [torch.argsort](https://pytorch.org/docs/stable/torch.html#torch.argsort) | paddle.argsort | - | +| 420 | [torch.Tensor.argsort](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.argsort) | paddle.Tensor.argsort | - | +| 421 | [torch.Tensor.squeeze](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.squeeze) | paddle.Tensor.squeeze | - | +| 422 | [torch.chunk](https://pytorch.org/docs/stable/torch.html#torch.chunk) | paddle.chunk | - | +| 423 | [torch.Tensor.chunk](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.chunk) | paddle.Tensor.chunk | - | +| 424 | [torch.any](https://pytorch.org/docs/stable/torch.html#torch.any) | paddle.any | - | +| 425 | [torch.nn.functional.one_hot](https://pytorch.org/docs/stable/generated/torch.nn.functional.one_hot.html#torch.nn.functional.one_hot) | paddle.nn.functional.one_hot | - | +| 426 | [torch.unbind](https://pytorch.org/docs/stable/torch.html#torch.unbind) | paddle.unbind | - | +| 427 | [torch.Tensor.unbind](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.unbind) | paddle.Tensor.unbind | - | +| 428 | [torch.is_floating_point](https://pytorch.org/docs/stable/torch.html#torch.is_floating_point) | paddle.is_floating_point | - | +| 429 | [torch.is_tensor](https://pytorch.org/docs/stable/torch.html#torch.is_tensor) | paddle.is_tensor | - | +| 430 | [torch.isin](https://pytorch.org/docs/stable/torch.html#torch.isin) | paddle.isin | - | +| 431 | [torch.Tensor.expand_as](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.expand_as) | paddle.Tensor.expand_as | - | +| 432 | [torch.logsumexp](https://pytorch.org/docs/stable/torch.html#torch.logsumexp) | paddle.logsumexp | - | +| 433 | [torch.Tensor.logsumexp](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.logsumexp) | paddle.Tensor.logsumexp | - | +| 434 | [torch.argmax](https://pytorch.org/docs/stable/torch.html#torch.argmax) | paddle.argmax | - | +| 435 | [torch.Tensor.argmax](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.argmax) | paddle.Tensor.argmax | - | +| 436 | [torch.argmin](https://pytorch.org/docs/stable/torch.html#torch.argmin) | paddle.argmin | - | +| 437 | [torch.Tensor.argmin](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.argmin) | paddle.Tensor.argmin | - | +| 438 | [torch.all](https://pytorch.org/docs/stable/torch.html#torch.all) | paddle.all | - | +| 439 | [torch.Tensor.all](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.all) | paddle.Tensor.all | - | +| 440 | [torch.Tensor.any](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.any) | paddle.Tensor.any | - | +| 441 | [torch.tensor_split](https://pytorch.org/docs/stable/torch.html#torch.tensor_split) | paddle.tensor_split | - | +| 442 | [torch.nn.functional.gelu](https://pytorch.org/docs/stable/generated/torch.nn.functional.gelu.html#torch.nn.functional.gelu) | paddle.nn.functional.gelu | - | +| 443 | [torch.layer_norm](https://pytorch.org/docs/stable/torch.html#torch.layer_norm) | paddle.layer_norm | - | +| 444 | [torch.logical_not](https://pytorch.org/docs/stable/torch.html#torch.logical_not) | paddle.logical_not | - | +| 445 | [torch.Tensor.logical_not](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.logical_not) | paddle.Tensor.logical_not | - | +| 446 | [torch.logical_and](https://pytorch.org/docs/stable/torch.html#torch.logical_and) | paddle.logical_and | - | +| 447 | [torch.Tensor.logical_and](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.logical_and) | paddle.Tensor.logical_and | - | +| 448 | [torch.logical_or](https://pytorch.org/docs/stable/torch.html#torch.logical_or) | paddle.logical_or | - | +| 449 | [torch.Tensor.logical_or](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.logical_or) | paddle.Tensor.logical_or | - | +| 450 | [torch.logical_xor](https://pytorch.org/docs/stable/torch.html#torch.logical_xor) | paddle.logical_xor | - | +| 451 | [torch.Tensor.logical_xor](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.logical_xor) | paddle.Tensor.logical_xor | - | +| 452 | [torch.index_select](https://pytorch.org/docs/stable/torch.html#torch.index_select) | paddle.index_select | - | +| 453 | [torch.Tensor.index_select](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.index_select) | paddle.Tensor.index_select | - | +| 454 | [torch.dot](https://pytorch.org/docs/stable/torch.html#torch.dot) | paddle.dot | - | +| 455 | [torch.Tensor.dot](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.dot) | paddle.Tensor.dot | - | +| 456 | [torch.nn.functional.conv1d](https://pytorch.org/docs/stable/generated/torch.nn.functional.conv1d.html#torch.nn.functional.conv1d) | paddle.nn.functional.conv1d | - | +| 457 | [torch.nn.functional.conv2d](https://pytorch.org/docs/stable/generated/torch.nn.functional.conv2d.html#torch.nn.functional.conv2d) | paddle.nn.functional.conv2d | - | +| 458 | [torch.nn.functional.conv3d](https://pytorch.org/docs/stable/generated/torch.nn.functional.conv3d.html#torch.nn.functional.conv3d) | paddle.nn.functional.conv3d | - | +| 459 | [torch.conv1d](https://pytorch.org/docs/stable/torch.html#torch.conv1d) | paddle.conv1d | - | +| 460 | [torch.conv2d](https://pytorch.org/docs/stable/torch.html#torch.conv2d) | paddle.conv2d | - | +| 461 | [torch.conv3d](https://pytorch.org/docs/stable/torch.html#torch.conv3d) | paddle.conv3d | - | +| 462 | [torch.complex128](https://pytorch.org/docs/stable/torch.html#torch.complex128) | paddle.complex128 | - | +| 463 | [torch.complex64](https://pytorch.org/docs/stable/torch.html#torch.complex64) | paddle.complex64 | - | +| 464 | [torch.float64](https://pytorch.org/docs/stable/torch.html#torch.float64) | paddle.float64 | - | +| 465 | [torch.float16](https://pytorch.org/docs/stable/torch.html#torch.float16) | paddle.float16 | - | +| 466 | [torch.int16](https://pytorch.org/docs/stable/torch.html#torch.int16) | paddle.int16 | - | +| 467 | [torch.int8](https://pytorch.org/docs/stable/torch.html#torch.int8) | paddle.int8 | - | +| 468 | [torch.Tensor.narrow](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.narrow) | paddle.Tensor.narrow | - | +| 469 | [torch.narrow](https://pytorch.org/docs/stable/torch.html#torch.narrow) | paddle.narrow | - | +| 470 | [torch.Tensor.type_as](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.type_as) | paddle.Tensor.type_as | - | +| 471 | [torch.nn.Sequential](https://pytorch.org/docs/stable/generated/torch.nn.Sequential.html#torch.nn.Sequential) | paddle.nn.Sequential | - | +| 472 | [torch.Tensor.clone](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.clone) | paddle.Tensor.clone | - | +| 473 | [torch.Tensor.contiguous](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.contiguous) | paddle.Tensor.contiguous | - | +| 474 | [torch.Tensor.is_contiguous](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.is_contiguous) | paddle.Tensor.is_contiguous | - | +| 475 | [torch.utils.cpp_extension.CUDA_HOME](https://pytorch.org/docs/stable/generated/torch.utils.cpp_extension.CUDA_HOME.html#torch.utils.cpp_extension.CUDA_HOME) | paddle.utils.cpp_extension.CUDA_HOME | - | +| 476 | [torch.Tensor.is_coalesced](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.is_coalesced) | paddle.Tensor.is_coalesced | - | +| 477 | [torch.torch.int32](https://pytorch.org/docs/stable/generated/torch.torch.int32.html#torch.torch.int32) | paddle.paddle.int32 | - | +| 478 | [torch.transpose](https://pytorch.org/docs/stable/torch.html#torch.transpose) | paddle.transpose | - | +| 479 | [torch.Tensor.transpose](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.transpose) | paddle.Tensor.transpose | - | +| 480 | [torch.unsqueeze](https://pytorch.org/docs/stable/torch.html#torch.unsqueeze) | paddle.unsqueeze | - | +| 481 | [torch.Tensor.unsqueeze](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.unsqueeze) | paddle.Tensor.unsqueeze | - | +| 482 | [torch.sigmoid](https://pytorch.org/docs/stable/torch.html#torch.sigmoid) | paddle.sigmoid | - | +| 483 | [torch.Tensor.topk](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.topk) | paddle.Tensor.topk | - | +| 484 | [torch.outer](https://pytorch.org/docs/stable/torch.html#torch.outer) | paddle.outer | - | +| 485 | [torch.nn.functional.sigmoid](https://pytorch.org/docs/stable/generated/torch.nn.functional.sigmoid.html#torch.nn.functional.sigmoid) | paddle.nn.functional.sigmoid | - | +| 486 | [torch.Tensor.requires_grad](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.requires_grad) | paddle.Tensor.requires_grad | - | +| 487 | [torch.Tensor.data](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.data) | paddle.Tensor.data | - | +| 488 | [torch.Tensor.cpu](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.cpu) | paddle.Tensor.cpu | - | +| 489 | [torch.Tensor.\_\_add\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__add__) | paddle.Tensor.\_\_add\_\_ | - | +| 490 | [torch.Tensor.\_\_ge\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__ge__) | paddle.Tensor.\_\_ge\_\_ | - | +| 491 | [torch.Tensor.\_\_gt\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__gt__) | paddle.Tensor.\_\_gt\_\_ | - | +| 492 | [torch.Tensor.\_\_le\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__le__) | paddle.Tensor.\_\_le\_\_ | - | +| 493 | [torch.Tensor.\_\_lt\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__lt__) | paddle.Tensor.\_\_lt\_\_ | - | +| 494 | [torch.Tensor.\_\_mul\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__mul__) | paddle.Tensor.\_\_mul\_\_ | - | +| 495 | [torch.Tensor.\_\_ne\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__ne__) | paddle.Tensor.\_\_ne\_\_ | - | +| 496 | [torch.Tensor.\_\_neg\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__neg__) | paddle.Tensor.\_\_neg\_\_ | - | +| 497 | [torch.Tensor.\_\_radd\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__radd__) | paddle.Tensor.\_\_radd\_\_ | - | +| 498 | [torch.Tensor.\_\_rmul\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__rmul__) | paddle.Tensor.\_\_rmul\_\_ | - | +| 499 | [torch.Tensor.\_\_sub\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__sub__) | paddle.Tensor.\_\_sub\_\_ | - | +| 500 | [torch.Tensor.\_\_reduce\_ex\_\_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.__reduce_ex__) | paddle.Tensor.\_\_reduce\_ex\_\_ | - | +| 501 | [torch.from_numpy](https://pytorch.org/docs/stable/torch.html#torch.from_numpy) | paddle.from_numpy | - | +| 502 | [torch.greater](https://pytorch.org/docs/stable/torch.html#torch.greater) | paddle.greater | - | +| 503 | [torch.nn.functional.layer_norm](https://pytorch.org/docs/stable/generated/torch.nn.functional.layer_norm.html#torch.nn.functional.layer_norm) | paddle.nn.functional.layer_norm | - | +| 504 | [torch.nn.attention.sdpa_kernel](https://pytorch.org/docs/stable/generated/torch.nn.attention.sdpa_kernel.html#torch.nn.attention.sdpa_kernel) | paddle.nn.attention.sdpa_kernel | - | +| 505 | [torch.nn.attention.SDPBackend](https://pytorch.org/docs/stable/generated/torch.nn.attention.SDPBackend.html#torch.nn.attention.SDPBackend) | paddle.nn.attention.SDPBackend | - | +| 506 | [torch.nn.attention._cur_sdpa_kernel_backends](https://pytorch.org/docs/stable/generated/torch.nn.attention._cur_sdpa_kernel_backends.html#torch.nn.attention._cur_sdpa_kernel_backends) | paddle.nn.attention._cur_sdpa_kernel_backends | - | +| 507 | [torch.nn.SiLU](https://pytorch.org/docs/stable/generated/torch.nn.SiLU.html#torch.nn.SiLU) | paddle.nn.SiLU | - | +| 508 | [torch.randperm](https://pytorch.org/docs/stable/torch.html#torch.randperm) | paddle.randperm | - | +| 509 | [torch.Tensor.ge](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.ge) | paddle.Tensor.ge | - | +| 510 | [torch.Tensor.gt](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.gt) | paddle.Tensor.gt | - | +| 511 | [torch.Tensor.le](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.le) | paddle.Tensor.le | - | +| 512 | [torch.Tensor.lt](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.lt) | paddle.Tensor.lt | - | +| 513 | [torch.Tensor.ne](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.ne) | paddle.Tensor.ne | - | +| 514 | [torch.manual_seed](https://pytorch.org/docs/stable/torch.html#torch.manual_seed) | paddle.manual_seed | - | +| 515 | [torch.asarray](https://pytorch.org/docs/stable/torch.html#torch.asarray) | paddle.asarray | - | +| 516 | [torch.ne](https://pytorch.org/docs/stable/torch.html#torch.ne) | paddle.ne | - | +| 517 | [torch.lt](https://pytorch.org/docs/stable/torch.html#torch.lt) | paddle.lt | - | +| 518 | [torch.less](https://pytorch.org/docs/stable/torch.html#torch.less) | paddle.less | - | +| 519 | [torch.le](https://pytorch.org/docs/stable/torch.html#torch.le) | paddle.le | - | +| 520 | [torch.ge](https://pytorch.org/docs/stable/torch.html#torch.ge) | paddle.ge | - | +| 521 | [torch.get_default_device](https://pytorch.org/docs/stable/torch.html#torch.get_default_device) | paddle.get_default_device | - | +| 522 | [torch.Tensor.eq](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.eq) | paddle.Tensor.eq | - | +| 523 | [torch.Tensor.less](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.less) | paddle.Tensor.less | - | +| 524 | [torch.Tensor.greater](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.greater) | paddle.Tensor.greater | - | +| 525 | [torch.gather](https://pytorch.org/docs/stable/torch.html#torch.gather) | paddle.gather | - | +| 526 | [torch.Tensor.gather](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.gather) | paddle.Tensor.gather | - | +| 527 | [torch.Tensor.scatter](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.scatter) | paddle.Tensor.scatter | - | +| 528 | [torch.Tensor.scatter_](https://pytorch.org/docs/stable/tensors.html#torch.Tensor.scatter_) | paddle.Tensor.scatter_ | - | +| 529 | [torch.scatter](https://pytorch.org/docs/stable/torch.html#torch.scatter) | paddle.scatter | - | +| 530 | [torch.cuda.get_device_properties](https://pytorch.org/docs/stable/generated/torch.cuda.get_device_properties.html#torch.cuda.get_device_properties) | paddle.cuda.get_device_properties | - | +| 531 | [torch.cuda.get_rng_state](https://pytorch.org/docs/stable/generated/torch.cuda.get_rng_state.html#torch.cuda.get_rng_state) | paddle.cuda.get_rng_state | - | +| 532 | [torch.cuda.is_current_stream_capturing](https://pytorch.org/docs/stable/generated/torch.cuda.is_current_stream_capturing.html#torch.cuda.is_current_stream_capturing) | paddle.cuda.is_current_stream_capturing | - | +| 533 | [torch.cuda.manual_seed_all](https://pytorch.org/docs/stable/generated/torch.cuda.manual_seed_all.html#torch.cuda.manual_seed_all) | paddle.cuda.manual_seed_all | - | +| 534 | [torch.cuda.set_rng_state](https://pytorch.org/docs/stable/generated/torch.cuda.set_rng_state.html#torch.cuda.set_rng_state) | paddle.cuda.set_rng_state | - | +| 535 | [torch.get_device_module](https://pytorch.org/docs/stable/torch.html#torch.get_device_module) | paddle.get_device_module | - | +| 536 | [torch.cuda.is_available](https://pytorch.org/docs/stable/generated/torch.cuda.is_available.html#torch.cuda.is_available) | paddle.cuda.is_available | - | +| 537 | [torch.device](https://pytorch.org/docs/stable/torch.html#torch.device) | paddle.device | - | +| 538 | [torch.cuda.get_device_capability](https://pytorch.org/docs/stable/generated/torch.cuda.get_device_capability.html#torch.cuda.get_device_capability) | paddle.cuda.get_device_capability | - | +| 539 | [torch.cuda.current_device](https://pytorch.org/docs/stable/generated/torch.cuda.current_device.html#torch.cuda.current_device) | paddle.cuda.current_device | - | +| 540 | [torch.cuda.device_count](https://pytorch.org/docs/stable/generated/torch.cuda.device_count.html#torch.cuda.device_count) | paddle.cuda.device_count | - | +| 541 | [torch.cuda.empty_cache](https://pytorch.org/docs/stable/generated/torch.cuda.empty_cache.html#torch.cuda.empty_cache) | paddle.cuda.empty_cache | - | +| 542 | [torch.cuda.memory_allocated](https://pytorch.org/docs/stable/generated/torch.cuda.memory_allocated.html#torch.cuda.memory_allocated) | paddle.cuda.memory_allocated | - | +| 543 | [torch.cuda.memory_reserved](https://pytorch.org/docs/stable/generated/torch.cuda.memory_reserved.html#torch.cuda.memory_reserved) | paddle.cuda.memory_reserved | - | +| 544 | [torch.cuda.set_device](https://pytorch.org/docs/stable/generated/torch.cuda.set_device.html#torch.cuda.set_device) | paddle.cuda.set_device | - | +| 545 | [torch.cuda.current_stream](https://pytorch.org/docs/stable/generated/torch.cuda.current_stream.html#torch.cuda.current_stream) | paddle.cuda.current_stream | - | ### 2. 仅 API 调用方式不一致 **分类简介** @@ -57,6 +604,131 @@ paddle.nn.Softplus(beta=0.5, threshold=15) | 序号 | Pytorch 最新 release | Paddle develop | 备注 | |------|-------------------|---------------|------| +| 1 | [fairscale.nn.model\_parallel.initialize.get\_model\_parallel\_rank](https://github.com/facebookresearch/fairscale/blob/164cc0f3170b4a3951dd84dda29c3e1504ac4d6e/fairscale/nn/model_parallel/initialize.py#L155) | [paddle.distributed.fleet.base.topology.\_HYBRID\_PARALLEL\_GROUP.get\_model\_parallel\_rank](https://github.com/PaddlePaddle/Paddle/blob/ddac1b431483ddc0f1ee600e799aa31fc0a75961/python/paddle/distributed/fleet/base/topology.py#L463) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/fairscale.nn.model_parallel.initialize.get_model_parallel_rank.html) | +| 2 | [fairscale.nn.model\_parallel.initialize.get\_model\_parallel\_world\_size](https://github.com/facebookresearch/fairscale/blob/164cc0f3170b4a3951dd84dda29c3e1504ac4d6e/fairscale/nn/model_parallel/initialize.py#L150) | [paddle.distributed.fleet.base.topology.\_HYBRID\_PARALLEL\_GROUP.\_mp\_degree](https://github.com/PaddlePaddle/Paddle/blob/ddac1b431483ddc0f1ee600e799aa31fc0a75961/python/paddle/distributed/fleet/base/topology.py#L185) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/fairscale.nn.model_parallel.initialize.get_model_parallel_world_size.html) | +| 3 | [flash\_attn.\_\_version\_\_.split](https://github.com/Dao-AILab/flash-attention/blob/72e27c6320555a37a83338178caa25a388e46121/flash_attn/__init__.py) | [paddle.\_\_version\_\_.split](https://github.com/PaddlePaddle/Paddle/tree/develop) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/flash_attn.__version__.split.html) | +| 4 | [torch.Tensor.bernoulli](https://pytorch.org/docs/stable/generated/torch.Tensor.bernoulli.html#torch.Tensor.bernoulli) | [paddle.bernoulli](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/bernoulli_cn.html#bernoulli) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.bernoulli.html) | +| 5 | [torch.Tensor.clamp_](https://pytorch.org/docs/stable/generated/torch.Tensor.clamp_.html?highlight=clamp_#torch.Tensor.clamp_) | [paddle.Tensor.clip_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#id6) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.clamp_.html) | +| 6 | [torch.Tensor.col_indices](https://pytorch.org/docs/stable/generated/torch.Tensor.col_indices.html) | paddle.Tensor.cols | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.col_indices.html) | +| 7 | [torch.Tensor.conj_physical](https://pytorch.org/docs/stable/generated/torch.Tensor.conj_physical.html#torch.Tensor.conj_physical) | [paddle.Tensor.conj](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#conj-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.conj_physical.html) | +| 8 | [torch.Tensor.crow_indices](https://pytorch.org/docs/stable/generated/torch.Tensor.crow_indices.html) | paddle.Tensor.crows | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.crow_indices.html) | +| 9 | [torch.Tensor.det](https://pytorch.org/docs/stable/generated/torch.Tensor.det.html?highlight=det#torch.Tensor.det) | [paddle.linalg.det](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/det_cn.html#det) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.det.html) | +| 10 | [torch.Tensor.erf_](https://pytorch.org/docs/stable/generated/torch.Tensor.erf_.html) | paddle.erf_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.erf_.html) | +| 11 | [torch.Tensor.expm1_](https://pytorch.org/docs/stable/generated/torch.Tensor.expm1_.html) | paddle.expm1_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.expm1_.html) | +| 12 | [torch.Tensor.fix](https://pytorch.org/docs/stable/generated/torch.Tensor.fix.html?highlight=fix#torch.Tensor.fix) | [paddle.Tensor.trunc](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#trunc-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.fix.html) | +| 13 | [torch.Tensor.fix_](https://pytorch.org/docs/stable/generated/torch.Tensor.fix_.html) | paddle.Tensor.trunc_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.fix_.html) | +| 14 | [torch.Tensor.hardshrink](https://pytorch.org/docs/stable/generated/torch.Tensor.hardshrink.html?highlight=torch+tensor+hardshrink#torch.Tensor.hardshrink) | [paddle.nn.functional.hardshrink](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/hardshrink_cn.html#hardshrink) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.hardshrink.html) | +| 15 | [torch.Tensor.lu_solve](https://pytorch.org/docs/stable/generated/torch.Tensor.lu_solve.html#torch-tensor-lu-solve) | [paddle.linalg.lu_solve](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/lu_solve_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.lu_solve.html) | +| 16 | [torch.Tensor.matrix_exp](https://pytorch.org/docs/stable/generated/torch.Tensor.matrix_exp.html#torch-tensor-matrix-exp) | [paddle.linalg.matrix_exp](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/matrix_exp_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.matrix_exp.html) | +| 17 | [torch.Tensor.movedim](https://pytorch.org/docs/stable/generated/torch.Tensor.movedim.html) | [paddle.Tensor.moveaxis](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/moveaxis_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.movedim.html) | +| 18 | [torch.Tensor.mvlgamma](https://pytorch.org/docs/stable/generated/torch.Tensor.mvlgamma.html#torch-tensor-mvlgamma) | [paddle.Tensor.multigammaln](https://github.com/PaddlePaddle/Paddle/blob/be090bd0bc9ac7a8595296c316b3a6ed3dc60ba6/python/paddle/tensor/math.py#L5099) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.mvlgamma.html) | +| 19 | [torch.Tensor.mvlgamma_](https://pytorch.org/docs/stable/generated/torch.Tensor.mvlgamma_.html#torch-tensor-mvlgamma) | [paddle.Tensor.multigammaln_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/multigammaln__cn.html#multigammaln) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.mvlgamma_.html) | +| 20 | [torch.Tensor.negative](https://pytorch.org/docs/stable/generated/torch.negative.html#torch.negative) | [paddle.Tensor.neg](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/neg_cn.html#cn-api-paddle-neg) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.negative.html) | +| 21 | [torch.Tensor.negative_](https://pytorch.org/docs/stable/generated/torch.Tensor.negative_.html) | paddle.Tensor.neg_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.negative_.html) | +| 22 | [torch.Tensor.nelement](https://pytorch.org/docs/stable/generated/torch.Tensor.nelement.html?highlight=nelement#torch.Tensor.nelement) | [paddle.Tensor.size](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fluid/layers/size_cn.html#cn-api-fluid-layers-size) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.nelement.html) | +| 23 | [torch.Tensor.numel](https://pytorch.org/docs/stable/generated/torch.numel.html?highlight=numel#torch.numel) | [paddle.Tensor.size](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fluid/layers/size_cn.html#cn-api-fluid-layers-size) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.numel.html) | +| 24 | [torch.Tensor.ormqr](https://pytorch.org/docs/stable/generated/torch.Tensor.orgqr.html#torch.Tensor.orgqr) | [paddle.linalg.ormqr](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/linalg/ormqr_cn.html#ormqr) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.ormqr.html) | +| 25 | [torch.Tensor.positive](https://pytorch.org/docs/stable/generated/torch.Tensor.positive.html#torch.Tensor.positive) | [paddle.positive](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/positive_cn.html#positive) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.positive.html) | +| 26 | [torch.Tensor.retain_grad](https://pytorch.org/docs/stable/generated/torch.Tensor.retain_grad.html) | [paddle.Tensor.retain_grads](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Overview_cn.html#paddle) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.retain_grad.html) | +| 27 | [torch.Tensor.sparse_mask](https://pytorch.org/docs/stable/generated/torch.Tensor.sparse_mask.html) | [paddle.sparse.mask_as](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/sparse/mask_as_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.sparse_mask.html) | +| 28 | [torch.Tensor.square_](https://pytorch.org/docs/stable/generated/torch.Tensor.square_.html) | paddle.square_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.square_.html) | +| 29 | [torch.Tensor.to_sparse](https://pytorch.org/docs/stable/generated/torch.Tensor.to_sparse.html#torch.Tensor.to_sparse) | paddle.Tensor.to_sparse_coo | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.to_sparse.html) | +| 30 | [torch.autograd.Function.forward](https://pytorch.org/docs/stable/generated/torch.autograd.Function.forward.html#torch.autograd.Function.forward) | [paddle.autograd.PyLayer.forward](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/autograd/PyLayer_cn.html#forward-ctx-args-kwargs) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.Function.forward.html) | +| 31 | [torch.autograd.enable_grad](https://pytorch.org/docs/stable/generated/torch.enable_grad.html#enable-grad) | [paddle.enable_grad](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/enable_grad.html#enable-grad) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.enable_grad.html) | +| 32 | torch.autograd.function.FunctionCtx | [paddle.autograd.PyLayerContext](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/autograd/PyLayerContext_cn.html#pylayercontext) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.function.FunctionCtx.html) | +| 33 | [torch.autograd.function.FunctionCtx.mark\_non\_differentiable](https://pytorch.org/docs/stable/generated/torch.autograd.function.FunctionCtx.mark_non_differentiable.html#torch.autograd.function.FunctionCtx.mark_non_differentiable) | [paddle.autograd.PyLayerContext.mark\_non\_differentiable](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/autograd/PyLayerContext_cn.html#mark-non-differentiable-self-tensors) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.autograd.function.FunctionCtx.mark_non_differentiable.html) | +| 34 | [torch.autograd.function.FunctionCtx.save\_for\_backward](https://pytorch.org/docs/stable/generated/torch.autograd.function.FunctionCtx.save_for_backward.html#torch.autograd.function.FunctionCtx.save_for_backward) | [paddle.autograd.PyLayerContext.save\_for\_backward](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/autograd/PyLayerContext_cn.html#save-for-backward-tensors) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.function.FunctionCtx.save_for_backward.html) | +| 35 | [torch.autograd.function.FunctionCtx.set\_materialize\_grads](https://pytorch.org/docs/stable/generated/torch.autograd.function.FunctionCtx.set_materialize_grads.html#torch.autograd.function.FunctionCtx.set_materialize_grads) | [paddle.autograd.PyLayerContext.set\_materialize\_grads](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/autograd/PyLayerContext_cn.html#set-materialize-grads-self-value) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.function.FunctionCtx.set_materialize_grads.html) | +| 36 | [torch.autograd.grad\_mode.set\_grad\_enabled](https://docs.pytorch.org/docs/stable/generated/torch.autograd.grad_mode.set_grad_enabled.html#torch.autograd.grad_mode.set_grad_enabled) | [paddle.set\_grad\_enabled](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/set_grad_enabled_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.grad_mode.set_grad_enabled.html) | +| 37 | [torch.autograd.graph.saved\_tensors\_hooks](https://pytorch.org/docs/stable/autograd.html?highlight=saved_tensors_hooks#torch.autograd.graph.saved_tensors_hooks) | [paddle.autograd.saved\_tensors\_hooks](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/autograd/saved_tensors_hooks_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.autograd.graph.saved_tensors_hooks.html) | +| 38 | [torch.backends.cuda.is_built](https://pytorch.org/docs/stable/backends.html?highlight=torch+backends+cudnn+is_available#torch.backends.cuda.is_built) | [paddle.device.is\_compiled\_with\_cuda](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/device/is_compiled_with_cuda_cn.html#is-compiled-with-cuda) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.backends.cuda.is_built.html) | +| 39 | [torch.backends.cudnn.version](https://pytorch.org/docs/stable/generated/torch.backends.cudnn.version.html) | [paddle.device.get\_cudnn\_version](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/device/get_cudnn_version_cn.html#get-cudnn-version) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.backends.cudnn.version.html) | +| 40 | [torch.cpu.current_device](https://pytorch.org/docs/stable/generated/torch.cpu.current_device.html) | [paddle.get_device](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/device/get_device_cn.html#get-device) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cpu.current_device.html) | +| 41 | [torch.cuda.Event](https://pytorch.org/docs/stable/generated/torch.cuda.Event.html#torch.cuda.Event) | [paddle.device.cuda.Event](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/device/cuda/Event_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.Event.html) | +| 42 | [torch.cuda.StreamContext](https://pytorch.org/docs/stable/generated/torch.cuda.StreamContext.html#torch.cuda.StreamContext) | [paddle.device.stream_guard](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/device/stream_guard_cn.html#stream-guard) | - | +| 43 | [torch.cuda.get\_device\_name](https://pytorch.org/docs/stable/generated/torch.cuda.get_device_name.html) | [paddle.device.cuda.get\_device\_name](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/device/cuda/get_device_name_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.get_device_name.html) | +| 44 | [torch.cuda.is\_bf16\_supported](https://pytorch.org/docs/stable/cuda.html) | [paddle.amp.is\_bfloat16\_supported](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/amp/is_bfloat16_supported_cn.html#is-bfloat16-supported) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.is_bf16_supported.html) | +| 45 | [torch.cuda.max\_memory\_allocated](https://pytorch.org/docs/stable/generated/torch.cuda.max_memory_allocated.html#torch.cuda.max_memory_allocated) | [paddle.device.cuda.max\_memory\_allocated](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/device/cuda/max_memory_allocated_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.max_memory_allocated.html) | +| 46 | [torch.cuda.max\_memory\_reserved](https://pytorch.org/docs/stable/generated/torch.cuda.max_memory_reserved.html#torch.cuda.max_memory_reserved) | [paddle.device.cuda.max\_memory\_reserved](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/device/cuda/max_memory_reserved_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.max_memory_reserved.html) | +| 47 | [torch.cuda.nvtx.range_pop](https://pytorch.org/docs/stable/generated/torch.cuda.nvtx.range_pop.html#torch.cuda.nvtx.range_pop) | [paddle.framework.core.nvprof\_nvtx\_pop](https://github.com/PaddlePaddle/Paddle/blob/645dfb4040a15712cea9ccfed4dcb0655aeeb0ea/paddle/fluid/pybind/pybind.cc#L2468) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.nvtx.range_pop.html) | +| 48 | [torch.cuda.reset\_max\_memory\_allocated](https://pytorch.org/docs/stable/generated/torch.cuda.reset_max_memory_allocated.html#torch.cuda.reset_max_memory_allocated) | [paddle.device.cuda.reset\_max\_memory\_allocated](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/device/cuda/reset_max_memory_allocated_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.reset_max_memory_allocated.html) | +| 49 | [torch.cuda.reset\_max\_memory\_cached](https://docs.pytorch.org/docs/stable/generated/torch.cuda.reset_max_memory_cached.html#torch-cuda-reset-max-memory-cached) | [paddle.device.cuda.reset\_max\_memory\_reserved](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/device/cuda/reset_max_memory_reserved_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.reset_max_memory_cached.html) | +| 50 | [torch.cuda.set_stream](https://pytorch.org/docs/stable/generated/torch.cuda.set_stream.html#torch.cuda.set_stream) | [paddle.device.set_stream](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/device/set_stream_cn.html#set-stream) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.set_stream.html) | +| 51 | [torch.cuda.stream](https://pytorch.org/docs/stable/generated/torch.cuda.stream.html) | [paddle.device.stream_guard](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/device/stream_guard_cn.html#stream-guard) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.cuda.stream.html) | +| 52 | [torch.distributed.ReduceOp](https://pytorch.org/docs/stable/distributed.html?highlight=torch+distributed+reduceop#torch.distributed.ReduceOp) | [paddle.distributed.ReduceOp](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/ReduceOp_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributed.ReduceOp.html) | +| 53 | [torch.distributed.is\_nccl\_available](https://pytorch.org/docs/stable/distributed.html#torch.distributed.is_nccl_available) | [paddle.core.is\_compiled\_with\_nccl](https://github.com/PaddlePaddle/Paddle/blob/61de6003525166856157b6220205fe53df638376/python/paddle/jit/sot/utils/paddle_api_config.py#L159) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.is_nccl_available.html) | +| 54 | [torch.distributions.constraints.Constraint](https://pytorch.org/docs/stable/distributions.html#module-torch.distributions.constraints) | [paddle.distribution.constraint.Constraint](https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/distribution/constraint.py) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributions.constraints.Constraint.html) | +| 55 | [torch.distributions.distribution.Distribution.log_prob](https://pytorch.org/docs/stable/distributions.html#torch.distributions.distribution.Distribution.log_prob) | [paddle.distribution.Distribution.log_prob](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Distribution_cn.html#log-prob-value) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributions.distribution.Distribution.log_prob.html) | +| 56 | [torch.distributions.kl.kl_divergence](https://pytorch.org/docs/stable/distributions.html?highlight=torch+distributions+kl+kl_divergence#torch.distributions.kl.kl_divergence) | [paddle.distribution.kl_divergence](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/kl_divergence_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributions.kl.kl_divergence.html) | +| 57 | [torch.hub.load](https://pytorch.org/docs/stable/hub.html?highlight=hub+load#torch.hub.load) | [paddle.hub.load](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/hub/load_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.hub.load.html) | +| 58 | [torch.max](https://pytorch.org/docs/stable/generated/torch.max.html?highlight=max#torch.max) | paddle.compat.max | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.max.html) | +| 59 | [torch.median](https://pytorch.org/docs/stable/generated/torch.median.html?highlight=median#torch.median) | paddle.compat.median | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.median.html) | +| 60 | [torch.min](https://pytorch.org/docs/stable/generated/torch.min.html?highlight=min#torch.min) | paddle.compat.min | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.min.html) | +| 61 | [torch.nanmedian](https://pytorch.org/docs/stable/generated/torch.nanmedian.html?highlight=nanmedian#torch.nanmedian) | paddle.compat.nanmedian | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nanmedian.html) | +| 62 | [torch.nn.AdaptiveAvgPool1d](https://pytorch.org/docs/stable/generated/torch.nn.AdaptiveAvgPool1d.html) | [paddle.nn.AdaptiveAvgPool1D](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/AdaptiveAvgPool1D_cn.html#adaptiveavgpool1d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.AdaptiveAvgPool1d.html) | +| 63 | [torch.nn.HuberLoss](https://pytorch.org/docs/stable/generated/torch.nn.HuberLoss.html#torch.nn.HuberLoss) | [paddle.nn.SmoothL1Loss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/SmoothL1Loss_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.HuberLoss.html) | +| 64 | [torch.nn.Module.apply](https://pytorch.org/docs/stable/generated/torch.nn.Module.html?highlight=torch+nn+module+apply#torch.nn.Module.apply) | [paddle.nn.Layer.apply](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Module.apply.html) | +| 65 | [torch.nn.Module.children](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.children) | [paddle.nn.Layer.children](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#children) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Module.children.html) | +| 66 | [torch.nn.Module.eval](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.eval) | [paddle.nn.Layer.eval](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#eval) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Module.eval.html) | +| 67 | [torch.nn.Module.named_children](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.named_children) | [paddle.nn.Layer.named_children](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#named-children) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Module.named_children.html) | +| 68 | [torch.nn.Module.train](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.train) | [paddle.nn.Layer.train](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#train) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.nn.Module.train.html) | +| 69 | [torch.nn.Unfold](https://pytorch.org/docs/stable/generated/torch.nn.Unfold.html?highlight=nn+unfold#torch.nn.Unfold) | paddle.compat.Unfold | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.Unfold.html) | +| 70 | [torch.nn.functional.pad](https://pytorch.org/docs/stable/generated/torch.nn.functional.pad.html) | paddle.compat.pad | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.pad.html) | +| 71 | [torch.nn.functional.softmax](https://pytorch.org/docs/stable/generated/torch.nn.functional.softmax.html#torch.nn.functional.softmax) | paddle.compat.softmax | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.softmax.html) | +| 72 | [torch.optim.Optimizer.add\_param\_group](https://pytorch.org/docs/stable/generated/torch.optim.Optimizer.add_param_group.html?highlight=torch+optim+optimizer+add_param_group#torch.optim.Optimizer.add_param_group) | paddle.optimizer.Optimizer._add_param_group | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.optim.Optimizer.add_param_group.html) | +| 73 | [torch.optim.Optimizer.load\_state\_dict](https://pytorch.org/docs/stable/generated/torch.optim.Optimizer.load_state_dict.html#torch.optim.Optimizer.load_state_dict) | [paddle.optimizer.Optimizer.load\_state\_dict](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/Optimizer_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.optim.Optimizer.load_state_dict.html) | +| 74 | [torch.optim.Optimizer.state_dict](https://pytorch.org/docs/stable/generated/torch.optim.Optimizer.state_dict.html?highlight=torch+optim+optimizer+state_dict#torch.optim.Optimizer.state_dict) | [paddle.optimizer.Optimizer.state_dict](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/Optimizer_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.optim.Optimizer.state_dict.html) | +| 75 | [torch.optim.Optimizer.step](https://pytorch.org/docs/stable/generated/torch.optim.Optimizer.step.html#torch-optim-optimizer-step) | [paddle.optimizer.Optimizer.step](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/Optimizer_cn.html#step) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.optim.Optimizer.step.html) | +| 76 | [torch.sort](https://pytorch.org/docs/stable/generated/torch.sort.html?highlight=sort#torch.sort) | paddle.compat.sort | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.sort.html) | +| 77 | [torch.split](https://pytorch.org/docs/stable/generated/torch.split.html?highlight=torch%20split#torch.split) | paddle.compat.split | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.split.html) | +| 78 | [torch.utils.checkpoint.checkpoint](https://pytorch.org/docs/stable/checkpoint.html#torch.utils.checkpoint.checkpoint) | [paddle.distributed.fleet.utils.recompute](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/utils/cpp_extension/CppExtension_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.utils.checkpoint.checkpoint.html) | +| 79 | [torch.utils.data.ChainDataset](https://pytorch.org/docs/stable/data.html#torch.utils.data.ChainDataset) | [paddle.io.ChainDataset](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/io/ChainDataset_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.ChainDataset.html) | +| 80 | [torch.utils.data.ConcatDataset](https://pytorch.org/docs/stable/data.html#torch.utils.data.ConcatDataset) | [paddle.io.ConcatDataset](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/io/ConcatDataset_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.ConcatDataset.html) | +| 81 | [torch.utils.data.Dataset](https://pytorch.org/docs/stable/data.html?highlight=torch%20utils%20data%20dataset#torch.utils.data.Dataset) | [paddle.io.Dataset](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/io/Dataset_cn.html#dataset) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.Dataset.html) | +| 82 | [torch.utils.data.IterableDataset](https://pytorch.org/docs/stable/data.html#torch.utils.data.IterableDataset) | [paddle.io.IterableDataset](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/io/IterableDataset_cn.html#iterabledataset) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.IterableDataset.html) | +| 83 | [torch.utils.data.Sampler](https://pytorch.org/docs/stable/data.html#torch.utils.data.Sampler) | [paddle.io.Sampler](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/io/Sampler_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.Sampler.html) | +| 84 | [torch.utils.data.SequentialSampler](https://pytorch.org/docs/stable/generated/torch.utils.data.SequentialSampler.html) | [paddle.io.SequenceSampler](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/io/SequenceSampler_cn.html#sequencesampler) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.SequentialSampler.html) | +| 85 | [torch.utils.data.Subset](https://pytorch.org/docs/stable/data.html#torch.utils.data.Subset) | [paddle.io.Subset](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/io/Subset_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.Subset.html) | +| 86 | [torch.utils.data.get\_worker\_info](https://pytorch.org/docs/stable/data.html#torch.utils.data.get_worker_info) | [paddle.io.get\_worker\_info](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/io/get_worker_info_cn.html#get-worker-info) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.get_worker_info.html) | +| 87 | [torch.utils.data.random_split](https://pytorch.org/docs/stable/data.html?highlight=torch+utils+data+random_split#torch.utils.data.random_split) | [paddle.io.random_split](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/io/random_split_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.random_split.html) | +| 88 | [torchvision.ops.RoIPool](https://pytorch.org/vision/main/generated/torchvision.ops.RoIPool.html) | [paddle.vision.ops.RoIPool](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/ops/RoIPool_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.ops.RoIPool.html) | +| 89 | [torchvision.transforms.Compose](https://pytorch.org/vision/main/generated/torchvision.transforms.Compose.html) | [paddle.vision.transforms.Compose](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/Compose_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.Compose.html) | +| 90 | [torchvision.transforms.InterpolationMode.BICUBIC](https://pytorch.org/vision/stable/index.html) | 'bicubic' | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.BICUBIC.html) | +| 91 | [torchvision.transforms.InterpolationMode.BILINEAR](https://pytorch.org/vision/stable/index.html) | 'bilinear' | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.BILINEAR.html) | +| 92 | [torchvision.transforms.InterpolationMode.BOX](https://pytorch.org/vision/stable/index.html) | 'box' | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.BOX.html) | +| 93 | [torchvision.transforms.InterpolationMode.HAMMING](https://pytorch.org/vision/stable/index.html) | 'hamming' | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.HAMMING.html) | +| 94 | [torchvision.transforms.InterpolationMode.LANCZOS](https://pytorch.org/vision/stable/index.html) | 'lanczos' | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.LANCZOS.html) | +| 95 | [torchvision.transforms.InterpolationMode.NEAREST](https://pytorch.org/vision/stable/index.html) | 'nearest' | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.NEAREST.html) | +| 96 | [torchvision.transforms.InterpolationMode.NEAREST_EXACT](https://pytorch.org/vision/stable/index.html) | 'nearest_exact' | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.InterpolationMode.NEAREST_EXACT.html) | +| 97 | [torchvision.transforms.functional.adjust_brightness](https://pytorch.org/vision/main/generated/torchvision.transforms.functional.adjust_brightness.html) | [paddle.vision.transforms.adjust_brightness](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/adjust_brightness_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.adjust_brightness.html) | +| 98 | [torchvision.transforms.functional.adjust_contrast](https://pytorch.org/vision/main/generated/torchvision.transforms.functional.adjust_contrast.html) | [paddle.vision.transforms.adjust_contrast](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/adjust_contrast_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.adjust_contrast.html) | +| 99 | [torchvision.transforms.functional.adjust_hue](https://pytorch.org/vision/main/generated/torchvision.transforms.functional.adjust_hue.html) | [paddle.vision.transforms.adjust_hue](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/adjust_hue_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.adjust_hue.html) | +| 100 | [torchvision.transforms.functional.center_crop](https://pytorch.org/vision/main/generated/torchvision.transforms.functional.center_crop.html) | [paddle.vision.transforms.center_crop](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/center_crop_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.center_crop.html) | +| 101 | [torchvision.transforms.functional.crop](https://pytorch.org/vision/main/generated/torchvision.transforms.functional.crop.html) | [paddle.vision.transforms.crop](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/crop_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.crop.html) | +| 102 | [torchvision.transforms.functional.erase](https://pytorch.org/vision/main/generated/torchvision.transforms.functional.erase.html?highlight=erase#torchvision.transforms.functional.erase) | [paddle.vision.transforms.erase](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/erase_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.erase.html) | +| 103 | [torchvision.transforms.functional.hflip](https://pytorch.org/vision/main/generated/torchvision.transforms.functional.hflip.html) | [paddle.vision.transforms.hflip](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/hflip_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.hflip.html) | +| 104 | [torchvision.transforms.functional.pad](https://pytorch.org/vision/main/generated/torchvision.transforms.functional.pad.html) | [paddle.vision.transforms.pad](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/transforms/pad_cn.html) | - | +| 105 | [torchvision.transforms.functional.to_grayscale](https://pytorch.org/vision/main/generated/torchvision.transforms.functional.to_grayscale.html?highlight=to_grayscale#torchvision.transforms.functional.to_grayscale) | [paddle.vision.transforms.to_grayscale](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/to_grayscale_cn.html#to-grayscale) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.to_grayscale.html) | +| 106 | [torchvision.transforms.functional.vflip](https://pytorch.org/vision/main/generated/torchvision.transforms.functional.vflip.html) | [paddle.vision.transforms.vflip](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/vflip_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torchvision.transforms.functional.vflip.html) | +| 107 | [transformers.StoppingCriteriaList](https://github.com/huggingface/transformers/blob/d625294d79341662784495551abdf45e6cb9372f/src/transformers/generation/stopping_criteria.py#L503) | paddleformers.generation.StoppingCriteriaList | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/transformers.StoppingCriteriaList.html) | +| 108 | [transformers.generation.LogitsProcessorList](https://hf-mirror.com/docs/transformers/v4.42.0/en/internal/generation_utils#transformers.LogitsProcessorList) | paddleformers.generation.LogitsProcessorList | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.generation.LogitsProcessorList.html) | +| 109 | [transformers.utils.add\_start\_docstrings\_to\_model\_forward](https://github.com/huggingface/transformers/blob/44b231671db25974cfebcdae34402ad5099bf37a/src/transformers/utils/doc.py#L45) | paddleformers.trainer.utils.add_start_docstrings_to_model_forward | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.utils.add_start_docstrings_to_model_forward.html) | +| 110 | [torch.Tensor.device](https://pytorch.org/docs/stable/generated/torch.Tensor.device.html) | [paddle.Tensor.place](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#place) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.device.html) | +| 111 | [torch.Tensor.imag](https://pytorch.org/docs/stable/generated/torch.Tensor.imag.html) | [paddle.Tensor.imag](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#imag-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.imag.html) | +| 112 | [torch.Tensor.is_sparse](https://pytorch.org/docs/stable/generated/torch.Tensor.is_sparse.html) | [paddle.Tensor.is_sparse](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.is_sparse.html) | +| 113 | [torch.Tensor.is\_sparse\_csr](https://pytorch.org/docs/stable/generated/torch.Tensor.is_sparse_csr.html) | [paddle.Tensor.is\_sparse\_csr](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.is_sparse_csr.html) | +| 114 | [torch.Tensor.real](https://pytorch.org/docs/stable/generated/torch.Tensor.real.html) | [paddle.Tensor.real](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#real-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.real.html) | +| 115 | torch.autograd.function.FunctionCtx.saved_tensors | paddle.autograd.PyLayerContext.saved_tensor | - | +| 116 | [torch.distributed.ReduceOp.PRODUCT](https://pytorch.org/docs/stable/distributed.html#torch.distributed.ReduceOp) | [paddle.distributed.ReduceOp.PROD](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/ReduceOp_cn.html#reduceop) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.distributed.ReduceOp.PRODUCT.html) | +| 117 | [torch.Tensor.is_inference](https://pytorch.org/docs/stable/generated/torch.Tensor.is_inference.html) | paddle.Tensor.stop_gradient | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.Tensor.is_inference.html) | +| 118 | torch.is_inference | paddle.Tensor.stop_gradient | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.is_inference.html) | +| 119 | [torch.numel](https://pytorch.org/docs/stable/generated/torch.numel.html?highlight=numel#torch.numel) | [paddle.Tensor.size](https://www.paddlepaddle.org.cn/documentation/docs/guides/beginner/tensor_cn.html#tensor-shape) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.numel.html) | +| 120 | [torch.utils.data.RandomSampler](https://pytorch.org/docs/stable/data.html#torch.utils.data.RandomSampler) | [paddle.io.RandomSampler](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/io/RandomSampler_cn.html#paddle.io.RandomSampler) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.RandomSampler.html) | +| 121 | [torch.utils.data.WeightedRandomSampler](https://pytorch.org/docs/stable/data.html#torch.utils.data.WeightedRandomSampler) | [paddle.io.WeightedRandomSampler](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/io/WeightedRandomSampler_cn.html#paddle.io.WeightedRandomSampler) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.utils.data.WeightedRandomSampler.html) | +| 122 | [transformers.PreTrainedTokenizer](https://hf-mirror.com/docs/transformers/v4.42.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer) | [paddlenlp.transformers.PretrainedTokenizer](https://github.com/PaddlePaddle/PaddleNLP/blob/e336e78c338d2514ee6c937982ce5d8c960b85ff/paddlenlp/transformers/tokenizer_utils.py#L881) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.PreTrainedTokenizer.html) | +| 123 | [transformers.generation.utils.GenerateOutput](https://github.com/huggingface/transformers/blob/v4.42.0/src/transformers/generation/utils.py#L345) | [paddlenlp.transformers.model_outputs.BaseModelOutput](https://github.com/PaddlePaddle/PaddleNLP/blob/e336e78c338d2514ee6c937982ce5d8c960b85ff/paddlenlp/transformers/model_outputs.py#L513) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.generation.utils.GenerateOutput.html) | +| 124 | [transformers.modeling_outputs.BaseModelOutputWithPast](https://hf-mirror.com/docs/transformers/v4.42.0/en/main_classes/output#transformers.modeling_outputs.BaseModelOutputWithPast) | [paddlenlp.transformers.model_outputs.BaseModelOutputWithPast](https://github.com/PaddlePaddle/PaddleNLP/blob/e336e78c338d2514ee6c937982ce5d8c960b85ff/paddlenlp/transformers/model_outputs.py#L590) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.modeling_outputs.BaseModelOutputWithPast.html) | +| 125 | [transformers.modeling_outputs.CausalLMOutputWithPast](https://hf-mirror.com/docs/transformers/v4.42.0/en/main_classes/output#transformers.modeling_outputs.CausalLMOutputWithPast) | [paddlenlp.transformers.model_outputs.CausalLMOutputWithPast](https://github.com/PaddlePaddle/PaddleNLP/blob/e336e78c338d2514ee6c937982ce5d8c960b85ff/paddlenlp/transformers/model_outputs.py#L874) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/transformers.modeling_outputs.CausalLMOutputWithPast.html) | ### 3. 仅参数名不一致 **分类简介** @@ -65,6 +737,222 @@ paddle.nn.Softplus(beta=0.5, threshold=15) | 序号 | Pytorch 最新 release | Paddle develop | 备注 | |------|-------------------|---------------|------| +| 1 | [torch.sparse.mm](https://pytorch.org/docs/stable/generated/torch.sparse.mm.html?highlight=torch+sparse+mm#torch.sparse.mm) | [paddle.sparse.matmul](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sparse/matmul_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.sparse.mm.html) | +| 2 | [torch.nn.functional.leaky\_relu\_](https://pytorch.org/docs/stable/jit_builtin_functions.html#supported-tensor-methods) | [paddle.nn.functional.leaky\_relu\_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/leaky_relu_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.leaky_relu_.html) | +| 3 | [torch.Tensor.index\_put\_](https://pytorch.org/docs/stable/generated/torch.Tensor.index_put_.html#torch.Tensor.index_put_) | paddle.Tensor.index_put_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.index_put_.html) | +| 4 | [torch.diagonal_scatter](https://pytorch.org/docs/stable/generated/torch.diagonal_scatter.html?highlight=diagonal_scatter#torch.diagonal_scatter) | [paddle.diagonal_scatter](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/diagonal_scatter_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.diagonal_scatter.html) | +| 5 | [torch.imag](https://pytorch.org/docs/stable/generated/torch.imag.html?highlight=imag#torch.imag) | [paddle.imag](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/imag_cn.html#imag) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.imag.html) | +| 6 | [torch.Tensor.as_strided](https://pytorch.org/docs/stable/generated/torch.Tensor.as_strided.html?highlight=as_strided#torch.Tensor.as_strided) | [paddle.Tensor.as_strided](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#as-strided-x-shape-stride-offset-0-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.as_strided.html) | +| 7 | [torch.trapezoid](https://pytorch.org/docs/stable/generated/torch.trapezoid.html#torch.trapezoid) | [paddle.trapezoid](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/trapezoid_cn.html#trapezoid) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.trapezoid.html) | +| 8 | [torch.Tensor.minimum](https://pytorch.org/docs/stable/generated/torch.Tensor.minimum.html) | [paddle.Tensor.minimum](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#minimum-y-axis-1-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.minimum.html) | +| 9 | [torch.nn.AdaptiveMaxPool3d](https://pytorch.org/docs/stable/generated/torch.nn.AdaptiveMaxPool3d.html?highlight=adaptivemaxpool3d#torch.nn.AdaptiveMaxPool3d) | [paddle.nn.AdaptiveMaxPool3D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/AdaptiveMaxPool3D_cn.html#adaptivemaxpool3d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.AdaptiveMaxPool3d.html) | +| 10 | [torch.Tensor.bitwise_and](https://pytorch.org/docs/stable/generated/torch.Tensor.bitwise_and.html) | paddle.Tensor.bitwise_and | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.bitwise_and.html) | +| 11 | [torch.nn.CosineSimilarity](https://pytorch.org/docs/stable/generated/torch.nn.CosineSimilarity.html?highlight=nn+cosinesimilarity#torch.nn.CosineSimilarity) | [paddle.nn.CosineSimilarity](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/CosineSimilarity_cn.html#cosinesimilarity) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.CosineSimilarity.html) | +| 12 | [torch.cholesky_solve](https://pytorch.org/docs/stable/generated/torch.cholesky_solve.html?highlight=cholesky#torch.cholesky_solve) | [paddle.linalg.cholesky_solve](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/cholesky_solve_cn.html#cholesky-solve) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.cholesky_solve.html) | +| 13 | [torch.Tensor.rot90](https://pytorch.org/docs/stable/generated/torch.Tensor.rot90.html?highlight=torch+tensor+rot90#torch.Tensor.rot90) | paddle.Tensor.rot90 | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.rot90.html) | +| 14 | [torch.nn.functional.adaptive\_avg\_pool1d](https://pytorch.org/docs/stable/generated/torch.nn.functional.adaptive_avg_pool1d.html?highlight=adaptive_avg_pool1d#torch.nn.functional.adaptive_avg_pool1d) | [paddle.nn.functional.adaptive\_avg\_pool1d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/adaptive_avg_pool1d_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.adaptive_avg_pool1d.html) | +| 15 | [torch.nn.Module.register_module](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.register_module) | [paddle.nn.Layer.add_sublayer](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#add-sublayer-name-sublayer) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.Module.register_module.html) | +| 16 | [torch.Tensor.lcm_](https://pytorch.org/docs/stable/generated/torch.Tensor.lcm_.html) | paddle.Tensor.lcm_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.lcm_.html) | +| 17 | [torch.nn.Module.parameters](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.parameters) | [paddle.nn.Layer.parameters](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#parameters-include-sublayers-true) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.Module.parameters.html) | +| 18 | [torch.vsplit](https://pytorch.org/docs/stable/generated/torch.vsplit.html#torch.vsplit) | [paddle.vsplit](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vsplit_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.vsplit.html) | +| 19 | [torch.nn.functional.adaptive\_avg\_pool2d](https://pytorch.org/docs/stable/generated/torch.nn.functional.adaptive_avg_pool2d.html?highlight=adaptive_avg_pool2d#torch.nn.functional.adaptive_avg_pool2d) | [paddle.nn.functional.adaptive\_avg\_pool2d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/adaptive_avg_pool2d_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.adaptive_avg_pool2d.html) | +| 20 | [torch.Tensor.dsplit](https://pytorch.org/docs/stable/generated/torch.Tensor.dsplit.html) | [paddle.Tensor.dsplit](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#dsplit-num_or_indices-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.dsplit.html) | +| 21 | [torch.Tensor.ldexp](https://pytorch.org/docs/stable/generated/torch.Tensor.ldexp.html#torch.Tensor.ldexp) | [paddle.Tensor.ldexp](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#tensor) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.ldexp.html) | +| 22 | [torch.isreal](https://pytorch.org/docs/stable/generated/torch.isreal.html#torch-isreal) | [paddle.isreal](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/isreal_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.isreal.html) | +| 23 | [torch.Tensor.vdot](https://pytorch.org/docs/stable/generated/torch.Tensor.vdot.html#torch.Tensor.vdot) | [paddle.Tensor.dot](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#dot-y-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.vdot.html) | +| 24 | [torch.nn.utils.parametrizations.weight_norm](https://pytorch.org/docs/stable/generated/torch.nn.utils.parametrizations.weight_norm.html) | [paddle.nn.utils.weight_norm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/utils/weight_norm_cn.html#weight-norm) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.utils.parametrizations.weight_norm.html) | +| 25 | [torch.pca_lowrank](https://pytorch.org/docs/stable/generated/torch.pca_lowrank.html#torch.pca_lowrank) | [paddle.linalg.pca_lowrank](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/pca_lowrank_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.pca_lowrank.html) | +| 26 | [torch.Tensor.igamma_](https://pytorch.org/docs/stable/generated/torch.Tensor.igamma_.html#torch.Tensor.igamma_) | [paddle.Tensor.gammainc_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/gammainc__cn.html#gammainc) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.igamma_.html) | +| 27 | [torch.Tensor.var](https://pytorch.org/docs/stable/generated/torch.Tensor.var.html#torch.Tensor.var) | [paddle.Tensor.var](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#var-axis-none-unbiased-true-keepdim-false-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.var.html) | +| 28 | [torch.nn.functional.fold](https://pytorch.org/docs/stable/generated/torch.nn.functional.fold.html?highlight=functional+fold#torch.nn.functional.fold) | [paddle.nn.functional.fold](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/fold_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.fold.html) | +| 29 | [torch.Tensor.bitwise_or](https://pytorch.org/docs/stable/generated/torch.Tensor.bitwise_or.html) | paddle.Tensor.bitwise_or | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.bitwise_or.html) | +| 30 | [torch.unflatten](https://pytorch.org/docs/stable/generated/torch.unflatten.html#torch.unflatten) | [paddle.unflatten](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/unflatten_cn.html#unflatten) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.unflatten.html) | +| 31 | [torch.feature\_alpha\_dropout](https://pytorch.org/docs/stable/jit_builtin_functions.html) | [paddle.nn.functional.feature\_alpha\_dropout](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/functional/feature_alpha_dropout_cn.html#feature_alpha-dropout) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.feature_alpha_dropout.html) | +| 32 | [torch.Tensor.heaviside](https://pytorch.org/docs/stable/generated/torch.Tensor.heaviside.html?highlight=torch+tensor+heaviside#torch.Tensor.heaviside) | [paddle.Tensor.heaviside](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#heaviside-y-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.heaviside.html) | +| 33 | [torch.distributed.scatter\_object\_list](https://pytorch.org/docs/stable/distributed.html#torch.distributed.scatter_object_list) | [paddle.distributed.scatter\_object\_list](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/scatter_object_list_cn.html#scatter-object-list) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.distributed.scatter_object_list.html) | +| 34 | [torch.nn.functional.tanh](https://pytorch.org/docs/stable/generated/torch.nn.functional.tanh.html) | [paddle.nn.functional.tanh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/tanh_cn.html#tanh) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.tanh.html) | +| 35 | [torch.nn.functional.elu_](https://www.paddlepaddle.org.cn/documentation/docs/stable/api/paddle/nn/functional/elu__cn.html) | [paddle.nn.functional.elu_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/relu__cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.elu_.html) | +| 36 | [torch.Tensor.nextafter](https://pytorch.org/docs/stable/generated/torch.Tensor.nextafter.html#torch.Tensor.nextafter) | [paddle.Tensor.nextafter](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nextafter_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.nextafter.html) | +| 37 | [torch.flip](https://pytorch.org/docs/stable/generated/torch.flip.html?highlight=flip#torch.flip) | [paddle.flip](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/flip_cn.html#flip) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.flip.html) | +| 38 | [torch.corrcoef](https://pytorch.org/docs/stable/generated/torch.corrcoef.html?highlight=corrcoef#torch.corrcoef) | [paddle.linalg.corrcoef](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/corrcoef_cn.html#corrcoef) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.corrcoef.html) | +| 39 | [torch.nn.functional.logsigmoid](https://pytorch.org/docs/stable/generated/torch.nn.functional.logsigmoid.html?highlight=logsigmoid#torch.nn.functional.logsigmoid) | [paddle.nn.functional.log_sigmoid](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/log_sigmoid_cn.html) | - | +| 40 | [torch.Tensor.dist](https://pytorch.org/docs/stable/generated/torch.Tensor.dist.html?highlight=dist#torch.Tensor.dist) | [paddle.Tensor.dist](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#dist-y-p-2) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.dist.html) | +| 41 | [torch.Tensor.flip](https://pytorch.org/docs/stable/generated/torch.Tensor.flip.html?highlight=flip#torch.Tensor.flip) | [paddle.Tensor.flip](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#flip-axis-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.flip.html) | +| 42 | [torch.nn.utils.weight_norm](https://pytorch.org/docs/stable/generated/torch.nn.utils.weight_norm.html?highlight=nn+utils+weight_norm#torch.nn.utils.weight_norm) | [paddle.nn.utils.weight_norm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/utils/weight_norm_cn.html#weight-norm) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.utils.weight_norm.html) | +| 43 | [torch.nn.functional.cosine_similarity](https://pytorch.org/docs/stable/generated/torch.nn.functional.cosine_similarity.html?highlight=cosine#torch.nn.functional.cosine_similarity) | [paddle.nn.functional.cosine_similarity](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/cosine_similarity_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.cosine_similarity.html) | +| 44 | [torch.nn.Fold](https://pytorch.org/docs/stable/generated/torch.nn.Fold.html?highlight=nn+fold#torch.nn.Fold) | [paddle.nn.Fold](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Fold_cn.html#fold) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.Fold.html) | +| 45 | [torch.nn.ModuleDict](https://pytorch.org/docs/stable/generated/torch.nn.ModuleDict.html?highlight=torch+nn+moduledict#torch.nn.ModuleDict) | [paddle.nn.LayerDict](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/LayerDict_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.ModuleDict.html) | +| 46 | [torch.Tensor.true\_divide\_](https://pytorch.org/docs/stable/generated/torch.Tensor.true_divide_.html) | paddle.Tensor.divide_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.true_divide_.html) | +| 47 | [torch.Tensor.kthvalue](https://pytorch.org/docs/stable/generated/torch.Tensor.kthvalue.html) | [paddle.Tensor.kthvalue](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#kthvalue-k-axis-none-keepdim-false-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.kthvalue.html) | +| 48 | [torch.nn.functional.triplet\_margin\_with\_distance\_loss](https://pytorch.org/docs/stable/generated/torch.nn.functional.triplet_margin_with_distance_loss.html?highlight=triplet_margin_with_distance_loss#torch.nn.functional.triplet_margin_with_distance_loss) | [paddle.nn.functional.triplet\_margin\_with\_distance\_loss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/triplet_margin_with_distance_loss_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.triplet_margin_with_distance_loss.html) | +| 49 | [torch.Tensor.diff](https://pytorch.org/docs/stable/generated/torch.Tensor.diff.html?highlight=diff#torch.Tensor.diff) | [paddle.Tensor.diff](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/diff_cn.html#diff) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.diff.html) | +| 50 | [torch.nn.functional.pairwise_distance](https://pytorch.org/docs/stable/generated/torch.nn.functional.pairwise_distance.html) | [paddle.nn.functional.pairwise_distance](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/functional/pairwise_distance_cn.html#pairwise-distance) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.pairwise_distance.html) | +| 51 | [torch.Tensor.hsplit](https://pytorch.org/docs/stable/generated/torch.Tensor.hsplit.html) | [paddle.Tensor.hsplit](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#hsplit-num_or_indices-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.hsplit.html) | +| 52 | [torch.nn.Module.add_module](https://pytorch.org/docs/stable/generated/torch.nn.Module.html?highlight=torch+nn+module+add_module#torch.nn.Module.add_module) | [paddle.nn.Layer.add_sublayer](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#add-sublayer-name-sublayer) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.Module.add_module.html) | +| 53 | [torch.nn.functional.unfold](https://pytorch.org/docs/stable/generated/torch.nn.functional.unfold.html#torch.nn.functional.unfold) | [paddle.nn.functional.unfold](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/unfold_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.unfold.html) | +| 54 | [torch.Tensor.quantile](https://pytorch.org/docs/stable/generated/torch.Tensor.quantile.html#torch.Tensor.quantile) | [paddle.Tensor.quantile](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#quantile-q-axis-none-keepdim-false-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.quantile.html) | +| 55 | [torch.utils.dlpack.from_dlpack](https://pytorch.org/docs/stable/dlpack.html?highlight=torch+utils+dlpack+from_dlpack#torch.utils.dlpack.from_dlpack) | [paddle.utils.dlpack.from_dlpack](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/utils/dlpack/from_dlpack_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.utils.dlpack.from_dlpack.html) | +| 56 | [torch.cuda.nvtx.range_push](https://pytorch.org/docs/stable/generated/torch.cuda.nvtx.range_push.html?highlight=range_push#torch.cuda.nvtx.range_push) | [paddle.framework.core.nvprof\_nvtx\_push](https://github.com/PaddlePaddle/Paddle/blob/645dfb4040a15712cea9ccfed4dcb0655aeeb0ea/paddle/fluid/pybind/pybind.cc#L2465) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.cuda.nvtx.range_push.html) | +| 57 | [torch.nn.ParameterDict](https://pytorch.org/docs/stable/generated/torch.nn.ParameterList.html?highlight=nn+parameterlist#torch.nn.ParameterDict) | [paddle.nn.ParameterDict](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/ParameterDict_cn.html#parameterdict) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.ParameterDict.html) | +| 58 | [torch.Tensor.diagonal_scatter](https://pytorch.org/docs/stable/generated/torch.Tensor.diagonal_scatter.html?highlight=diagonal_scatter#torch.Tensor.diagonal_scatter) | [paddle.Tensor.diagonal_scatter](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#diagonal-scatter-x-y-offset-0-axis1-0-axis2-1-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.diagonal_scatter.html) | +| 59 | [torch.nn.AdaptiveMaxPool1d](https://pytorch.org/docs/stable/generated/torch.nn.AdaptiveMaxPool1d.html?highlight=adaptivemaxpool1d#torch.nn.AdaptiveMaxPool1d) | [paddle.nn.AdaptiveMaxPool1D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/AdaptiveMaxPool1D_cn.html#adaptivemaxpool1d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.AdaptiveMaxPool1d.html) | +| 60 | [torch.det](https://pytorch.org/docs/stable/generated/torch.det.html?highlight=det#torch.det) | [paddle.linalg.det](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/det_cn.html#det) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.det.html) | +| 61 | [torch.abs_](https://pytorch.org/docs/stable/jit_builtin_functions.html#supported-tensor-methods) | [paddle.abs_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/abs_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.abs_.html) | +| 62 | [torch.Tensor.ldexp_](https://pytorch.org/docs/stable/generated/torch.Tensor.ldexp_.html) | paddle.Tensor.ldexp_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.ldexp_.html) | +| 63 | [torch.nn.GaussianNLLLoss](https://pytorch.org/docs/stable/generated/torch.nn.GaussianNLLLoss) | [paddle.nn.GaussianNLLLoss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/GaussianNLLLoss_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.GaussianNLLLoss.html) | +| 64 | [torch.hsplit](https://pytorch.org/docs/stable/generated/torch.hsplit.html#torch.hsplit) | [paddle.hsplit](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/hsplit_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.hsplit.html) | +| 65 | [torch.nn.functional.gaussian\_nll\_loss](https://pytorch.org/docs/stable/generated/torch.nn.functional.gaussian_nll_loss.html#torch.nn.functional.gaussian_nll_loss) | [paddle.nn.functional.gaussian\_nll\_loss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/gaussian_nll_loss_cn.html#gaussian-nll-loss) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.gaussian_nll_loss.html) | +| 66 | [torch.Tensor.index\_fill\_](https://pytorch.org/docs/stable/generated/torch.Tensor.index_fill_.html?highlight=index_fill_#torch.Tensor.index_fill_) | paddle.Tensor.index_fill_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.index_fill_.html) | +| 67 | [torch.svd_lowrank](https://pytorch.org/docs/stable/generated/torch.svd_lowrank.html?highlight=torch+svd_lowrank#torch.svd_lowrank) | [paddle.linalg.svd_lowrank](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/svd_lowrank_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.svd_lowrank.html) | +| 68 | [torch.max_pool3d](https://pytorch.org/docs/stable/jit_builtin_functions.html#supported-pytorch-functions) | [paddle.nn.functional.max_pool3d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/max_pool3d_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.max_pool3d.html) | +| 69 | [torch.take](https://pytorch.org/docs/stable/generated/torch.take.html?highlight=torch+take#torch.take) | [paddle.take](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/take_cn.html#take) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.take.html) | +| 70 | [torch.nn.functional.adaptive\_max\_pool3d](https://pytorch.org/docs/stable/generated/torch.nn.functional.adaptive_max_pool3d.html?highlight=adaptive_max_pool3d#torch.nn.functional.adaptive_max_pool3d) | [paddle.nn.functional.adaptive\_max\_pool3d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/adaptive_max_pool3d_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.adaptive_max_pool3d.html) | +| 71 | [torch.kron](https://pytorch.org/docs/stable/generated/torch.kron.html#torch-kron) | [paddle.kron](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/kron_cn.html#kron) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.kron.html) | +| 72 | [torch.Tensor.baddbmm](https://pytorch.org/docs/stable/generated/torch.Tensor.baddbmm.html#torch.Tensor.baddbmm) | [paddle.Tensor.baddbmm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#tensor) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.baddbmm.html) | +| 73 | [torch.allclose](https://pytorch.org/docs/stable/generated/torch.allclose.html?highlight=allclose#torch.allclose) | [paddle.allclose](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/allclose_cn.html#allclose) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.allclose.html) | +| 74 | [torch.bitwise_or](https://pytorch.org/docs/stable/generated/torch.bitwise_or.html#torch-bitwise-or) | [paddle.bitwise_or](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/bitwise_or_cn.html#bitwise-or) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.bitwise_or.html) | +| 75 | [torch.nn.utils.spectral_norm](https://pytorch.org/docs/stable/generated/torch.nn.utils.spectral_norm.html?highlight=nn+utils+spectral_norm#torch.nn.utils.spectral_norm) | [paddle.nn.utils.spectral_norm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/utils/spectral_norm_cn.html#spectral-norm) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.utils.spectral_norm.html) | +| 76 | [torch.Tensor.index_fill](https://pytorch.org/docs/stable/generated/torch.Tensor.index_fill.html?highlight=index_fill#torch.Tensor.index_fill) | [paddle.Tensor.index_fill](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/index_fill_cn.html#index-fill) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.index_fill.html) | +| 77 | [torch.nn.functional.softplus](https://pytorch.org/docs/stable/generated/torch.nn.functional.softplus.html?highlight=softplus#torch.nn.functional.softplus) | [paddle.nn.functional.softplus](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/softplus_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.softplus.html) | +| 78 | [torch.Tensor.inner](https://pytorch.org/docs/stable/generated/torch.Tensor.inner.html) | paddle.Tensor.inner | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.inner.html) | +| 79 | [torch.nn.Module.register_buffer](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.register_buffer) | [paddle.nn.Layer.register_buffer](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#register-buffer-name-tensor-persistable-true) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.Module.register_buffer.html) | +| 80 | [torch.bitwise_not](https://pytorch.org/docs/stable/generated/torch.bitwise_not.html?highlight=bitwise_not#torch.bitwise_not) | [paddle.bitwise_not](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/bitwise_not_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.bitwise_not.html) | +| 81 | [torch.istft](https://pytorch.org/docs/stable/generated/torch.istft.html?highlight=istft#torch.istft) | [paddle.signal.istft](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/signal/istft_cn.html#istft) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.istft.html) | +| 82 | [torch.nn.functional.adaptive\_max\_pool1d](https://pytorch.org/docs/stable/generated/torch.nn.functional.adaptive_max_pool1d.html?highlight=torch+nn+functional+adaptive_max_pool1d#torch.nn.functional.adaptive_max_pool1d) | [paddle.nn.functional.adaptive\_max\_pool1d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/adaptive_max_pool1d_cn.html#adaptive-max-pool1d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.adaptive_max_pool1d.html) | +| 83 | [torch.Tensor.logical\_or\_](https://pytorch.org/docs/stable/generated/torch.Tensor.logical_or_.html) | paddle.Tensor.logical_or_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.logical_or_.html) | +| 84 | [torch.Tensor.gcd_](https://pytorch.org/docs/stable/generated/torch.Tensor.gcd_.html) | paddle.Tensor.gcd_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.gcd_.html) | +| 85 | [torch.dsplit](https://pytorch.org/docs/stable/generated/torch.dsplit.html#torch.dsplit) | [paddle.dsplit](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/dsplit_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.dsplit.html) | +| 86 | [torch.nn.PairwiseDistance](https://pytorch.org/docs/stable/generated/torch.nn.PairwiseDistance.html?highlight=nn+pairwisedistance#torch.nn.PairwiseDistance) | [paddle.nn.PairwiseDistance](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/PairwiseDistance_cn.html#pairwisedistance) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.PairwiseDistance.html) | +| 87 | [torch.Tensor.logical\_xor\_](https://pytorch.org/docs/stable/generated/torch.Tensor.logical_xor_.html) | paddle.Tensor.logical_xor_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.logical_xor_.html) | +| 88 | [torch.Tensor.hypot_](https://pytorch.org/docs/stable/generated/torch.Tensor.hypot_.html#torch.Tensor.hypot_) | [paddle.Tensor.hypot_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/hypot__cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.hypot_.html) | +| 89 | [torch.Tensor.gcd](https://pytorch.org/docs/stable/generated/torch.Tensor.gcd.html?highlight=torch+tensor+gcd#torch.Tensor.gcd) | [paddle.Tensor.gcd](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#gcd-x-y-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.gcd.html) | +| 90 | [torch.Tensor.outer](https://pytorch.org/docs/stable/generated/torch.Tensor.outer.html?highlight=outer#torch.Tensor.outer) | paddle.Tensor.outer | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.outer.html) | +| 91 | [torch.distributions.distribution.Distribution.rsample](https://pytorch.org/docs/stable/distributions.html#torch.distributions.distribution.Distribution.rsample) | [paddle.distribution.Distribution.rsample](https://github.com/PaddlePaddle/Paddle/blob/2bbd6f84c1db3e7401732869ee50aef2d9c97bdc/python/paddle/distribution/distribution.py#L96) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.distributions.distribution.Distribution.rsample.html) | +| 92 | [torch.nn.functional.adaptive\_avg\_pool3d](https://pytorch.org/docs/stable/generated/torch.ao.nn.quantized.functional.adaptive_avg_pool3d.html?highlight=adaptive_avg_pool3d#torch.ao.nn.quantized.functional.adaptive_avg_pool3d) | [paddle.nn.functional.adaptive\_avg\_pool3d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/adaptive_avg_pool3d_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.adaptive_avg_pool3d.html) | +| 93 | [torch.cumulative_trapezoid](https://pytorch.org/docs/stable/generated/torch.cumulative_trapezoid.html#torch.cumulative_trapezoid) | [paddle.cumulative_trapezoid](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/cumulative_trapezoid_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.cumulative_trapezoid.html) | +| 94 | [torch.nn.Softmax](https://pytorch.org/docs/stable/generated/torch.nn.Softmax.html?highlight=nn+softmax#torch.nn.Softmax) | [paddle.nn.Softmax](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Softmax_cn.html#softmax) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.Softmax.html) | +| 95 | [torch.utils.dlpack.to_dlpack](https://pytorch.org/docs/stable/dlpack.html?highlight=torch+utils+dlpack+to_dlpack#torch.utils.dlpack.to_dlpack) | [paddle.utils.dlpack.to_dlpack](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/utils/dlpack/to_dlpack_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.utils.dlpack.to_dlpack.html) | +| 96 | [torch.nn.functional.huber_loss](https://pytorch.org/docs/stable/generated/torch.nn.functional.huber_loss.html#torch.nn.functional.huber_loss) | [paddle.nn.functional.smooth\_l1\_loss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/smooth_l1_loss_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.huber_loss.html) | +| 97 | [torch.tan](https://pytorch.org/docs/stable/generated/torch.tan.html) | [paddle.tan](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/tan_cn.html#tan) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.tan.html) | +| 98 | [torch.Tensor.unsqueeze_](https://pytorch.org/docs/stable/generated/torch.Tensor.unsqueeze_.html#torch-tensor-unsqueeze) | [paddle.Tensor.unsqueeze_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#id22) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.unsqueeze_.html) | +| 99 | [torch.isclose](https://pytorch.org/docs/stable/generated/torch.isclose.html?highlight=isclose#torch.isclose) | [paddle.isclose](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/isclose_cn.html#isclose) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.isclose.html) | +| 100 | [torch.nn.Unflatten](https://pytorch.org/docs/stable/generated/torch.nn.Unflatten.html?highlight=torch+nn+unflatten#torch.nn.Unflatten) | [paddle.nn.Unflatten](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Unflatten_cn.html#unflatten) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.Unflatten.html) | +| 101 | [torch.vander](https://pytorch.org/docs/stable/generated/torch.vander.html?highlight=vander#torch.vander) | [paddle.vander](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vander_cn.html#vander) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.vander.html) | +| 102 | [torch.Tensor.broadcast_to](https://pytorch.org/docs/stable/generated/torch.Tensor.broadcast_to.html) | [paddle.Tensor.broadcast_to](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#broadcast-to-shape-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.broadcast_to.html) | +| 103 | [torch.Tensor.renorm](https://pytorch.org/docs/stable/generated/torch.Tensor.renorm.html#torch-tensor-renorm) | paddle.Tensor.renorm | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.renorm.html) | +| 104 | [torch.nn.functional.tanhshrink](https://pytorch.org/docs/stable/generated/torch.nn.functional.tanhshrink.html?highlight=tanhshri#torch.nn.functional.tanhshrink) | [paddle.nn.functional.tanhshrink](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/tanhshrink_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.tanhshrink.html) | +| 105 | [torch.distributions.kl.register_kl](https://pytorch.org/docs/stable/distributions.html?highlight=register_kl#torch.distributions.kl.register_kl) | [paddle.distribution.register_kl](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/register_kl_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.distributions.kl.register_kl.html) | +| 106 | [torch.Tensor.cumsum_](https://pytorch.org/docs/stable/generated/torch.Tensor.cumsum_.html) | paddle.Tensor.cumsum_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.cumsum_.html) | +| 107 | [torch.distributed.rpc.remote](https://pytorch.org/docs/stable/rpc.html#torch.distributed.rpc.remote) | [paddle.distributed.rpc.rpc_async](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/rpc/rpc_async_cn.html#rpc-async) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.distributed.rpc.remote.html) | +| 108 | [torch.Tensor.mode](https://pytorch.org/docs/stable/generated/torch.Tensor.mode.html) | [paddle.Tensor.mode](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#mode-axis-1-keepdim-false-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.mode.html) | +| 109 | [torch.Tensor.fmin](https://pytorch.org/docs/stable/generated/torch.Tensor.fmin.html?highlight=fmin#torch.Tensor.fmin) | [paddle.Tensor.fmin](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fmin_cn.html#fmin) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.fmin.html) | +| 110 | torch.relu | [paddle.nn.functional.relu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/relu_cn.html#relu) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.relu.html) | +| 111 | [torch.bincount](https://pytorch.org/docs/stable/generated/torch.bincount.html?highlight=bincount#torch.bincount) | [paddle.bincount](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/bincount_cn.html#bincount) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.bincount.html) | +| 112 | [torch.index_fill](https://pytorch.org/docs/stable/generated/torch.Tensor.index_fill.html#torch.Tensor.index_fill) | [paddle.index_fill](https://github.com/PaddlePaddle/Paddle/blob/1e3761d119643af19cb6f8a031a77f315d782409/python/paddle/tensor/manipulation.py#L5900) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.index_fill.html) | +| 113 | [torch.nn.AdaptiveMaxPool2d](https://pytorch.org/docs/stable/generated/torch.nn.AdaptiveMaxPool2d.html?highlight=adaptivemaxpool2d#torch.nn.AdaptiveMaxPool2d) | [paddle.nn.AdaptiveMaxPool2D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/AdaptiveMaxPool2D_cn.html#adaptivemaxpool2d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.AdaptiveMaxPool2d.html) | +| 114 | [torch.real](https://pytorch.org/docs/stable/generated/torch.real.html?highlight=real#torch.real) | [paddle.real](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/real_cn.html#real) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.real.html) | +| 115 | [torch.nn.LogSoftmax](https://pytorch.org/docs/stable/generated/torch.nn.LogSoftmax.html?highlight=nn+logsoftmax#torch.nn.LogSoftmax) | [paddle.nn.LogSoftmax](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/LogSoftmax_cn.html#logsoftmax) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.LogSoftmax.html) | +| 116 | [torch.nn.functional.hardshrink](https://pytorch.org/docs/stable/generated/torch.nn.functional.hardshrink.html?highlight=hardshrink#torch.nn.functional.hardshrink) | [paddle.nn.functional.hardshrink](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/hardshrink_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.hardshrink.html) | +| 117 | [torch.nn.Module.register_parameter](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.register_parameter) | [paddle.nn.Layer.add_parameter](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#add-parameter-name-parameter) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.Module.register_parameter.html) | +| 118 | [torch.vstack](https://pytorch.org/docs/stable/generated/torch.vstack.html#torch.vstack) | [paddle.vstack](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vstack_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.vstack.html) | +| 119 | [torch.distributions.distribution.Distribution.sample](https://pytorch.org/docs/stable/distributions.html#torch.distributions.distribution.Distribution.sample) | [paddle.distribution.Distribution.sample](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Distribution_cn.html#sample) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.distributions.distribution.Distribution.sample.html) | +| 120 | [torch.nn.Module.named_buffers](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.named_buffers) | [paddle.nn.Layer.named_buffers](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#named-buffers-prefix-include-sublayers-true) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.Module.named_buffers.html) | +| 121 | [torch.nn.Module.named_parameters](https://pytorch.org/docs/stable/generated/torch.nn.Module.html?highlight=torch+nn+module+named_parameters#torch.nn.Module.named_parameters) | [paddle.nn.Layer.named_parameters](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#named-parameters-prefix-include-sublayers-true) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.Module.named_parameters.html) | +| 122 | [torch.Tensor.lerp_](https://pytorch.org/docs/stable/generated/torch.Tensor.lerp_.html) | [paddle.Tensor.lerp_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#lerp-x-y-weight-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.lerp_.html) | +| 123 | [torch.tile](https://pytorch.org/docs/stable/generated/torch.tile.html?highlight=tile#torch.tile) | [paddle.tile](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/tile_cn.html#tile) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.tile.html) | +| 124 | [torch.Tensor.nanquantile](https://pytorch.org/docs/stable/generated/torch.nanquantile.html#torch.nanquantile) | [paddle.Tensor.nanquantile](https://github.com/PaddlePaddle/Paddle/pull/41343) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.nanquantile.html) | +| 125 | [torch.nn.Module.buffers](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.buffers) | [paddle.nn.Layer.buffers](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#buffers-include-sublayers-true) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.Module.buffers.html) | +| 126 | [torch.fft.ifftshift](https://pytorch.org/docs/stable/generated/torch.fft.ifftshift.html#torch.fft.ifftshift) | [paddle.fft.ifftshift](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fft/ifftshift_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.fft.ifftshift.html) | +| 127 | [torch.row_stack](https://pytorch.org/docs/stable/generated/torch.row_stack.html#torch.row_stack) | [paddle.row_stack](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/row_stack_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.row_stack.html) | +| 128 | [torch.Tensor.atan2](https://pytorch.org/docs/stable/generated/torch.atan2.html#torch.atan2) | [paddle.Tensor.atan2](https://www.paddlepaddle.org.cn/documentation/docs/en/develop/api/paddle/Tensor_en.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.atan2.html) | +| 129 | [torch.nn.Softshrink](https://pytorch.org/docs/stable/generated/torch.nn.Softshrink.html?highlight=nn+softshrink#torch.nn.Softshrink) | [paddle.nn.Softshrink](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Softshrink_cn.html#softshrink) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.Softshrink.html) | +| 130 | [torch.hstack](https://pytorch.org/docs/stable/generated/torch.hstack.html#torch.hstack) | [paddle.hstack](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/hstack_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.hstack.html) | +| 131 | [transformers.generation.LogitsProcessor](https://hf-mirror.com/docs/transformers/v4.42.0/en/internal/generation_utils#logitsprocessor) | [paddlenlp.generation.LogitsProcessor](https://github.com/PaddlePaddle/PaddleNLP/blob/e336e78c338d2514ee6c937982ce5d8c960b85ff/paddlenlp/generation/logits_process.py#L26) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/transformers.generation.LogitsProcessor.html) | +| 132 | [torch.nn.GLU](https://pytorch.org/docs/stable/generated/torch.nn.GLU.html#torch.nn.GLU) | [paddle.nn.GLU](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/GLU_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.GLU.html) | +| 133 | [torch.Tensor.igammac](https://pytorch.org/docs/stable/generated/torch.Tensor.igammac.html#torch.Tensor.igammac) | [paddle.Tensor.gammaincc](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/gammaincc_cn.html#gammaincc) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.igammac.html) | +| 134 | [torch.Tensor.index_put](https://pytorch.org/docs/stable/generated/torch.Tensor.index_put.html?highlight=index_put#torch.Tensor.index_put) | [paddle.Tensor.index_put](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/index_put_cn.html#index-put) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.index_put.html) | +| 135 | [torch.Tensor.select_scatter](https://pytorch.org/docs/stable/generated/torch.Tensor.select_scatter.html#torch-select-scatter) | [paddle.Tensor.select_scatter](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.select_scatter.html) | +| 136 | [torch.Tensor.logaddexp](https://pytorch.org/docs/stable/generated/torch.Tensor.logaddexp.html#torch.Tensor.logaddexp) | [paddle.Tensor.logaddexp](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#tensor) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.logaddexp.html) | +| 137 | [torch.nn.ParameterList](https://pytorch.org/docs/stable/generated/torch.nn.ParameterList.html?highlight=nn+parameterlist#torch.nn.ParameterList) | [paddle.nn.ParameterList](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/ParameterList_cn.html#parameterlist) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.ParameterList.html) | +| 138 | [torch.from_dlpack](https://pytorch.org/docs/stable/generated/torch.from_dlpack.html?highlight=from_dlpack#torch.from_dlpack) | [paddle.utils.dlpack.from_dlpack](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/utils/dlpack/from_dlpack_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.from_dlpack.html) | +| 139 | [torch.Tensor.logical\_and\_](https://pytorch.org/docs/stable/generated/torch.Tensor.logical_and_.html) | paddle.Tensor.logical_and_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.logical_and_.html) | +| 140 | [torch.distributed.rpc.get\_worker\_info](https://pytorch.org/docs/stable/rpc.html#torch.distributed.rpc.get_worker_info) | [paddle.distributed.rpc.get\_worker\_info](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/rpc/get_worker_info_cn.html#cn-api-distributed-rpc-get-worker-info) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.distributed.rpc.get_worker_info.html) | +| 141 | [torch.Tensor.renorm_](https://pytorch.org/docs/stable/generated/torch.Tensor.renorm_.html#torch-tensor-renorm_) | paddle.Tensor.renorm_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.renorm_.html) | +| 142 | [torch.Tensor.fmax](https://pytorch.org/docs/stable/generated/torch.Tensor.fmax.html?highlight=fmax#torch.Tensor.fmax) | [paddle.Tensor.fmax](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fmax_cn.html#fmax) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.fmax.html) | +| 143 | [torch.diagonal](https://pytorch.org/docs/stable/generated/torch.diagonal.html?highlight=diagonal#torch.diagonal) | [paddle.diagonal](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/diagonal_cn.html#diagonal) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.diagonal.html) | +| 144 | [torch.histogramdd](https://pytorch.org/docs/stable/generated/torch.histogramdd.html#torch-histogramdd) | [paddle.histogramdd](https://github.com/PaddlePaddle/Paddle/blob/a19227d9ee0e351363a4bb27b50b1becbec58a6c/python/paddle/tensor/linalg.py#L3875) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.histogramdd.html) | +| 145 | [torch.dist](https://pytorch.org/docs/stable/generated/torch.dist.html?highlight=dist#torch.dist) | [paddle.dist](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/dist_cn.html#dist) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.dist.html) | +| 146 | [torch.Tensor.tensor_split](https://pytorch.org/docs/stable/generated/torch.Tensor.tensor_split.html) | [paddle.Tensor.tensor_split](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#tensor_split-num_or_indices-axis-0-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.tensor_split.html) | +| 147 | [torch.Tensor.nansum](https://pytorch.org/docs/stable/generated/torch.Tensor.nansum.html?highlight=nansum#torch.Tensor.nansum) | paddle.Tensor.nansum | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.nansum.html) | +| 148 | [torch.Tensor.std](https://pytorch.org/docs/stable/generated/torch.Tensor.std.html?highlight=torch+tensor+std#torch.Tensor.std) | [paddle.Tensor.std](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#std-axis-none-unbiased-true-keepdim-false-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.std.html) | +| 149 | [torch.Tensor.bitwise\_xor\_](https://pytorch.org/docs/stable/generated/torch.Tensor.bitwise_xor_.html) | paddle.Tensor.bitwise_xor_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.bitwise_xor_.html) | +| 150 | [torch.Tensor.diag](https://pytorch.org/docs/stable/generated/torch.Tensor.diag.html?highlight=diag#torch.Tensor.diag) | [paddle.Tensor.diag](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/diag_cn.html#diag) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.diag.html) | +| 151 | [torch.linalg.lstsq](https://pytorch.org/docs/stable/generated/torch.linalg.lstsq.html?highlight=lstsq#torch.linalg.lstsq) | [paddle.linalg.lstsq](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/lstsq_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.linalg.lstsq.html) | +| 152 | [torch.nn.Flatten](https://pytorch.org/docs/stable/generated/torch.nn.Flatten.html?highlight=nn+flatten#torch.nn.Flatten) | [paddle.nn.Flatten](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Flatten_cn.html#flatten) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.Flatten.html) | +| 153 | [torch.bitwise_and](https://pytorch.org/docs/stable/generated/torch.bitwise_and.html#torch.bitwise_and) | [paddle.bitwise_and](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/bitwise_and_cn.html#bitwise-and) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.bitwise_and.html) | +| 154 | [torch.Tensor.squeeze_](https://pytorch.org/docs/stable/generated/torch.Tensor.squeeze_.html#torch-tensor-squeeze) | [paddle.Tensor.squeeze_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#id19) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.squeeze_.html) | +| 155 | [torch.sparse.addmm](https://pytorch.org/docs/stable/generated/torch.sparse.addmm.html?highlight=addmm#torch.sparse.addmm) | [paddle.sparse.addmm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sparse/addmm_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.sparse.addmm.html) | +| 156 | [torch.rot90](https://pytorch.org/docs/stable/generated/torch.rot90.html?highlight=torch+rot90#torch.rot90) | [paddle.rot90](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/rot90_cn.html#rot90) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.rot90.html) | +| 157 | [torch.nn.functional.pdist](https://pytorch.org/docs/stable/generated/torch.nn.functional.pdist.html#torch.nn.functional.pdist) | [paddle.pdist](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/pdist_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.pdist.html) | +| 158 | [torch.Tensor.unflatten](https://pytorch.org/docs/stable/generated/torch.Tensor.unflatten.html#torch.Tensor.unflatten) | [paddle.Tensor.unflatten](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#unflatten-axis-shape-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.unflatten.html) | +| 159 | [torch.squeeze](https://pytorch.org/docs/stable/generated/torch.squeeze.html?highlight=squeeze#torch.squeeze) | [paddle.squeeze](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/squeeze_cn.html#squeeze) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.squeeze.html) | +| 160 | [torch.nn.utils.remove\_weight\_norm](https://pytorch.org/docs/stable/generated/torch.nn.utils.remove_weight_norm.html?highlight=nn+utils+remove_weight_norm#torch.nn.utils.remove_weight_norm) | [paddle.nn.utils.remove\_weight\_norm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/utils/remove_weight_norm_cn.html#remove-weight-norm) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.utils.remove_weight_norm.html) | +| 161 | [torch.Tensor.baddbmm_](https://pytorch.org/docs/stable/generated/torch.Tensor.baddbmm_.html#torch.Tensor.baddbmm_) | [paddle.Tensor.baddbmm_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#tensor) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.baddbmm_.html) | +| 162 | [torch.masked_fill](https://pytorch.org/docs/stable/generated/torch.Tensor.masked_fill.html#torch.Tensor.masked_fill) | [paddle.masked_fill](https://github.com/PaddlePaddle/Paddle/blob/1e3761d119643af19cb6f8a031a77f315d782409/python/paddle/tensor/manipulation.py#L5111) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.masked_fill.html) | +| 163 | [torch.special.log_softmax](https://pytorch.org/docs/stable/special.html#torch.special.log_softmax) | [paddle.nn.functional.log_softmax](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/log_softmax_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.special.log_softmax.html) | +| 164 | [torch.Tensor.unfold](https://pytorch.org/docs/stable/generated/torch.Tensor.unfold.html?highlight=unfold#torch.Tensor.unfold) | [paddle.Tensor.unfold](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#unfold-x-axis-size-step-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.unfold.html) | +| 165 | [torch.Tensor.addmm_](https://pytorch.org/docs/stable/generated/torch.Tensor.addmm_.html) | paddle.Tensor.addmm_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.addmm_.html) | +| 166 | [torch.celu](https://pytorch.org/docs/stable/generated/torch.nn.functional.celu.html#torch.nn.functional.celu) | [paddle.nn.functional.celu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/celu_cn.html#celu) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.celu.html) | +| 167 | [torch.nn.functional.grid_sample](https://pytorch.org/docs/stable/generated/torch.nn.functional.grid_sample.html?highlight=grid_sample#torch.nn.functional.grid_sample) | [paddle.nn.functional.grid_sample](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/grid_sample_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.grid_sample.html) | +| 168 | [torch.diagflat](https://pytorch.org/docs/stable/generated/torch.diagflat.html?highlight=diagflat#torch.diagflat) | [paddle.diagflat](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/diagflat_cn.html#diagflat) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.diagflat.html) | +| 169 | [torch.Tensor.vsplit](https://pytorch.org/docs/stable/generated/torch.Tensor.vsplit.html) | [paddle.Tensor.vsplit](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#vsplit-num_or_indices-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.vsplit.html) | +| 170 | [torch.movedim](https://pytorch.org/docs/stable/generated/torch.movedim.html?highlight=movedim#torch.movedim) | [paddle.moveaxis](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/moveaxis_cn.html#moveaxis) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.movedim.html) | +| 171 | [torch.Tensor.bitwise_xor](https://pytorch.org/docs/stable/generated/torch.Tensor.bitwise_xor.html) | paddle.Tensor.bitwise_xor | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.bitwise_xor.html) | +| 172 | [torch.cdist](https://pytorch.org/docs/stable/generated/torch.cdist.html#torch.cdist) | [paddle.cdist](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/cdist_cn.html#cdist) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.cdist.html) | +| 173 | [torch.iinfo](https://pytorch.org/docs/stable/type_info.html#torch-iinfo) | [paddle.iinfo](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/iinfo_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.iinfo.html) | +| 174 | [torch.fft.fftshift](https://pytorch.org/docs/stable/generated/torch.fft.fftshift.html#torch.fft.fftshift) | [paddle.fft.fftshift](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fft/fftshift_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.fft.fftshift.html) | +| 175 | [torch.nn.functional.softsign](https://pytorch.org/docs/stable/generated/torch.nn.functional.softsign.html?highlight=softsign#torch.nn.functional.softsign) | [paddle.nn.functional.softsign](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/softsign_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.softsign.html) | +| 176 | [torch.nn.ModuleList](https://pytorch.org/docs/stable/generated/torch.nn.ModuleList.html?highlight=torch+nn+modulelist#torch.nn.ModuleList) | [paddle.nn.LayerList](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/LayerList_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.ModuleList.html) | +| 177 | [torch.Tensor.cross](https://pytorch.org/docs/stable/generated/torch.Tensor.cross.html?highlight=cross#torch.Tensor.cross) | [paddle.Tensor.cross](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#cross-y-axis-none-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.cross.html) | +| 178 | [torch.Tensor.ger](https://pytorch.org/docs/stable/generated/torch.Tensor.ger.html?highlight=torch+tensor+ger#torch.Tensor.ger) | paddle.Tensor.outer | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.ger.html) | +| 179 | [torch.Tensor.isclose](https://pytorch.org/docs/stable/generated/torch.Tensor.isclose.html) | [paddle.Tensor.isclose](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#isclose-x-y-rtol-1e-05-atol-1e-08-equal-nan-false-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.isclose.html) | +| 180 | [torch.kthvalue](https://pytorch.org/docs/stable/generated/torch.kthvalue.html?highlight=kthvalue#torch.kthvalue) | [paddle.kthvalue](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/kthvalue_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.kthvalue.html) | +| 181 | [torch.nn.functional.hardtanh_](https://pytorch.org/docs/stable/jit_builtin_functions.html#supported-tensor-methods) | [paddle.nn.functional.hardtanh_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/hardtanh_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.hardtanh_.html) | +| 182 | [torch.Tensor.lerp](https://pytorch.org/docs/stable/generated/torch.Tensor.lerp.html) | [paddle.Tensor.lerp](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#lerp-x-y-weight-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.lerp.html) | +| 183 | [torch.Tensor.addmm](https://pytorch.org/docs/stable/generated/torch.Tensor.addmm.html) | paddle.Tensor.addmm | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.addmm.html) | +| 184 | [torch.Tensor.igammac_](https://pytorch.org/docs/stable/generated/torch.Tensor.igammac_.html#torch.Tensor.igammac_) | [paddle.Tensor.gammaincc_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/gammaincc__cn.html#gammaincc) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.igammac_.html) | +| 185 | [torch.nn.functional.glu](https://pytorch.org/docs/stable/generated/torch.nn.functional.glu.html?highlight=glu#torch.nn.functional.glu) | [paddle.nn.functional.glu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/glu_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.glu.html) | +| 186 | [torch.Tensor.orgqr](https://pytorch.org/docs/stable/generated/torch.Tensor.orgqr.html#torch.Tensor.orgqr) | [paddle.Tensor.householder_product](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/householder_product_cn.html#householder-product) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.orgqr.html) | +| 187 | [torch.positive](https://pytorch.org/docs/stable/generated/torch.positive.html#torch-positive) | [paddle.positive](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/positive_cn.html#positive) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.positive.html) | +| 188 | [torch.moveaxis](https://pytorch.org/docs/stable/generated/torch.moveaxis.html?highlight=moveaxis#torch.moveaxis) | [paddle.moveaxis](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/moveaxis_cn.html#moveaxis) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.moveaxis.html) | +| 189 | [torch.nn.functional.adaptive\_max\_pool2d](https://pytorch.org/docs/stable/generated/torch.nn.functional.adaptive_max_pool2d.html?highlight=adaptive_max_pool2d#torch.nn.functional.adaptive_max_pool2d) | [paddle.nn.functional.adaptive\_max\_pool2d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/adaptive_max_pool2d_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.adaptive_max_pool2d.html) | +| 190 | [torch.Tensor.hypot](https://pytorch.org/docs/stable/generated/torch.Tensor.hypot.html#torch.Tensor.hypot) | [paddle.Tensor.hypot](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/hypot_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.hypot.html) | +| 191 | [torch.nn.Hardshrink](https://pytorch.org/docs/stable/generated/torch.nn.Hardshrink.html?highlight=hardshrink#torch.nn.Hardshrink) | [paddle.nn.Hardshrink](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Hardshrink_cn.html#hardshrink) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.Hardshrink.html) | +| 192 | [torch.trace](https://pytorch.org/docs/stable/generated/torch.trace.html?highlight=trace#torch.trace) | [paddle.trace](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/trace_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.trace.html) | +| 193 | [torch.Tensor.igamma](https://pytorch.org/docs/stable/generated/torch.Tensor.igamma.html#torch.Tensor.igamma) | [paddle.Tensor.gammainc](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/gammainc_cn.html#gammainc) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.igamma.html) | +| 194 | [torch.profiler.schedule](https://pytorch.org/docs/stable/profiler.html#torch.profiler.schedule) | [paddle.profiler.make_scheduler](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/profiler/make_scheduler_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.profiler.schedule.html) | +| 195 | [torch.bitwise_xor](https://pytorch.org/docs/stable/generated/torch.bitwise_xor.html) | [paddle.bitwise_xor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/bitwise_xor_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.bitwise_xor.html) | +| 196 | [torch.conj](https://pytorch.org/docs/stable/generated/torch.conj.html?highlight=conj#torch.conj) | [paddle.conj](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/conj_cn.html#conj) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.conj.html) | +| 197 | [torch.pinverse](https://pytorch.org/docs/stable/generated/torch.pinverse.html?highlight=pinverse#torch.pinverse) | [paddle.linalg.pinv](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/pinv_cn.html#pinv) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.pinverse.html) | +| 198 | [torch.nn.functional.relu_](https://pytorch.org/docs/stable/generated/torch.nn.functional.relu_.html?highlight=relu_#torch.nn.functional.relu_) | [paddle.nn.functional.relu_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/relu__cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.relu_.html) | +| 199 | [torch.Tensor.diagonal](https://pytorch.org/docs/stable/generated/torch.Tensor.diagonal.html?highlight=diagonal#torch.Tensor.diagonal) | [paddle.Tensor.diagonal](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#diagonal-offset-0-axis1-0-axis2-1-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.diagonal.html) | +| 200 | [torch.Tensor.pow_](https://pytorch.org/docs/stable/generated/torch.Tensor.pow_.html) | paddle.Tensor.pow_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.pow_.html) | +| 201 | [torch.nn.functional.affine_grid](https://pytorch.org/docs/stable/generated/torch.nn.functional.affine_grid.html?highlight=affine_grid#torch.nn.functional.affine_grid) | [paddle.nn.functional.affine_grid](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/affine_grid_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.affine_grid.html) | +| 202 | [torch.select_scatter](https://pytorch.org/docs/stable/generated/torch.select_scatter.html#torch-select-scatter) | [paddle.select_scatter](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/select_scatter_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.select_scatter.html) | +| 203 | [torch.dstack](https://pytorch.org/docs/stable/generated/torch.dstack.html#torch.dstack) | [paddle.dstack](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/dstack_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.dstack.html) | +| 204 | [torch.as_strided](https://pytorch.org/docs/stable/generated/torch.as_strided.html?highlight=as_strided#torch.as_strided) | [paddle.as_strided](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/as_strided_cn.html#as-strided) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.as_strided.html) | +| 205 | [torch.linalg.matrix_exp](https://pytorch.org/docs/stable/generated/torch.linalg.matrix_exp.html#torch.linalg.matrix_exp) | [paddle.linalg.matrix_exp](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/matrix_exp_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.linalg.matrix_exp.html) | +| 206 | [torchvision.io.read_file](https://pytorch.org/vision/main/generated/torchvision.io.read_file.html) | [paddle.vision.ops.read_file](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/ops/read_file_cn.html#cn-api-paddle-vision-ops-read-file) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torchvision.io.read_file.html) | +| 207 | [torch.dropout](https://pytorch.org/docs/stable/jit_builtin_functions.html#supported-pytorch-functions) | [paddle.nn.functional.dropout](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/dropout_cn.html#dropout) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.dropout.html) | +| 208 | [torch.nn.functional.local\_response\_norm](https://pytorch.org/docs/stable/generated/torch.nn.functional.local_response_norm.html?highlight=local_response_norm#torch.nn.functional.local_response_norm) | [paddle.nn.functional.local\_response\_norm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/local_response_norm_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.local_response_norm.html) | +| 209 | [torch.Tensor.roll](https://pytorch.org/docs/stable/generated/torch.Tensor.roll.html?highlight=torch+tensor+roll#torch.Tensor.roll) | [paddle.Tensor.roll](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/roll_cn.html#roll) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.roll.html) | +| 210 | [torch.Tensor.bitwise\_and\_](https://pytorch.org/docs/stable/generated/torch.Tensor.bitwise_and_.html) | paddle.Tensor.bitwise_and_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.bitwise_and_.html) | +| 211 | [torch.nn.functional.softshrink](https://pytorch.org/docs/stable/generated/torch.nn.functional.softshrink.html?highlight=softshrink#torch.nn.functional.softshrink) | [paddle.nn.functional.softshrink](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/softshrink_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.softshrink.html) | +| 212 | [torch.nn.functional.relu6](https://pytorch.org/docs/stable/generated/torch.nn.functional.relu6.html?highlight=relu6#torch.nn.functional.relu6) | [paddle.nn.functional.relu6](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/relu6_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.relu6.html) | +| 213 | [torch.Tensor.lcm](https://pytorch.org/docs/stable/generated/torch.Tensor.lcm.html) | paddle.Tensor.lcm | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.lcm.html) | +| 214 | [torch.combinations](https://pytorch.org/docs/stable/generated/torch.combinations.html#torch.combinations) | [paddle.combinations](https://github.com/PaddlePaddle/Paddle/blob/8932f1c5e26788ab1eed226e70fafb1ea67ce737/python/paddle/tensor/math.py#L7099) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.combinations.html) | +| 215 | [torch.Tensor.maximum](https://pytorch.org/docs/stable/generated/torch.Tensor.maximum.html#torch.Tensor.maximum) | [paddle.Tensor.maximum](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#maximum-y-axis-1-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.maximum.html) | +| 216 | [torch.Tensor.cholesky_solve](https://pytorch.org/docs/stable/generated/torch.Tensor.cholesky_solve.html#torch-tensor-cholesky-solve) | paddle.Tensor.cholesky_solve | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.cholesky_solve.html) | ### 4. paddle 参数更多 **分类简介** @@ -74,7 +962,126 @@ paddle.nn.Softplus(beta=0.5, threshold=15) | 序号 | Pytorch 最新 release | Paddle develop | 备注 | |------|-------------------|---------------|------| - +| 1 | [torchvision.ops.nms](https://pytorch.org/vision/main/generated/torchvision.ops.nms.html) | [paddle.vision.ops.nms](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/ops/nms_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torchvision.ops.nms.html) | +| 2 | [torch.Tensor.cummin](https://pytorch.org/docs/stable/generated/torch.Tensor.cummin.html?highlight=cummin#torch.Tensor.cummin) | [paddle.Tensor.cummin](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#cummin-x-axis-none-dtype-int64-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.cummin.html) | +| 3 | [torch.nn.functional.max_unpool3d](https://pytorch.org/docs/stable/generated/torch.nn.functional.max_unpool3d.html?highlight=max_unpool3d#torch.nn.functional.max_unpool3d) | [paddle.nn.functional.max_unpool3d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/max_unpool3d_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.max_unpool3d.html) | +| 4 | [torch.Tensor.bitwise\_right\_shift](https://pytorch.org/docs/stable/generated/torch.Tensor.bitwise_right_shift.html#torch-tensor-bitwise-right-shift) | paddle.Tensor.bitwise_right_shift | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.bitwise_right_shift.html) | +| 5 | [torch.nn.functional.group_norm](https://pytorch.org/docs/stable/generated/torch.nn.functional.group_norm.html#torch.nn.functional.group_norm) | [paddle.nn.functional.group_norm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/group_norm_cn.html#group-norm) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.group_norm.html) | +| 6 | [torch.nn.Module.double](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.double) | [paddle.nn.Layer.to](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#to-device-none-dtype-none-blocking-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.Module.double.html) | +| 7 | [torch.nn.MaxUnpool3d](https://pytorch.org/docs/stable/generated/torch.nn.MaxUnpool3d.html?highlight=maxunpool3d#torch.nn.MaxUnpool3d) | [paddle.nn.MaxUnPool3D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/MaxUnPool3D_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.MaxUnpool3d.html) | +| 8 | [torch.nn.LazyConv2d](https://pytorch.org/docs/stable/generated/torch.nn.LazyConv2d.html) | [paddle.nn.Conv2D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Conv2D_cn.html#conv2d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.LazyConv2d.html) | +| 9 | [torch.Tensor.corrcoef](https://pytorch.org/docs/stable/generated/torch.Tensor.corrcoef.html#torch.Tensor.corrcoef) | paddle.Tensor.corrcoef | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.corrcoef.html) | +| 10 | [torch.nn.functional.conv_transpose2d](https://pytorch.org/docs/stable/generated/torch.nn.functional.conv_transpose2d.html?highlight=conv_#torch.nn.functional.conv_transpose2d) | [paddle.nn.functional.conv2d_transpose](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/conv2d_transpose_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.conv_transpose2d.html) | +| 11 | [torch.autograd.profiler.profile.export\_chrome\_trace](https://pytorch.org/docs/stable/generated/torch.autograd.profiler.profile.export_chrome_trace.html#torch.autograd.profiler.profile.export_chrome_trace) | [paddle.profiler.export\_chrome\_tracing](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/profiler/export_chrome_tracing_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.autograd.profiler.profile.export_chrome_trace.html) | +| 12 | [torch.cuda.LongTensor](https://pytorch.org/docs/stable/tensors.html) | [paddle.to_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/to_tensor_cn.html#to-tensor) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.cuda.LongTensor.html) | +| 13 | [torchvision.transforms.RandomHorizontalFlip](https://pytorch.org/vision/main/generated/torchvision.transforms.RandomHorizontalFlip.html?highlight=randomhorizontalflip#torchvision.transforms.RandomHorizontalFlip) | [paddle.vision.transforms.RandomHorizontalFlip](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/RandomHorizontalFlip_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torchvision.transforms.RandomHorizontalFlip.html) | +| 14 | [torch.Tensor.take](https://pytorch.org/docs/stable/generated/torch.Tensor.take.html#torch.Tensor.take) | [paddle.Tensor.take](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#take-index-mode-raise-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.take.html) | +| 15 | [torch.Tensor.count_nonzero](https://pytorch.org/docs/stable/generated/torch.Tensor.count_nonzero.html#torch.Tensor.count_nonzero) | [paddle.Tensor.count_nonzero](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#count-nonzero-axis-none-keepdim-false-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.count_nonzero.html) | +| 16 | [torch.nn.Module.bfloat16](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.bfloat16) | [paddle.nn.Layer.to](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#to-device-none-dtype-none-blocking-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.Module.bfloat16.html) | +| 17 | [torch.nn.Upsample](https://pytorch.org/docs/stable/generated/torch.nn.Upsample.html?highlight=upsample#torch.nn.Upsample) | [paddle.nn.Upsample](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Upsample_cn.html#upsample) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.Upsample.html) | +| 18 | [torch.nn.Module.cpu](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.cpu) | [paddle.nn.Layer.to](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#to-device-none-dtype-none-blocking-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.Module.cpu.html) | +| 19 | [torch.nn.LazyConv3d](https://pytorch.org/docs/stable/generated/torch.nn.LazyConv3d.html) | [paddle.nn.Conv3D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Conv3D_cn.html#conv3d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.LazyConv3d.html) | +| 20 | [torch.nn.Module.state_dict](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.state_dict) | [paddle.nn.Layer.state_dict](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#state-dict-destination-none-include-sublayers-true-use-hook-true) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.Module.state_dict.html) | +| 21 | [torch.nn.ConstantPad1d](https://pytorch.org/docs/stable/generated/torch.nn.ConstantPad1d.html?highlight=constantpad1d#torch.nn.ConstantPad1d) | [paddle.nn.Pad1D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Pad1D_cn.html#pad1d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.ConstantPad1d.html) | +| 22 | [torch.nn.functional.max_unpool2d](https://pytorch.org/docs/stable/generated/torch.nn.functional.max_unpool2d.html?highlight=max_unpool2d#torch.nn.functional.max_unpool2d) | [paddle.nn.functional.max_unpool2d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/max_unpool2d_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.max_unpool2d.html) | +| 23 | [torchvision.transforms.RandomCrop](https://pytorch.org/vision/main/generated/torchvision.transforms.RandomCrop.html) | [paddle.vision.transforms.RandomCrop](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/RandomCrop_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torchvision.transforms.RandomCrop.html) | +| 24 | [torch.nn.functional.conv_transpose1d](https://pytorch.org/docs/stable/generated/torch.nn.functional.conv_transpose1d.html?highlight=conv_trans#torch.nn.functional.conv_transpose1d) | [paddle.nn.functional.conv1d_transpose](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/conv1d_transpose_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.conv_transpose1d.html) | +| 25 | [torch.nn.Module.named_modules](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.named_modules) | [paddle.nn.Layer.named_sublayers](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#named-sublayers-prefix-include-self-false-layers-set-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.Module.named_modules.html) | +| 26 | [torch.nn.Module.modules](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.modules) | [paddle.nn.Layer.sublayers](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/Layer_cn.html#sublayers-include-self-false) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.Module.modules.html) | +| 27 | [torch.Tensor.to\_sparse\_coo](https://pytorch.org/docs/stable/generated/torch.Tensor.to_sparse_coo.html) | paddle.Tensor.to_sparse_coo | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.to_sparse_coo.html) | +| 28 | [torch.Tensor.uniform_](https://pytorch.org/docs/stable/generated/torch.Tensor.uniform_.html#torch-tensor-uniform) | [paddle.Tensor.uniform_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#uniform-min-1-0-max-1-0-seed-0-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.uniform_.html) | +| 29 | [torch.nn.functional.hardsigmoid](https://pytorch.org/docs/stable/generated/torch.nn.functional.hardsigmoid.html) | [paddle.nn.functional.hardsigmoid](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/functional/hardsigmoid_cn.html#hardsigmoid) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.hardsigmoid.html) | +| 30 | [torch.nn.functional.pixel_shuffle](https://pytorch.org/docs/stable/generated/torch.nn.functional.pixel_shuffle.html?highlight=pixel_shuffle#torch.nn.functional.pixel_shuffle) | [paddle.nn.functional.pixel_shuffle](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/pixel_shuffle_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.pixel_shuffle.html) | +| 31 | [torch.optim.Optimizer](https://pytorch.org/docs/stable/optim.html#torch.optim.Optimizer) | [paddle.optimizer.Optimizer](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/Optimizer_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.optim.Optimizer.html) | +| 32 | [torch.utils.data.BatchSampler](https://pytorch.org/docs/stable/data.html?highlight=batchsampler#torch.utils.data.BatchSampler) | [paddle.io.BatchSampler](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/io/BatchSampler_cn.html#batchsampler) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.utils.data.BatchSampler.html) | +| 33 | [torch.nn.LazyConvTranspose1d](https://pytorch.org/docs/stable/generated/torch.nn.LazyConvTranspose1d.html) | [paddle.nn.Conv1DTranspose](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Conv1DTranspose_cn.html#conv1dtranspose) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.LazyConvTranspose1d.html) | +| 34 | [torch.nn.Module.half](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.half) | [paddle.nn.Layer.to](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#to-device-none-dtype-none-blocking-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.Module.half.html) | +| 35 | [torch.nn.LazyBatchNorm3d](https://pytorch.org/docs/stable/generated/torch.nn.LazyBatchNorm3d.html) | [paddle.nn.BatchNorm3D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/BatchNorm3D_cn.html#batchnorm3d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.LazyBatchNorm3d.html) | +| 36 | [torch.Tensor.unique_consecutive](https://pytorch.org/docs/stable/generated/torch.Tensor.unique_consecutive.html#torch.Tensor.unique_consecutive) | paddle.Tensor.unique_consecutive | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.unique_consecutive.html) | +| 37 | [torch.nn.LazyInstanceNorm2d](https://pytorch.org/docs/stable/generated/torch.nn.LazyInstanceNorm2d.html) | [paddle.nn.InstanceNorm2D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/InstanceNorm2D_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.LazyInstanceNorm2d.html) | +| 38 | [torch.Tensor.cov](https://pytorch.org/docs/stable/generated/torch.Tensor.cov.html#torch.Tensor.cov) | paddle.Tensor.cov | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.cov.html) | +| 39 | [torch.Tensor.fliplr](https://pytorch.org/docs/stable/generated/torch.Tensor.fliplr.html?highlight=fliplr#torch.Tensor.fliplr) | [paddle.Tensor.flip](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#flip-axis-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.fliplr.html) | +| 40 | [torch.cuda.FloatTensor](https://pytorch.org/docs/stable/tensors.html) | [paddle.to_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/to_tensor_cn.html#to-tensor) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.cuda.FloatTensor.html) | +| 41 | [torch.selu](https://pytorch.org/docs/stable/generated/torch.nn.functional.selu.html#torch.nn.functional.selu) | [paddle.nn.functional.selu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/selu_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.selu.html) | +| 42 | [torch.nn.CircularPad3d](https://pytorch.org/docs/stable/generated/torch.nn.CircularPad3d.html#circularpad3d) | [paddle.nn.Pad3D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Pad3D_cn.html#pad3d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.CircularPad3d.html) | +| 43 | [torch.bitwise\_right\_shift](https://pytorch.org/docs/stable/generated/torch.bitwise_right_shift.html) | [paddle.bitwise\_right\_shift](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/bitwise_right_shift_cn.html#bitwise-right-shift) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.bitwise_right_shift.html) | +| 44 | [torch.nn.UpsamplingBilinear2d](https://pytorch.org/docs/stable/generated/torch.nn.UpsamplingBilinear2d.html?highlight=upsamplingbilinear2d#torch.nn.UpsamplingBilinear2d) | [paddle.nn.UpsamplingBilinear2D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/UpsamplingBilinear2D_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.UpsamplingBilinear2d.html) | +| 45 | [torch.nn.functional.conv_transpose3d](https://pytorch.org/docs/stable/generated/torch.nn.functional.conv_transpose3d.html?highlight=conv_#torch.nn.functional.conv_transpose3d) | [paddle.nn.functional.conv3d_transpose](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/conv3d_transpose_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.conv_transpose3d.html) | +| 46 | [torchvision.transforms.ColorJitter](https://pytorch.org/vision/main/generated/torchvision.transforms.ColorJitter.html) | [paddle.vision.transforms.ColorJitter](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/ColorJitter_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torchvision.transforms.ColorJitter.html) | +| 47 | [torchvision.transforms.Pad](https://pytorch.org/vision/main/generated/torchvision.transforms.Pad.html) | [paddle.vision.transforms.Pad](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/Pad__upper_cn.html#pad) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torchvision.transforms.Pad.html) | +| 48 | [torch.nn.LazyInstanceNorm1d](https://pytorch.org/docs/stable/generated/torch.nn.LazyInstanceNorm1d.html) | [paddle.nn.InstanceNorm1D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/InstanceNorm1D_cn.html#instancenorm1d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.LazyInstanceNorm1d.html) | +| 49 | [torch.nn.PixelShuffle](https://pytorch.org/docs/stable/generated/torch.nn.PixelShuffle.html?highlight=pixel#torch.nn.PixelShuffle) | [paddle.nn.PixelShuffle](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/PixelShuffle_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.PixelShuffle.html) | +| 50 | [torch.nn.functional.pixel_unshuffle](https://pytorch.org/docs/stable/generated/torch.nn.functional.pixel_unshuffle.html?highlight=pixel_unshuffle#torch.nn.functional.pixel_unshuffle) | [paddle.nn.functional.pixel_unshuffle](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/pixel_unshuffle_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.pixel_unshuffle.html) | +| 51 | [torch.nn.MaxUnpool2d](https://pytorch.org/docs/stable/generated/torch.nn.MaxUnpool2d.html?highlight=maxunpool2d#torch.nn.MaxUnpool2d) | [paddle.nn.MaxUnPool2D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/MaxUnPool2D_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.MaxUnpool2d.html) | +| 52 | [torch.nn.ConstantPad2d](https://pytorch.org/docs/stable/generated/torch.nn.ConstantPad2d.html?highlight=pad#torch.nn.ConstantPad2d) | [paddle.nn.Pad2D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Pad2D_cn.html#pad2d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.ConstantPad2d.html) | +| 53 | [torch.Tensor.cummax](https://pytorch.org/docs/stable/generated/torch.Tensor.cummax.html?highlight=cummax#torch.Tensor.cummax) | [paddle.Tensor.cummax](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#cummax-x-axis-none-dtype-int64-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.cummax.html) | +| 54 | [torch.nansum](https://pytorch.org/docs/stable/generated/torch.nansum.html) | [paddle.nansum](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nansum_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nansum.html) | +| 55 | [torchvision.transforms.RandomErasing](https://pytorch.org/vision/main/generated/torchvision.transforms.RandomErasing.html?highlight=randomerasing#torchvision.transforms.RandomErasing) | [paddle.vision.transforms.RandomErasing](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/RandomErasing_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torchvision.transforms.RandomErasing.html) | +| 56 | [torchvision.transforms.RandomVerticalFlip](https://pytorch.org/vision/main/generated/torchvision.transforms.RandomVerticalFlip.html) | [paddle.vision.transforms.RandomVerticalFlip](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/RandomVerticalFlip_cn.html) | - | +| 57 | [torch.cuda.ByteTensor](https://pytorch.org/docs/stable/tensors.html) | [paddle.to_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/to_tensor_cn.html#to-tensor) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.cuda.ByteTensor.html) | +| 58 | [torch.nn.LocalResponseNorm](https://pytorch.org/docs/stable/generated/torch.nn.LocalResponseNorm.html?highlight=localre#torch.nn.LocalResponseNorm) | [paddle.nn.LocalResponseNorm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/LocalResponseNorm_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.LocalResponseNorm.html) | +| 59 | [torch.nn.LPPool2d](https://pytorch.org/docs/stable/generated/torch.nn.LPPool2d.html#lppool2d) | [paddle.nn.LPPool2D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/LPPool2D_cn.html#lppool2d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.LPPool2d.html) | +| 60 | [torch.nn.Module.float](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.float) | [paddle.nn.Layer.to](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#to-device-none-dtype-none-blocking-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.Module.float.html) | +| 61 | [torch.nn.functional.lp_pool1d](https://pytorch.org/docs/stable/generated/torch.nn.functional.lp_pool1d.html#torch.nn.functional.lp_pool1d) | [paddle.nn.functional.lp_pool1d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/lp_pool1d_cn.html#lp-pool1d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.lp_pool1d.html) | +| 62 | [torch.nn.AdaptiveAvgPool2d](https://pytorch.org/docs/stable/generated/torch.nn.AdaptiveAvgPool2d.html) | [paddle.nn.AdaptiveAvgPool2D](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/AdaptiveAvgPool2D_cn.html#adaptiveavgpool2d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.AdaptiveAvgPool2d.html) | +| 63 | [torch.nn.functional.max_unpool1d](https://pytorch.org/docs/stable/generated/torch.nn.functional.max_unpool1d.html?highlight=max_unpool1d#torch.nn.functional.max_unpool1d) | [paddle.nn.functional.max_unpool1d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/max_unpool1d_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.max_unpool1d.html) | +| 64 | [torch.Tensor.argwhere](https://pytorch.org/docs/stable/generated/torch.Tensor.argwhere.html#torch.Tensor.argwhere) | [paddle.Tensor.nonzero](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#nonzero-as-tuple-false) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.argwhere.html) | +| 65 | [torch.nn.LazyLinear](https://pytorch.org/docs/stable/generated/torch.nn.LazyLinear.html) | [paddle.nn.Linear](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Linear_cn.html#linear) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.LazyLinear.html) | +| 66 | [torch.nn.LazyConvTranspose2d](https://pytorch.org/docs/stable/generated/torch.nn.LazyConvTranspose2d.html) | [paddle.nn.Conv2DTranspose](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Conv2DTranspose_cn.html#conv2dtranspose) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.LazyConvTranspose2d.html) | +| 67 | [torch.nn.LazyBatchNorm1d](https://pytorch.org/docs/stable/generated/torch.nn.LazyBatchNorm1d.html) | [paddle.nn.BatchNorm1D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/BatchNorm1D_cn.html#batchnorm1d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.LazyBatchNorm1d.html) | +| 68 | [torch.nn.MaxUnpool1d](https://pytorch.org/docs/stable/generated/torch.nn.MaxUnpool1d.html?highlight=maxunpool1d#torch.nn.MaxUnpool1d) | [paddle.nn.MaxUnPool1D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/MaxUnPool1D_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.MaxUnpool1d.html) | +| 69 | [torchvision.ops.deform_conv2d](https://pytorch.org/vision/main/generated/torchvision.ops.deform_conv2d.html) | [paddle.vision.ops.deform_conv2d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/ops/deform_conv2d_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torchvision.ops.deform_conv2d.html) | +| 70 | [torchvision.transforms.Grayscale](https://pytorch.org/vision/main/generated/torchvision.transforms.Grayscale.html) | [paddle.vision.transforms.Grayscale](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/Grayscale_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torchvision.transforms.Grayscale.html) | +| 71 | [torch.bitwise\_left\_shift](https://pytorch.org/docs/stable/generated/torch.bitwise_left_shift.html) | [paddle.bitwise\_left\_shift](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/bitwise_left_shift_cn.html#bitwise-left-shift) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.bitwise_left_shift.html) | +| 72 | [torch.autograd.Function.backward](https://pytorch.org/docs/stable/generated/torch.autograd.Function.backward.html#torch.autograd.Function.backward) | [paddle.autograd.PyLayer.backward](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/autograd/PyLayer_cn.html#backward-ctx-args-kwargs) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.autograd.Function.backward.html) | +| 73 | [torch.Tensor.fill\_diagonal\_](https://pytorch.org/docs/stable/generated/torch.Tensor.fill_diagonal_.html?highlight=fill_diagonal_#torch.Tensor.fill_diagonal_) | [paddle.Tensor.fill\_diagonal\_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#fill-diagonal-x-value-offset-0-wrap-false-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.fill_diagonal_.html) | +| 74 | [torch.nn.LPPool1d](https://pytorch.org/docs/stable/generated/torch.nn.LPPool1d.html#lppool1d) | [paddle.nn.LPPool1D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/LPPool1D_cn.html#lppool1d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.LPPool1d.html) | +| 75 | [torch.nn.LazyInstanceNorm3d](https://pytorch.org/docs/stable/generated/torch.nn.LazyInstanceNorm3d.html) | [paddle.nn.InstanceNorm3D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/InstanceNorm3D_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.LazyInstanceNorm3d.html) | +| 76 | [torch.flipud](https://pytorch.org/docs/stable/generated/torch.flipud.html?highlight=flipud#torch.flipud) | [paddle.flip](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/flip_cn.html#flip) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.flipud.html) | +| 77 | [torchvision.transforms.CenterCrop](https://pytorch.org/vision/main/generated/torchvision.transforms.CenterCrop.html) | [paddle.vision.transforms.CenterCrop](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/CenterCrop_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torchvision.transforms.CenterCrop.html) | +| 78 | [torch.nn.Softmax2d](https://pytorch.org/docs/stable/generated/torch.nn.Softmax2d.html?highlight=softmax2d#torch.nn.Softmax2d) | [paddle.nn.Softmax](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Softmax_cn.html#softmax) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.Softmax2d.html) | +| 79 | [torchvision.transforms.ToTensor](https://pytorch.org/vision/main/generated/torchvision.transforms.ToTensor.html?highlight=totensor#torchvision.transforms.ToTensor) | [paddle.vision.transforms.ToTensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/ToTensor_cn.html#totensor) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torchvision.transforms.ToTensor.html) | +| 80 | [torch.cuda.DoubleTensor](https://pytorch.org/docs/stable/tensors.html) | [paddle.to_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/to_tensor_cn.html#to-tensor) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.cuda.DoubleTensor.html) | +| 81 | [torch.fliplr](https://pytorch.org/docs/stable/generated/torch.fliplr.html?highlight=fliplr#torch.fliplr) | [paddle.flip](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/flip_cn.html#flip) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.fliplr.html) | +| 82 | [torch.nn.ChannelShuffle](https://pytorch.org/docs/stable/generated/torch.nn.ChannelShuffle.html?highlight=channelshuffle#torch.nn.ChannelShuffle) | [paddle.nn.ChannelShuffle](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/ChannelShuffle_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.ChannelShuffle.html) | +| 83 | [torch.nn.functional.upsample](https://pytorch.org/docs/stable/generated/torch.nn.functional.upsample.html?highlight=upsample#torch.nn.functional.upsample) | [paddle.nn.functional.upsample](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/upsample_cn.html#upsample) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.upsample.html) | +| 84 | [torch.optim.LBFGS](https://pytorch.org/docs/stable/generated/torch.optim.LBFGS.html) | [paddle.optimizer.LBFGS](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/LBFGS_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.optim.LBFGS.html) | +| 85 | [torch.nn.LazyConv1d](https://pytorch.org/docs/stable/generated/torch.nn.LazyConv1d.html) | [paddle.nn.Conv1D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Conv1D_cn.html#conv1d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.LazyConv1d.html) | +| 86 | [torch.Tensor.pinverse](https://pytorch.org/docs/stable/generated/torch.Tensor.pinverse.html#torch.Tensor.pinverse) | paddle.Tensor.pinv | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.pinverse.html) | +| 87 | [torch.nn.Module](https://pytorch.org/docs/stable/generated/torch.nn.Module.html?highlight=torch+nn+module#torch.nn.Module) | [paddle.nn.Layer](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.Module.html) | +| 88 | [torch.Tensor.bitwise\_left\_shift\_](https://pytorch.org/docs/stable/generated/torch.Tensor.bitwise_left_shift_.html#torch-tensor-bitwise-left-shift) | paddle.Tensor.bitwise_left_shift_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.bitwise_left_shift_.html) | +| 89 | [torch.nn.UpsamplingNearest2d](https://pytorch.org/docs/stable/generated/torch.nn.UpsamplingNearest2d.html?highlight=upsampl#torch.nn.UpsamplingNearest2d) | [paddle.nn.UpsamplingNearest2D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/UpsamplingNearest2D_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.UpsamplingNearest2d.html) | +| 90 | [torch.nn.LazyBatchNorm2d](https://pytorch.org/docs/stable/generated/torch.nn.LazyBatchNorm2d.html) | [paddle.nn.BatchNorm2D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/BatchNorm2D_cn.html#batchnorm2d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.LazyBatchNorm2d.html) | +| 91 | [torch.cuda.HalfTensor](https://pytorch.org/docs/stable/tensors.html) | [paddle.to_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/to_tensor_cn.html#to-tensor) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.cuda.HalfTensor.html) | +| 92 | [torch.nn.functional.prelu](https://pytorch.org/docs/stable/generated/torch.nn.functional.prelu.html?highlight=prelu#torch.nn.functional.prelu) | [paddle.nn.functional.prelu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/prelu_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.prelu.html) | +| 93 | [torch.nn.Module.cuda](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.cuda) | [paddle.nn.Layer.to](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#to-device-none-dtype-none-blocking-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.Module.cuda.html) | +| 94 | [torch.linalg.vander](https://pytorch.org/docs/stable/generated/torch.linalg.vander.html#torch.linalg.vander) | [paddle.vander](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vander_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.linalg.vander.html) | +| 95 | [torch.cuda.ShortTensor](https://pytorch.org/docs/stable/tensors.html) | [paddle.to_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/to_tensor_cn.html#to-tensor) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.cuda.ShortTensor.html) | +| 96 | [torch.Tensor.logcumsumexp](https://pytorch.org/docs/stable/generated/torch.Tensor.logcumsumexp.html?highlight=logcumsumexp#torch.Tensor.logcumsumexp) | [paddle.Tensor.logcumsumexp](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/logcumsumexp_cn.html#logcumsumexp) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.logcumsumexp.html) | +| 97 | [torch.nn.functional.upsample_bilinear](https://pytorch.org/docs/stable/generated/torch.nn.functional.upsample_bilinear.html#torch.nn.functional.upsample_bilinear) | [paddle.nn.functional.upsample](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/upsample_cn.html#upsample) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.upsample_bilinear.html) | +| 98 | [torchvision.transforms.functional.to_tensor](https://pytorch.org/vision/main/generated/torchvision.transforms.functional.to_tensor.html) | [paddle.vision.transforms.to_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/to_tensor_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torchvision.transforms.functional.to_tensor.html) | +| 99 | [torch.Tensor.bitwise\_right\_shift\_](https://pytorch.org/docs/stable/generated/torch.Tensor.bitwise_right_shift_.html#torch-tensor-bitwise-right-shift) | paddle.Tensor.bitwise_right_shift_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.bitwise_right_shift_.html) | +| 100 | [torch.nn.ConstantPad3d](https://pytorch.org/docs/stable/generated/torch.nn.ConstantPad3d.html?highlight=pad#torch.nn.ConstantPad3d) | [paddle.nn.Pad3D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Pad3D_cn.html#pad3d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.ConstantPad3d.html) | +| 101 | [torch.cpu.amp.autocast](https://pytorch.org/docs/stable/amp.html?highlight=autocast#torch.cpu.amp.autocast) | [paddle.amp.auto_cast](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/amp/auto_cast_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.cpu.amp.autocast.html) | +| 102 | [torch.Tensor.bitwise\_left\_shift](https://pytorch.org/docs/stable/generated/torch.Tensor.bitwise_left_shift.html#torch-tensor-bitwise-left-shift) | paddle.Tensor.bitwise_left_shift | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.bitwise_left_shift.html) | +| 103 | [torch.nn.AdaptiveAvgPool3d](https://pytorch.org/docs/stable/generated/torch.nn.AdaptiveAvgPool3d.html) | [paddle.nn.AdaptiveAvgPool3D](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/AdaptiveAvgPool3D_cn.html#adaptiveavgpool3d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.AdaptiveAvgPool3d.html) | +| 104 | [torch.cuda.BoolTensor](https://pytorch.org/docs/stable/tensors.html) | [paddle.to_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/to_tensor_cn.html#to-tensor) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.cuda.BoolTensor.html) | +| 105 | [torch.nn.PixelUnshuffle](https://pytorch.org/docs/stable/generated/torch.nn.PixelUnshuffle.html?highlight=pixel#torch.nn.PixelUnshuffle) | [paddle.nn.PixelUnshuffle](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/PixelUnshuffle_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.PixelUnshuffle.html) | +| 106 | [torch.Tensor.flipud](https://pytorch.org/docs/stable/generated/torch.Tensor.flipud.html?highlight=flipud#torch.Tensor.flipud) | [paddle.Tensor.flip](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#flip-axis-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.flipud.html) | +| 107 | [torch.Tensor.trace](https://pytorch.org/docs/stable/generated/torch.Tensor.trace.html#torch-tensor-trace) | [paddle.Tensor.trace](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#trace-offset-0-axis1-0-axis2-1-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.trace.html) | +| 108 | [torch.nn.functional.upsample_nearest](https://pytorch.org/docs/stable/generated/torch.nn.functional.upsample_nearest.html#torch.nn.functional.upsample_nearest) | [paddle.nn.functional.upsample](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/upsample_cn.html#upsample) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.upsample_nearest.html) | +| 109 | [torch.nn.ZeroPad2d](https://pytorch.org/docs/stable/generated/torch.nn.ZeroPad2d.html?highlight=zeropad#torch.nn.ZeroPad2d) | [paddle.nn.ZeroPad2D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/ZeroPad2D_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.ZeroPad2d.html) | +| 110 | [flash\_attn.ops.rms\_norm.rms\_norm](https://github.com/Dao-AILab/flash-attention/blob/d0787acc16c3667156b51ce5b01bdafc7594ed39/flash_attn/ops/rms_norm.py#L14) | [paddle.incubate.nn.functional.fused\_rms\_norm](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/incubate/nn/functional/fused_rms_norm_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/flash_attn.ops.rms_norm.rms_norm.html) | +| 111 | [torch.cov](https://pytorch.org/docs/stable/generated/torch.cov.html?highlight=cov#torch.cov) | [paddle.linalg.cov](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/cov_cn.html#cov) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.cov.html) | +| 112 | [torch.nn.functional.channel_shuffle](https://pytorch.org/docs/stable/generated/torch.nn.ChannelShuffle.html) | [paddle.nn.functional.channel_shuffle](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/channel_shuffle_cn.html#channel-shuffle) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.channel_shuffle.html) | +| 113 | [torch.Tensor.median](https://pytorch.org/docs/stable/generated/torch.Tensor.median.html) | [paddle.Tensor.median](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#median-axis-none-keepdim-false-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.median.html) | +| 114 | [torch.cuda.IntTensor](https://pytorch.org/docs/stable/tensors.html) | [paddle.to_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/to_tensor_cn.html#to-tensor) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.cuda.IntTensor.html) | +| 115 | [torchvision.ops.DeformConv2d](https://pytorch.org/vision/main/generated/torchvision.ops.DeformConv2d.html) | [paddle.vision.ops.DeformConv2D](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/ops/DeformConv2D_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torchvision.ops.DeformConv2d.html) | +| 116 | [torch.Tensor.nanmedian](https://pytorch.org/docs/stable/generated/torch.Tensor.nanmedian.html) | [paddle.Tensor.nanmedian](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#nanmedian-axis-none-keepdim-true-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.nanmedian.html) | +| 117 | [torch.nn.LazyConvTranspose3d](https://pytorch.org/docs/stable/generated/torch.nn.LazyConvTranspose3d.html) | [paddle.nn.Conv3DTranspose](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Conv3DTranspose_cn.html#conv3dtranspose) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.LazyConvTranspose3d.html) | +| 118 | [torch.count_nonzero](https://pytorch.org/docs/stable/generated/torch.count_nonzero.html?highlight=count_nonzero#torch.count_nonzero) | [paddle.count_nonzero](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/count_nonzero_cn.html#count-nonzero) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.count_nonzero.html) | +| 119 | [torch.cuda.amp.autocast](https://pytorch.org/docs/stable/amp.html#torch.cuda.amp.autocast) | [paddle.amp.auto_cast](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/amp/auto_cast_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.cuda.amp.autocast.html) | +| 120 | [torch.nn.functional.lp_pool2d](https://pytorch.org/docs/stable/generated/torch.nn.functional.lp_pool2d.html#torch.nn.functional.lp_pool2d) | [paddle.nn.functional.lp_pool2d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/lp_pool2d_cn.html#lp-pool2d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.lp_pool2d.html) | ### 5. 参数默认值不一致 **分类简介** @@ -84,7 +1091,12 @@ paddle.nn.Softplus(beta=0.5, threshold=15) | 序号 | Pytorch 最新 release | Paddle develop | 备注 | |------|-------------------|---------------|------| - +| 1 | [torch.alpha_dropout](https://pytorch.org/docs/master/generated/torch.nn.functional.alpha_dropout.html) | [paddle.nn.functional.alpha_dropout](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/alpha_dropout_cn.html#alpha-dropout) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_default_value_diff/torch.alpha_dropout.html) | +| 2 | [torch.linalg.diagonal](https://pytorch.org/docs/stable/generated/torch.linalg.diagonal.html#torch.linalg.diagonal) | [paddle.diagonal](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/diagonal_cn.html#diagonal) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_default_value_diff/torch.linalg.diagonal.html) | +| 3 | [torch.nn.functional.rrelu_](https://pytorch.org/docs/stable/generated/torch.nn.functional.rrelu_.html) | [paddle.nn.functional.rrelu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/rrelu_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_default_value_diff/torch.nn.functional.rrelu_.html) | +| 4 | [torch.nn.functional.threshold_](https://pytorch.org/docs/stable/generated/torch.nn.functional.threshold_.html#torch.nn.functional.threshold_) | [paddle.nn.functional.thresholded\_relu\_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/thresholded_relu__cn.html#thresholded-relu) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_default_value_diff/torch.nn.functional.threshold_.html) | +| 5 | [torch.rrelu](https://pytorch.org/docs/stable/generated/torch.nn.functional.rrelu.html#torch.nn.functional.rrelu) | [paddle.nn.functional.rrelu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/rrelu_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_default_value_diff/torch.rrelu.html) | +| 6 | [torch.cuda.amp.GradScaler](https://pytorch.org/docs/stable/amp.html#torch.cuda.amp.GradScaler) | [paddle.amp.GradScaler](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/amp/GradScaler_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_default_value_diff/torch.cuda.amp.GradScaler.html) | ### 6. torch 参数更多 **分类简介** @@ -93,6 +1105,402 @@ paddle.nn.Softplus(beta=0.5, threshold=15) | 序号 | Pytorch 最新 release | Paddle develop | 备注 | |------|-------------------|---------------|------| +| 1 | torch.clamp_min | [paddle.clip](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/clip_cn.html#clip) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.clamp_min.html) | +| 2 | [torch.randint_like](https://pytorch.org/docs/stable/generated/torch.randint_like.html?highlight=randint_like#torch.randint_like) | [paddle.randint_like](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/randint_like_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.randint_like.html) | +| 3 | [torch.distributed.init\_process\_group](https://pytorch.org/docs/stable/distributed.html?highlight=init_process#torch.distributed.init_process_group) | [paddle.distributed.init\_parallel\_env](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/init_parallel_env_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributed.init_process_group.html) | +| 4 | [torch.nn.functional.nll_loss](https://pytorch.org/docs/stable/generated/torch.nn.functional.nll_loss.html#torch-nn-functional-nll-loss) | [paddle.nn.functional.nll_loss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/nll_loss_cn.html#nll-loss) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.nll_loss.html) | +| 5 | [torch.distributions.transforms.SigmoidTransform](https://pytorch.org/docs/stable/distributions.html#torch.distributions.transforms.SigmoidTransform) | [paddle.distribution.SigmoidTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/SigmoidTransform_cn.html#sigmoidtransform) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.SigmoidTransform.html) | +| 6 | [torch.nn.functional.leaky_relu](https://pytorch.org/docs/stable/generated/torch.nn.functional.leaky_relu.html#torch.nn.functional.leaky_relu) | [paddle.nn.functional.leaky_relu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/leaky_relu_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.leaky_relu.html) | +| 7 | [torch.lerp](https://pytorch.org/docs/stable/generated/torch.lerp.html?highlight=lerp#torch.lerp) | [paddle.lerp](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/lerp_cn.html#lerp) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.lerp.html) | +| 8 | [torch.nn.Bilinear](https://pytorch.org/docs/stable/generated/torch.nn.Bilinear.html#torch.nn.Bilinear) | [paddle.nn.Bilinear](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Bilinear_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.Bilinear.html) | +| 9 | [torch.neg](https://pytorch.org/docs/stable/generated/torch.neg.html?highlight=neg#torch.neg) | [paddle.neg](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/neg_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.neg.html) | +| 10 | [torch.hamming_window](https://pytorch.org/docs/stable/generated/torch.hamming_window.html) | [paddle.audio.functional.get_window](https://www.paddlepaddle.org.cn/documentation/docs/zh/2.6/api/paddle/audio/functional/get_window_cn.html#get-window) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.hamming_window.html) | +| 11 | [torch.distributions.transformed_distribution.TransformedDistribution](https://pytorch.org/docs/stable/distributions.html#torch.distributions.transformed_distribution.TransformedDistribution) | [paddle.distribution.TransformedDistribution](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/TransformedDistribution_cn.html#transformeddistribution) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transformed_distribution.TransformedDistribution.html) | +| 12 | [torch.Tensor.type](https://pytorch.org/docs/stable/generated/torch.Tensor.type.html#torch.Tensor.type) | [paddle.Tensor.astype](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#astype-dtype) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.type.html) | +| 13 | [torch.Tensor.round](https://pytorch.org/docs/stable/generated/torch.Tensor.round.html#torch.Tensor.round) | [paddle.Tensor.round](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#round-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.round.html) | +| 14 | [torch.fft.fft](https://pytorch.org/docs/stable/generated/torch.fft.fft.html?highlight=fft#torch.fft.fft) | [paddle.fft.fft](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fft/fft_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.fft.fft.html) | +| 15 | [torch.std](https://pytorch.org/docs/stable/generated/torch.std.html) | [paddle.std](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/std_cn.html#std) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.std.html) | +| 16 | [torch.special.i1](https://pytorch.org/docs/stable/special.html#torch.special.i1) | [paddle.i1](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/i1_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.i1.html) | +| 17 | [torch.nn.functional.max_pool2d](https://pytorch.org/docs/stable/generated/torch.nn.functional.max_pool2d.html#torch.nn.functional.max_pool2d) | [paddle.nn.functional.max_pool2d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/max_pool2d_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.max_pool2d.html) | +| 18 | [torch.special.i0e](https://pytorch.org/docs/stable/special.html#torch.special.i0e) | [paddle.i0e](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/i0e_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.i0e.html) | +| 19 | [torch.blackman_window](https://pytorch.org/docs/stable/generated/torch.blackman_window.html) | [paddle.audio.functional.get_window](https://www.paddlepaddle.org.cn/documentation/docs/zh/2.6/api/paddle/audio/functional/get_window_cn.html#get-window) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.blackman_window.html) | +| 20 | [torch.nn.MultiLabelMarginLoss](https://pytorch.org/docs/stable/generated/torch.nn.MultiLabelMarginLoss.html#torch.nn.MultiLabelMarginLoss) | [paddle.nn.MultiLabelMarginLoss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/MultiLabelMarginLoss_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.MultiLabelMarginLoss.html) | +| 21 | [torch.logaddexp](https://pytorch.org/docs/stable/generated/torch.logaddexp.html#torch.logaddexp) | [paddle.logaddexp](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/logaddexp_cn.html#logaddexp) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.logaddexp.html) | +| 22 | [torch.cummax](https://pytorch.org/docs/stable/generated/torch.cummax.html?highlight=cummax#torch.cummax) | [paddle.cummax](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/cummax_cn.html#cummax) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.cummax.html) | +| 23 | [torch.nn.functional.max_pool3d](https://pytorch.org/docs/stable/generated/torch.nn.functional.max_pool3d.html#torch.nn.functional.max_pool3d) | [paddle.nn.functional.max_pool3d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/max_pool3d_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.max_pool3d.html) | +| 24 | [torch.amp.autocast](https://pytorch.org/docs/stable/amp.html#torch.cuda.amp.autocast) | [paddle.amp.auto_cast](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/amp/auto_cast_cn.html#auto-cast) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.amp.autocast.html) | +| 25 | [torch.jit.save](https://pytorch.org/docs/stable/generated/torch.jit.save.html#torch-jit-save) | [paddle.jit.save](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/jit/save_cn.html#cn-api-paddle-jit-save) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.jit.save.html) | +| 26 | [torch.cosh](https://pytorch.org/docs/stable/generated/torch.cosh.html#torch.cosh) | [paddle.cosh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/cosh_cn.html#cosh) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.cosh.html) | +| 27 | [torch.angle](https://pytorch.org/docs/stable/generated/torch.angle.html) | [paddle.angle](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/angle_cn.html#angle) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.angle.html) | +| 28 | [torch.isneginf](https://pytorch.org/docs/stable/generated/torch.isneginf.html#torch-isneginf) | [paddle.isneginf](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/isneginf_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.isneginf.html) | +| 29 | [torch.cross](https://pytorch.org/docs/stable/generated/torch.cross.html?highlight=cross#torch.cross) | [paddle.cross](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/cross_cn.html#cross) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.cross.html) | +| 30 | [torch.nn.functional.ctc_loss](https://pytorch.org/docs/stable/generated/torch.nn.functional.ctc_loss.html#torch.nn.functional.ctc_loss) | [paddle.nn.functional.ctc_loss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/ctc_loss_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.ctc_loss.html) | +| 31 | [torch.distributions.gamma.Gamma](https://pytorch.org/docs/stable/distributions.html#gamma) | [paddle.distribution.Gamma](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Gamma_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.gamma.Gamma.html) | +| 32 | [torch.utils.data.SubsetRandomSampler](https://pytorch.org/docs/stable/data.html#torch.utils.data.SubsetRandomSampler) | [paddle.io.SubsetRandomSampler](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/io/SubsetRandomSampler_cn.html#paddle.io.SubsetRandomSampler) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.utils.data.SubsetRandomSampler.html) | +| 33 | [torch.utils.cpp_extension.CUDAExtension](https://pytorch.org/docs/stable/cpp_extension.html?highlight=torch+utils+cpp_extension+cudaextension#torch.utils.cpp_extension.CUDAExtension) | [paddle.utils.cpp_extension.CUDAExtension](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/utils/cpp_extension/CUDAExtension_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.utils.cpp_extension.CUDAExtension.html) | +| 34 | [torch.special.round](https://pytorch.org/docs/stable/special.html#torch.special.round) | [paddle.round](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/round_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.round.html) | +| 35 | [torch.cholesky_inverse](https://pytorch.org/docs/stable/generated/torch.cholesky_inverse.html?highlight=cholesky_inverse#torch.cholesky_inverse) | [paddle.linalg.cholesky_inverse](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/cholesky_inverse_cn.html#cholesky-inverse) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.cholesky_inverse.html) | +| 36 | [torch.linalg.inv](https://pytorch.org/docs/stable/generated/torch.linalg.inv.html#torch.linalg.inv) | [paddle.linalg.inv](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/inv_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.inv.html) | +| 37 | [torch.max_pool2d](https://pytorch.org/docs/stable/jit_builtin_functions.html#supported-pytorch-functions) | [paddle.nn.functional.max_pool2d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/max_pool2d_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.max_pool2d.html) | +| 38 | [torch.copysign](https://pytorch.org/docs/stable/generated/torch.copysign.html#torch.copysign) | [paddle.copysign](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/copysign_cn.html#copysign) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.copysign.html) | +| 39 | [torch.nn.Dropout](https://pytorch.org/docs/stable/generated/torch.nn.Dropout.html?highlight=dropout#torch.nn.Dropout) | [paddle.nn.Dropout](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Dropout_cn.html#dropout) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.Dropout.html) | +| 40 | [torch.fft.hfft2](https://pytorch.org/docs/stable/generated/torch.fft.hfft2.html?highlight=torch+fft+hfft2#torch.fft.hfft2) | [paddle.fft.hfft2](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fft/hfft2_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.fft.hfft2.html) | +| 41 | [torch.cuda.comm.broadcast](https://pytorch.org/docs/stable/generated/torch.cuda.comm.broadcast.html#torch.cuda.comm.broadcast) | [paddle.distributed.broadcast](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/broadcast_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.cuda.comm.broadcast.html) | +| 42 | [torch.hub.list](https://pytorch.org/docs/stable/hub.html?highlight=hub+list#torch.hub.list) | [paddle.hub.list](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/hub/list_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.hub.list.html) | +| 43 | [torch.linalg.vecdot](https://pytorch.org/docs/stable/generated/torch.linalg.vecdot.html) | [paddle.linalg.vecdot](https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/tensor/linalg.py#L1881) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.vecdot.html) | +| 44 | [torch.square](https://pytorch.org/docs/stable/generated/torch.square.html?highlight=square#torch.square) | [paddle.square](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/square_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.square.html) | +| 45 | [torch.special.log1p](https://pytorch.org/docs/stable/special.html#torch.special.log1p) | [paddle.log1p](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/log1p_cn.html#log1p) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.log1p.html) | +| 46 | [torch.nn.functional.dropout2d](https://pytorch.org/docs/stable/generated/torch.nn.functional.dropout2d.html#torch.nn.functional.dropout2d) | [paddle.nn.functional.dropout2d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/dropout2d_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.dropout2d.html) | +| 47 | [torch.optim.SGD](https://pytorch.org/docs/stable/generated/torch.optim.SGD.html) | [paddle.optimizer.SGD](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/SGD_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.optim.SGD.html) | +| 48 | [torch.fft.irfft2](https://pytorch.org/docs/stable/generated/torch.fft.irfft2.html#torch-fft-irfft2) | [paddle.fft.irfft2](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fft/irfft2_cn.html#irfft2) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.fft.irfft2.html) | +| 49 | [torch.lu](https://pytorch.org/docs/stable/generated/torch.lu.html?highlight=lu#torch.lu) | [paddle.linalg.lu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/lu_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.lu.html) | +| 50 | [torch.quantile](https://pytorch.org/docs/stable/generated/torch.quantile.html?highlight=quantile#torch.quantile) | [paddle.quantile](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/quantile_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.quantile.html) | +| 51 | [torch.distributions.transforms.StackTransform](https://pytorch.org/docs/stable/distributions.html#torch.distributions.transforms.StackTransform) | [paddle.distribution.StackTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/StackTransform_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.StackTransform.html) | +| 52 | [torch.ormqr](https://pytorch.org/docs/stable/generated/torch.ormqr.html#torch.ormqr) | [paddle.linalg.ormqr](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/linalg/ormqr_cn.html#ormqr) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.ormqr.html) | +| 53 | [torch.linalg.svdvals](https://pytorch.org/docs/stable/generated/torch.linalg.svdvals.html#torch.linalg.svdvals) | [paddle.linalg.svdvals](https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/tensor/linalg.py#L3019) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.svdvals.html) | +| 54 | [torch.Tensor.index\_add\_](https://pytorch.org/docs/stable/generated/torch.Tensor.index_add_.html#torch.Tensor.index_add_) | paddle.Tensor.index_add_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.index_add_.html) | +| 55 | [torch.distributed.broadcast\_object\_list](https://pytorch.org/docs/stable/distributed.html?highlight=broadcast_object_list#torch.distributed.broadcast_object_list) | [paddle.distributed.broadcast\_object\_list](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/distributed/broadcast_object_list_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributed.broadcast_object_list.html) | +| 56 | [torch.nn.functional.rrelu](https://pytorch.org/docs/stable/generated/torch.nn.functional.rrelu.html#torch.nn.functional.rrelu) | [paddle.nn.functional.rrelu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/rrelu_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.rrelu.html) | +| 57 | [torch.linalg.cholesky](https://pytorch.org/docs/stable/generated/torch.linalg.cholesky.html?highlight=linalg+cholesky#torch.linalg.cholesky) | [paddle.linalg.cholesky](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/cholesky_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.cholesky.html) | +| 58 | [torch.Tensor.backward](https://pytorch.org/docs/stable/generated/torch.Tensor.backward.html#torch.Tensor.backward) | [paddle.Tensor.backward](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#backward-grad-tensor-none-retain-graph-false) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.backward.html) | +| 59 | [torch.nn.functional.cosine\_embedding\_loss](https://pytorch.org/docs/stable/generated/torch.nn.functional.cosine_embedding_loss.html#torch.nn.functional.cosine_embedding_loss) | [paddle.nn.functional.cosine\_embedding\_loss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/cosine_embedding_loss_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.cosine_embedding_loss.html) | +| 60 | [torch.nn.functional.feature\_alpha\_dropout](https://pytorch.org/docs/stable/generated/torch.nn.functional.feature_alpha_dropout.html) | [paddle.nn.functional.feature\_alpha\_dropout](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/functional/feature_alpha_dropout_cn.html#feature_alpha-dropout) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.feature_alpha_dropout.html) | +| 61 | [torch.cumprod](https://pytorch.org/docs/stable/generated/torch.cumprod.html?highlight=cumprod#torch.cumprod) | [paddle.cumprod](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/cumprod_cn.html#cumprod) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.cumprod.html) | +| 62 | [torch.autograd.functional.jacobian](https://pytorch.org/docs/stable/generated/torch.autograd.functional.jacobian.html#torch.autograd.functional.jacobian) | [paddle.incubate.autograd.Jacobian](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/incubate/autograd/Jacobian_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.autograd.functional.jacobian.html) | +| 63 | [torch.cummin](https://pytorch.org/docs/stable/generated/torch.cummin.html) | [paddle.cummin](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/cummin_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.cummin.html) | +| 64 | [torch.asinh](https://pytorch.org/docs/stable/generated/torch.asinh.html#torch.asinh) | [paddle.asinh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/asinh_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.asinh.html) | +| 65 | [torch.nn.LayerNorm](https://pytorch.org/docs/stable/generated/torch.nn.LayerNorm.html?highlight=layernorm#torch.nn.LayerNorm) | [paddle.nn.LayerNorm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/LayerNorm_cn.html#layernorm) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.LayerNorm.html) | +| 66 | [torch.distributions.transforms.PowerTransform](https://pytorch.org/docs/stable/distributions.html#torch.distributions.transforms.SigmoidTransform) | [paddle.distribution.PowerTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/PowerTransform_cn.html#powertransform) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.PowerTransform.html) | +| 67 | [torch.linalg.solve](https://pytorch.org/docs/stable/generated/torch.linalg.solve.html#torch.linalg.solve) | [paddle.linalg.solve](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/solve_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.solve.html) | +| 68 | [torch.utils.cpp_extension.CppExtension](https://pytorch.org/docs/stable/cpp_extension.html?highlight=torch+utils+cpp_extension+cppextension#torch.utils.cpp_extension.CppExtension) | [paddle.utils.cpp_extension.CppExtension](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/utils/cpp_extension/CppExtension_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.utils.cpp_extension.CppExtension.html) | +| 69 | [torch.hypot](https://pytorch.org/docs/stable/generated/torch.hypot.html#torch.hypot) | [paddle.hypot](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/hypot_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.hypot.html) | +| 70 | [torch.nextafter](https://pytorch.org/docs/stable/generated/torch.nextafter.html?highlight=nextafter#torch.nextafter) | [paddle.nextafter](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nextafter_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nextafter.html) | +| 71 | [torch.fmod](https://pytorch.org/docs/stable/generated/torch.fmod.html?highlight=fmod#torch.fmod) | [paddle.mod](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/mod_cn.html#mod) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.fmod.html) | +| 72 | [torch.fix](https://pytorch.org/docs/stable/generated/torch.fix.html?highlight=torch+fix#torch.fix) | [paddle.trunc](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/trunc_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.fix.html) | +| 73 | [torch.distributions.beta.Beta](https://pytorch.org/docs/stable/distributions.html#torch.distributions.beta.Beta) | [paddle.distribution.Beta](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Beta_cn.html#beta) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.beta.Beta.html) | +| 74 | [torch.lgamma](https://pytorch.org/docs/stable/generated/torch.lgamma.html?highlight=lgamma#torch.lgamma) | [paddle.lgamma](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/lgamma_cn.html#lgamma) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.lgamma.html) | +| 75 | [torch.nn.GroupNorm](https://pytorch.org/docs/stable/generated/torch.nn.GroupNorm.html?highlight=groupnorm#torch.nn.GroupNorm) | [paddle.nn.GroupNorm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/GroupNorm_cn.html#groupnorm) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.GroupNorm.html) | +| 76 | [torch.autograd.grad](https://pytorch.org/docs/stable/generated/torch.autograd.grad.html#torch.autograd.grad) | [paddle.grad](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/grad_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.autograd.grad.html) | +| 77 | [torch.distributions.transforms.Transform](https://pytorch.org/docs/stable/distributions.html#torch.distributions.transforms.Transform) | [paddle.distribution.Transform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Transform_cn.html#transform) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.Transform.html) | +| 78 | [torch.linalg.solve_triangular](https://pytorch.org/docs/stable/generated/torch.linalg.solve_triangular.html?highlight=torch+linalg+solve_triangular#torch.linalg.solve_triangular) | [paddle.linalg.triangular_solve](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/triangular_solve_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.solve_triangular.html) | +| 79 | [torch.nn.BCEWithLogitsLoss](https://pytorch.org/docs/stable/generated/torch.nn.BCEWithLogitsLoss.html#bcewithlogitsloss) | [paddle.nn.BCEWithLogitsLoss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/BCEWithLogitsLoss_cn.html#bcewithlogitsloss) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.BCEWithLogitsLoss.html) | +| 80 | [fairscale.nn.model_parallel.layers.RowParallelLinear](https://github.com/facebookresearch/fairscale/blob/164cc0f3170b4a3951dd84dda29c3e1504ac4d6e/fairscale/nn/model_parallel/layers.py#L299) | [paddle.distributed.fleet.meta_parallel.RowParallelLinear](https://github.com/PaddlePaddle/Paddle/blob/016766cc89fabc10181453ce70b701dd8ed019f6/python/paddle/distributed/fleet/layers/mpu/mp_layers.py#L291) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/fairscale.nn.model_parallel.layers.RowParallelLinear.html) | +| 81 | [torch.nn.ELU](https://pytorch.org/docs/stable/generated/torch.nn.ELU.html?highlight=elu#torch.nn.ELU) | [paddle.nn.ELU](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/ELU_cn.html#elu) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.ELU.html) | +| 82 | [torch.jit.load](https://pytorch.org/docs/stable/generated/torch.jit.load.html#torch.jit.load) | [paddle.jit.load](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/jit/load_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.jit.load.html) | +| 83 | [torch.nn.NLLLoss](https://pytorch.org/docs/stable/generated/torch.nn.NLLLoss.html?highlight=nllloss#torch.nn.NLLLoss) | [paddle.nn.NLLLoss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/NLLLoss_cn.html#nllloss) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.NLLLoss.html) | +| 84 | [torch.nn.functional.multilabel\_margin\_loss](https://pytorch.org/docs/stable/generated/torch.nn.functional.multilabel_margin_loss.html) | [paddle.nn.functional.multi\_label\_margin\_loss](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/functional/multi_label_margin_loss_cn.html#multi-label-margin-loss) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.multilabel_margin_loss.html) | +| 85 | [torch.atan2](https://pytorch.org/docs/stable/generated/torch.atan2.html#torch.atan2) | [paddle.atan2](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/atan2_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.atan2.html) | +| 86 | [torch.acosh](https://pytorch.org/docs/stable/generated/torch.acosh.html?highlight=acosh#torch.acosh) | [paddle.acosh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/acosh_cn.html#acos) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.acosh.html) | +| 87 | [torch.optim.ASGD](https://pytorch.org/docs/stable/generated/torch.optim.ASGD.html) | [paddle.optimizer.ASGD](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/ASGD_cn.html#cn-api-paddle-optimizer-asgd) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.optim.ASGD.html) | +| 88 | [torch.distributions.transforms.SoftmaxTransform](https://pytorch.org/docs/stable/distributions.html#torch.distributions.transforms.SoftmaxTransform) | [paddle.distribution.SoftmaxTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/SoftmaxTransform_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.SoftmaxTransform.html) | +| 89 | [transformers.GenerationConfig](https://hf-mirror.com/docs/transformers/v4.42.0/en/main_classes/text_generation#transformers.GenerationConfig) | [paddlenlp.generation.GenerationConfig](https://github.com/PaddlePaddle/PaddleNLP/blob/e336e78c338d2514ee6c937982ce5d8c960b85ff/paddlenlp/generation/configuration_utils.py#L62) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/transformers.GenerationConfig.html) | +| 90 | [torch.linalg.householder_product](https://pytorch.org/docs/stable/generated/torch.linalg.householder_product.html#torch.linalg.householder_product) | [paddle.linalg.householder_product](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/householder_product_cn.html#householder-product) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.householder_product.html) | +| 91 | [torch.special.erf](https://pytorch.org/docs/stable/special.html?highlight=torch+special+erf#torch.special.erf) | [paddle.erf](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/erf_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.erf.html) | +| 92 | [torch.inverse](https://pytorch.org/docs/stable/generated/torch.inverse.html?highlight=inverse#torch.inverse) | [paddle.linalg.inv](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/inv_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.inverse.html) | +| 93 | [torch.signal.windows.general_cosine](https://pytorch.org/docs/stable/generated/torch.signal.windows.general_cosine.html) | [paddle.audio.functional.get_window](https://www.paddlepaddle.org.cn/documentation/docs/zh/2.6/api/paddle/audio/functional/get_window_cn.html#get-window) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.signal.windows.general_cosine.html) | +| 94 | [torch.distributions.log_normal.LogNormal](https://pytorch.org/docs/stable/distributions.html#torch.distributions.log_normal.LogNormal) | [paddle.distribution.LogNormal](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/LogNormal_cn.html#lognormal) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.log_normal.LogNormal.html) | +| 95 | [torch.distributed.P2POp](https://pytorch.org/docs/stable/distributed.html#torch.distributed.P2POp) | [paddle.distributed.P2POp](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/Overview_cn.html#paddle-distributed) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributed.P2POp.html) | +| 96 | [torch.distributions.bernoulli.Bernoulli](https://pytorch.org/docs/stable/distributions.html#torch.distributions.bernoulli.Bernoulli) | [paddle.distribution.Bernoulli](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Bernoulli_cn.html#bernoulli) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.bernoulli.Bernoulli.html) | +| 97 | [torch.special.sinc](https://pytorch.org/docs/stable/special.html#torch.special.sinc) | [paddle.sinc](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sinc_cn.html#sinc) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.sinc.html) | +| 98 | [torch.nn.InstanceNorm3d](https://pytorch.org/docs/stable/generated/torch.nn.InstanceNorm3d.html#torch.nn.InstanceNorm3d) | [paddle.nn.InstanceNorm3D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/InstanceNorm3D_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.InstanceNorm3d.html) | +| 99 | [torch.nn.functional.l1_loss](https://pytorch.org/docs/stable/generated/torch.nn.functional.l1_loss.html?highlight=l1_loss#torch.nn.functional.l1_loss) | [paddle.nn.functional.l1_loss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/l1_loss_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.l1_loss.html) | +| 100 | [torch.Tensor.numpy](https://pytorch.org/docs/stable/generated/torch.Tensor.numpy.html?highlight=numpy#torch.Tensor.numpy) | [paddle.Tensor.numpy](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#numpy) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.numpy.html) | +| 101 | [torch.linalg.det](https://pytorch.org/docs/stable/generated/torch.linalg.det.html#torch.linalg.det) | [paddle.linalg.det](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/det_cn.html#det) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.det.html) | +| 102 | [torch.linspace](https://pytorch.org/docs/stable/generated/torch.linspace.html?highlight=linspace#torch.linspace) | [paddle.linspace](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linspace_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linspace.html) | +| 103 | [torch.nn.functional.margin\_ranking\_loss](https://pytorch.org/docs/stable/generated/torch.nn.functional.margin_ranking_loss.html?highlight=margin_ranking_loss#torch.nn.functional.margin_ranking_loss) | [paddle.nn.functional.margin\_ranking\_loss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/margin_ranking_loss_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.margin_ranking_loss.html) | +| 104 | [torch.nn.functional.normalize](https://pytorch.org/docs/stable/generated/torch.nn.functional.normalize.html?highlight=normalize#torch.nn.functional.normalize) | [paddle.nn.functional.normalize](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/normalize_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.normalize.html) | +| 105 | [torch.distributions.binomial.Binomial](https://pytorch.org/docs/stable/distributions.html#torch.distributions.binomial.Binomial) | [paddle.distribution.Binomial](https://www.paddlepaddle.org.cn/documentation/docs/zh/2.6/api/paddle/distribution/Binomial_cn.html#binomial) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.binomial.Binomial.html) | +| 106 | [torch.Tensor.log\_normal\_](https://pytorch.org/docs/stable/generated/torch.Tensor.log_normal_.html#torch-tensor-log-normal) | [paddle.Tensor.log\_normal\_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#log_normal-mean-1-0-std-2-0-shape-none-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.log_normal_.html) | +| 107 | [torch.optim.RMSprop](https://pytorch.org/docs/stable/generated/torch.optim.RMSprop.html) | [paddle.optimizer.RMSProp](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/RMSProp_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.optim.RMSprop.html) | +| 108 | torch.scalar_tensor | [paddle.to_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/to_tensor_cn.html#to-tensor) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.scalar_tensor.html) | +| 109 | [torch.distributions.laplace.Laplace](https://pytorch.org/docs/stable/distributions.html#torch.distributions.laplace.Laplace) | [paddle.distribution.Laplace](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Laplace_cn.html#laplace) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.laplace.Laplace.html) | +| 110 | [torch.distributed.new_group](https://pytorch.org/docs/stable/distributed.html#torch.distributed.new_group) | [paddle.distributed.new_group](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/new_group_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributed.new_group.html) | +| 111 | [torch.distributions.lkj_cholesky.LKJCholesky](https://pytorch.org/docs/stable/distributions.html#torch.distributions.lkj_cholesky.LKJCholesky) | [paddle.distribution.LKJCholesky](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/distribution/LKJCholesky_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.lkj_cholesky.LKJCholesky.html) | +| 112 | [torch.utils.data.DataLoader](https://pytorch.org/docs/stable/data.html?highlight=dataloader#torch.utils.data.DataLoader) | [paddle.io.DataLoader](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/io/DataLoader_cn.html#dataloader) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.utils.data.DataLoader.html) | +| 113 | [torch.distributions.cauchy.Cauchy](https://pytorch.org/docs/stable/distributions.html#torch.distributions.cauchy.Cauchy) | [paddle.distribution.Cauchy](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Cauchy_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.cauchy.Cauchy.html) | +| 114 | [torch.linalg.matrix_norm](https://pytorch.org/docs/stable/generated/torch.linalg.matrix_norm.html#torch.linalg.matrix_norm) | [paddle.linalg.matrix_norm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/matrix_norm_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.matrix_norm.html) | +| 115 | [torch.isposinf](https://pytorch.org/docs/stable/generated/torch.isposinf.html#torch-isposinf) | [paddle.isposinf](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/isposinf_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.isposinf.html) | +| 116 | [torch.index_add](https://pytorch.org/docs/stable/generated/torch.index_add.html#torch.index_add) | [paddle.index_add](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/index_add_cn.html#index-add) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.index_add.html) | +| 117 | [torch.acos](https://pytorch.org/docs/stable/generated/torch.acos.html?highlight=acos#torch.acos) | [paddle.acos](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/acos_cn.html#acos) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.acos.html) | +| 118 | [torch.randint](https://pytorch.org/docs/stable/generated/torch.randint.html?highlight=randint#torch.randint) | [paddle.randint](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/randint_cn.html#randint) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.randint.html) | +| 119 | [torch.linalg.cross](https://pytorch.org/docs/stable/generated/torch.linalg.cross.html?highlight=torch+linalg+cross#torch.linalg.cross) | [paddle.cross](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/cross_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.cross.html) | +| 120 | [torch.nn.functional.scaled\_dot\_product\_attention](https://pytorch.org/docs/stable/generated/torch.nn.functional.scaled_dot_product_attention.html#torch-nn-functional-scaled-dot-product-attention) | [paddle.nn.functional.scaled\_dot\_product\_attention](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/scaled_dot_product_attention_cn.html#scaled-dot-product-attention) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.scaled_dot_product_attention.html) | +| 121 | [torch.nn.functional.max_pool1d](https://pytorch.org/docs/stable/generated/torch.nn.functional.max_pool1d.html#torch.nn.functional.max_pool1d) | [paddle.nn.functional.max_pool1d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/max_pool1d_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.max_pool1d.html) | +| 122 | [torch.Tensor.index_add](https://pytorch.org/docs/stable/generated/torch.Tensor.index_add.html#torch.Tensor.index_add) | paddle.Tensor.index_add | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.index_add.html) | +| 123 | [torch.mv](https://pytorch.org/docs/stable/generated/torch.mv.html?highlight=torch+mv#torch.mv) | [paddle.mv](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/mv_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.mv.html) | +| 124 | [torch.Tensor.new_tensor](https://pytorch.org/docs/stable/generated/torch.Tensor.new_tensor.html#torch-tensor-new-tensor) | [paddle.to_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/to_tensor_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.new_tensor.html) | +| 125 | [torch.vdot](https://pytorch.org/docs/stable/generated/torch.vdot.html#torch.vdot) | [paddle.dot](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/dot_cn.html#dot) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.vdot.html) | +| 126 | [torch.fft.fftn](https://pytorch.org/docs/stable/generated/torch.fft.fftn.html?highlight=fftn#torch.fft.fftn) | [paddle.fft.fftn](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fft/fftn_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.fft.fftn.html) | +| 127 | [fairscale.nn.model_parallel.layers.ColumnParallelLinear](https://github.com/facebookresearch/fairscale/blob/164cc0f3170b4a3951dd84dda29c3e1504ac4d6e/fairscale/nn/model_parallel/layers.py#L218) | [paddle.distributed.fleet.meta_parallel.ColumnParallelLinear](https://github.com/PaddlePaddle/Paddle/blob/016766cc89fabc10181453ce70b701dd8ed019f6/python/paddle/distributed/fleet/layers/mpu/mp_layers.py#L153) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/fairscale.nn.model_parallel.layers.ColumnParallelLinear.html) | +| 128 | [torch.nn.Dropout3d](https://pytorch.org/docs/stable/generated/torch.nn.Dropout3d.html?highlight=dropout3d#torch.nn.Dropout3d) | [paddle.nn.Dropout3D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Dropout3D_cn.html#dropout3d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.Dropout3d.html) | +| 129 | [torchvision.ops.RoIAlign](https://pytorch.org/vision/main/generated/torchvision.ops.RoIAlign.html) | [paddle.vision.ops.RoIAlign](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/ops/RoIAlign_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torchvision.ops.RoIAlign.html) | +| 130 | [torch.distributed.recv](https://pytorch.org/docs/stable/distributed.html#torch.distributed.recv) | [paddle.distributed.recv](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/recv_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributed.recv.html) | +| 131 | [torch.distributions.studentT.StudentT](https://pytorch.org/docs/stable/distributions.html#studentt) | [paddle.distribution.StudentT](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/distribution/StudentT_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.studentT.StudentT.html) | +| 132 | [torch.nn.functional.mish](https://pytorch.org/docs/stable/generated/torch.nn.functional.mish.html?highlight=torch+nn+functional+mish#torch.nn.functional.mish) | [paddle.nn.functional.mish](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/mish_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.mish.html) | +| 133 | [torch.fft.rfftfreq](https://pytorch.org/docs/stable/generated/torch.fft.rfftfreq.html?highlight=rfftfreq#torch.fft.rfftfreq) | [paddle.fft.rfftfreq](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fft/rfftfreq_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.fft.rfftfreq.html) | +| 134 | [transformers.AddedToken](https://github.com/huggingface/transformers/blob/d625294d79341662784495551abdf45e6cb9372f/src/transformers/tokenization_utils_base.py#L84) | [paddlenlp.transformers.AddedToken](https://github.com/PaddlePaddle/PaddleNLP/blob/e336e78c338d2514ee6c937982ce5d8c960b85ff/paddlenlp/transformers/tokenizer_utils_base.py#L48) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/transformers.AddedToken.html) | +| 135 | [torch.nn.FractionalMaxPool3d](https://pytorch.org/docs/stable/generated/torch.nn.FractionalMaxPool3d.html#fractionalmaxpool3d) | [paddle.nn.FractionalMaxPool3D](https://www.paddlepaddle.org.cn/documentation/docs/en/develop/api/paddle/nn/FractionalMaxPool3D_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.FractionalMaxPool3d.html) | +| 136 | [torch.optim.RAdam](https://pytorch.org/docs/stable/generated/torch.optim.RAdam.html#torch.optim.RAdam) | [paddle.optimizer.RAdam](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/RAdam_cn.html#radam) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.optim.RAdam.html) | +| 137 | [torch.distributions.continuous_bernoulli.ContinuousBernoulli](https://pytorch.org/docs/stable/distributions.html) | [paddle.distribution.ContinuousBernoulli](https://www.paddlepaddle.org.cn/documentation/docs/zh/2.6/api/paddle/distribution/ContinuousBernoulli_cn.html#continuousbernoulli) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.continuous_bernoulli.ContinuousBernoulli.html) | +| 138 | [torch.negative](https://pytorch.org/docs/stable/generated/torch.negative.html?highlight=torch+negative#torch.negative) | [paddle.neg](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/neg_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.negative.html) | +| 139 | [torch.nn.Module.register\_forward\_pre\_hook](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.register_forward_pre_hook) | [paddle.nn.Layer.register\_forward\_pre\_hook](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#register-forward-pre-hook-hook) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.Module.register_forward_pre_hook.html) | +| 140 | [torch.special.erfinv](https://pytorch.org/docs/stable/special.html#torch.special.erfinv) | [paddle.erfinv](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/erfinv_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.erfinv.html) | +| 141 | [torch.special.polygamma](https://pytorch.org/docs/stable/special.html#torch.special.polygamma) | [paddle.polygamma](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/polygamma_cn.html#paddle.polygamma) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.polygamma.html) | +| 142 | [torch.bernoulli](https://pytorch.org/docs/stable/generated/torch.bernoulli.html#torch.bernoulli) | [paddle.bernoulli](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/bernoulli_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.bernoulli.html) | +| 143 | [torch.distributions.multinomial.Multinomial](https://pytorch.org/docs/stable/distributions.html#torch.distributions.multinomial.Multinomial) | [paddle.distribution.Multinomial](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Multinomial_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.multinomial.Multinomial.html) | +| 144 | [torch.inner](https://pytorch.org/docs/stable/generated/torch.inner.html?highlight=inner#torch.inner) | [paddle.inner](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/inner_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.inner.html) | +| 145 | [torch.fft.irfft](https://pytorch.org/docs/stable/generated/torch.fft.irfft.html#torch-fft-irfft) | [paddle.fft.irfft](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fft/irfft_cn.html#irfft) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.fft.irfft.html) | +| 146 | [torch.nn.functional.celu](https://pytorch.org/docs/stable/generated/torch.nn.functional.celu.html#torch.nn.functional.celu) | [paddle.nn.functional.celu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/celu_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.celu.html) | +| 147 | [torch.bucketize](https://pytorch.org/docs/stable/generated/torch.bucketize.html#torch.bucketize) | [paddle.bucketize](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/bucketize_cn.html#paddle-bucketize) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.bucketize.html) | +| 148 | [torch.nn.Mish](https://pytorch.org/docs/stable/generated/torch.nn.Mish.html?highlight=torch+nn+mish) | [paddle.nn.Mish](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Mish_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.Mish.html) | +| 149 | [torch.distributions.dirichlet.Dirichlet](https://pytorch.org/docs/stable/distributions.html#torch.distributions.dirichlet.Dirichlet) | [paddle.distribution.Dirichlet](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Dirichlet_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.dirichlet.Dirichlet.html) | +| 150 | [torch.nan\_to\_num](https://pytorch.org/docs/stable/generated/torch.nan_to_num.html?highlight=nan_to_num#torch.nan_to_num) | [paddle.nan\_to\_num](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nan_to_num_cn.html#nan-to-num) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nan_to_num.html) | +| 151 | [torch.fft.ifft2](https://pytorch.org/docs/stable/generated/torch.fft.ifft2.html?highlight=ifft2#torch.fft.ifft2) | [paddle.fft.ifft2](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fft/ifft2_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.fft.ifft2.html) | +| 152 | [torch.fft.hfft](https://pytorch.org/docs/stable/generated/torch.fft.hfft.html?highlight=hfft#torch.fft.hfft) | [paddle.fft.hfft](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fft/hfft_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.fft.hfft.html) | +| 153 | [torch.signal.windows.general_hamming](https://pytorch.org/docs/stable/generated/torch.signal.windows.general_hamming.html) | [paddle.audio.functional.get_window](https://www.paddlepaddle.org.cn/documentation/docs/zh/2.6/api/paddle/audio/functional/get_window_cn.html#get-window) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.signal.windows.general_hamming.html) | +| 154 | [torch.triu_indices](https://pytorch.org/docs/stable/generated/torch.triu_indices.html?highlight=triu_indices#torch.triu_indices) | [paddle.triu_indices](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/triu_indices_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.triu_indices.html) | +| 155 | [torch.logspace](https://pytorch.org/docs/stable/generated/torch.logspace.html?highlight=logspace#torch.logspace) | [paddle.logspace](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/logspace_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.logspace.html) | +| 156 | [torch.set_printoptions](https://pytorch.org/docs/stable/generated/torch.set_printoptions.html?highlight=torch+set_printoptions#torch.set_printoptions) | [paddle.set_printoptions](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/set_printoptions_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.set_printoptions.html) | +| 157 | [torch.nn.Hardswish](https://pytorch.org/docs/stable/generated/torch.nn.Hardswish.html#torch.nn.Hardswish) | [paddle.nn.Hardswish](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Hardswish_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.Hardswish.html) | +| 158 | [torch.autograd.backward](https://pytorch.org/docs/stable/generated/torch.autograd.backward.html#torch.autograd.backward) | [paddle.autograd.backward](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/autograd/backward_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.autograd.backward.html) | +| 159 | [torch.nn.Module.load\_state\_dict](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.load_state_dict) | [paddle.nn.Layer.set\_state\_dict](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#set-state-dict-state-dict-use-structured-name-true) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.Module.load_state_dict.html) | +| 160 | [torch.signal.windows.hann](https://pytorch.org/docs/stable/generated/torch.signal.windows.hann.html) | [paddle.audio.functional.get_window](https://www.paddlepaddle.org.cn/documentation/docs/zh/2.6/api/paddle/audio/functional/get_window_cn.html#get-window) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.signal.windows.hann.html) | +| 161 | [torch.save](https://pytorch.org/docs/stable/generated/torch.save.html?highlight=save#torch.save) | [paddle.save](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/save_cn.html#save) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.save.html) | +| 162 | [torch.autograd.functional.hessian](https://pytorch.org/docs/stable/generated/torch.autograd.functional.hessian.html#torch.autograd.functional.hessian) | [paddle.incubate.autograd.Hessian](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/incubate/autograd/Hessian_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.autograd.functional.hessian.html) | +| 163 | [torch.fmax](https://pytorch.org/docs/stable/generated/torch.fmax.html#torch.fmax) | [paddle.fmax](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fmax_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.fmax.html) | +| 164 | [torch.linalg.svd](https://pytorch.org/docs/stable/generated/torch.linalg.svd.html?highlight=svd#torch.linalg.svd) | [paddle.linalg.svd](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/svd_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.svd.html) | +| 165 | [torch.nn.functional.triplet\_margin\_loss](https://pytorch.org/docs/stable/generated/torch.nn.functional.triplet_margin_loss.html?highlight=triplet_margin_loss#torch.nn.functional.triplet_margin_loss) | [paddle.nn.functional.triplet\_margin\_loss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/triplet_margin_loss_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.triplet_margin_loss.html) | +| 166 | [torch.nn.functional.fractional\_max\_pool3d](https://pytorch.org/docs/stable/generated/torch.nn.functional.fractional_max_pool3d.html#torch-nn-functional-fractional-max-pool3d) | [paddle.nn.functional.fractional\_max\_pool3d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/fractional_max_pool3d_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.fractional_max_pool3d.html) | +| 167 | [torch.special.psi](https://pytorch.org/docs/stable/special.html#torch.special.psi) | [paddle.digamma](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/special.digamma_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.psi.html) | +| 168 | [torch.baddbmm](https://pytorch.org/docs/stable/generated/torch.baddbmm.html?highlight=baddbmm#torch.baddbmm) | [paddle.baddbmm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/baddbmm_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.baddbmm.html) | +| 169 | [torch.linalg.eigvalsh](https://pytorch.org/docs/stable/generated/torch.linalg.eigvalsh.html#torch.linalg.eigvalsh) | [paddle.linalg.eigvalsh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/eigvalsh_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.eigvalsh.html) | +| 170 | [torch.nn.functional.binary\_cross\_entropy](https://pytorch.org/docs/stable/generated/torch.nn.functional.binary_cross_entropy.html) | [paddle.nn.functional.binary\_cross\_entropy](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/functional/binary_cross_entropy_cn.html#binary-cross-entropy) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.binary_cross_entropy.html) | +| 171 | [torch.deg2rad](https://pytorch.org/docs/stable/generated/torch.deg2rad.html#torch-deg2rad) | [paddle.deg2rad](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/deg2rad_cn.html#paddle.deg2rad) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.deg2rad.html) | +| 172 | [torch.fft.fftfreq](https://pytorch.org/docs/stable/generated/torch.fft.fftfreq.html?highlight=fftfreq#torch.fft.fftfreq) | [paddle.fft.fftfreq](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fft/fftfreq_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.fft.fftfreq.html) | +| 173 | [torch.nn.functional.hardswish](https://pytorch.org/docs/stable/generated/torch.nn.functional.hardswish.html#torch.nn.functional.hardswish) | [paddle.nn.functional.hardswish](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/hardswish_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.hardswish.html) | +| 174 | [torch.nn.PoissonNLLLoss](https://pytorch.org/docs/stable/generated/torch.nn.PoissonNLLLoss) | [paddle.nn.PoissonNLLLoss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/PoissonNLLLoss_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.PoissonNLLLoss.html) | +| 175 | [torch.Tensor.round_](https://pytorch.org/docs/stable/generated/torch.Tensor.round_.html#torch.Tensor.round_) | [paddle.Tensor.round_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#round-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.round_.html) | +| 176 | [torch.nn.functional.poisson\_nll\_loss](https://pytorch.org/docs/stable/generated/torch.nn.functional.poisson_nll_loss.html) | [paddle.nn.functional.poisson\_nll\_loss](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/functional/poisson_nll_loss_cn.html#poisson-nll-loss) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.poisson_nll_loss.html) | +| 177 | [torch.distributions.exp_family.ExponentialFamily](https://pytorch.org/docs/stable/distributions.html#torch.distributions.exp_family.ExponentialFamily) | [paddle.distribution.ExponentialFamily](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/ExponentialFamily_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.exp_family.ExponentialFamily.html) | +| 178 | [torch.nn.MaxPool1d](https://pytorch.org/docs/stable/generated/torch.nn.MaxPool1d.html?highlight=maxpool1d#torch.nn.MaxPool1d) | [paddle.nn.MaxPool1D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/MaxPool1D_cn.html#maxpool1d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.MaxPool1d.html) | +| 179 | [torch.distributed.rpc.init_rpc](https://pytorch.org/docs/stable/rpc.html#torch.distributed.rpc.init_rpc) | [paddle.distributed.rpc.init_rpc](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/rpc/init_rpc_cn.html#init-rpc) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributed.rpc.init_rpc.html) | +| 180 | [torch.nn.FractionalMaxPool2d](https://pytorch.org/docs/stable/generated/torch.nn.FractionalMaxPool2d.html#fractionalmaxpool2d) | [paddle.nn.FractionalMaxPool2D](https://www.paddlepaddle.org.cn/documentation/docs/en/develop/api/paddle/nn/FractionalMaxPool2D_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.FractionalMaxPool2d.html) | +| 181 | [flash\_attn.flash\_attn\_interface.flash\_attn\_func](https://github.com/Dao-AILab/flash-attention/blob/72e27c6320555a37a83338178caa25a388e46121/flash_attn/flash_attn_interface.py#L808) | [paddle.nn.functional.flash\_attention.flash\_attention](https://github.com/PaddlePaddle/Paddle/blob/900d27c40ef4567d7ea6342f3f0eedd394885ecb/python/paddle/nn/functional/flash_attention.py#L248) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/flash_attn.flash_attn_interface.flash_attn_func.html) | +| 182 | [torch.gcd](https://pytorch.org/docs/stable/generated/torch.gcd.html#torch-gcd) | [paddle.gcd](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/gcd_cn.html#gcd) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.gcd.html) | +| 183 | [torch.optim.NAdam](https://pytorch.org/docs/stable/generated/torch.optim.NAdam.html#torch.optim.NAdam) | [paddle.optimizer.NAdam](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/NAdam_cn.html#nadam) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.optim.NAdam.html) | +| 184 | [torch.trunc](https://pytorch.org/docs/stable/generated/torch.trunc.html?highlight=torch+trunc#torch.trunc) | [paddle.trunc](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/trunc_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.trunc.html) | +| 185 | [torch.Tensor.unique](https://pytorch.org/docs/stable/generated/torch.Tensor.unique.html?highlight=unique#torch.Tensor.unique) | [paddle.Tensor.unique](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#unique-return-index-false-return-inverse-false-return-counts-false-axis-none-dtype-int64-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.unique.html) | +| 186 | [torch.nn.Hardtanh](https://pytorch.org/docs/stable/generated/torch.nn.Hardtanh.html#torch.nn.Hardtanh) | [paddle.nn.Hardtanh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Hardtanh_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.Hardtanh.html) | +| 187 | [torch.nn.AdaptiveLogSoftmaxWithLoss](https://pytorch.org/docs/stable/generated/torch.nn.AdaptiveLogSoftmaxWithLoss.html#adaptivelogsoftmaxwithloss) | [paddle.nn.AdaptiveLogSoftmaxWithLoss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/AdaptiveLogSoftmaxWithLoss_cn.html#adaptivelogsoftmaxwithloss) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.AdaptiveLogSoftmaxWithLoss.html) | +| 188 | [torch.qr](https://pytorch.org/docs/stable/generated/torch.qr.html#torch.qr) | [paddle.linalg.qr](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/qr_cn.html#qr) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.qr.html) | +| 189 | [torch.ldexp](https://pytorch.org/docs/stable/generated/torch.ldexp.html#torch.ldexp) | [paddle.ldexp](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/ldexp_cn.html#ldexp) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.ldexp.html) | +| 190 | [torch.profiler.profile](https://pytorch.org/docs/stable/profiler.html#torch.profiler.profile) | [paddle.profiler.Profiler](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/profiler/Profiler_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.profiler.profile.html) | +| 191 | [torch.distributions.categorical.Categorical](https://pytorch.org/docs/stable/distributions.html#torch.distributions.categorical.Categorical) | [paddle.distribution.Categorical](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Categorical_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.categorical.Categorical.html) | +| 192 | [torch.signal.windows.exponential](https://pytorch.org/docs/stable/generated/torch.signal.windows.exponential.html) | [paddle.audio.functional.get_window](https://www.paddlepaddle.org.cn/documentation/docs/zh/2.6/api/paddle/audio/functional/get_window_cn.html#get-window) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.signal.windows.exponential.html) | +| 193 | [torch.asin](https://pytorch.org/docs/stable/generated/torch.asin.html#torch.asin) | [paddle.asin](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/asin_cn.html#asin) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.asin.html) | +| 194 | [torch.fft.rfft](https://pytorch.org/docs/stable/generated/torch.fft.rfft.html#torch-fft-rfft) | [paddle.fft.rfft](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fft/rfft_cn.html#rfft) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.fft.rfft.html) | +| 195 | [torch.hub.help](https://pytorch.org/docs/stable/hub.html?highlight=hub+help#torch.hub.help) | [paddle.hub.help](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/hub/help_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.hub.help.html) | +| 196 | [torch.utils.data.distributed.DistributedSampler](https://docs.pytorch.org/docs/stable/data.html#torch.utils.data.distributed.DistributedSampler) | [paddle.io.DistributedBatchSampler](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/io/DistributedBatchSampler_cn.html#distributedbatchsampler) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.utils.data.distributed.DistributedSampler.html) | +| 197 | [torch.distributed.monitored_barrier](https://pytorch.org/docs/stable/distributed.html#torch.distributed.monitored_barrier) | [paddle.distributed.barrier](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/barrier_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributed.monitored_barrier.html) | +| 198 | [torch.nn.utils.clip\_grad\_value\_](https://pytorch.org/docs/stable/generated/torch.nn.utils.clip_grad_value_.html?highlight=clip_grad_value_#torch.nn.utils.clip_grad_value_) | [paddle.nn.utils.clip\_grad\_value\_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/utils/clip_grad_value__cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.utils.clip_grad_value_.html) | +| 199 | [torch.unique](https://pytorch.org/docs/stable/generated/torch.unique.html?highlight=unique#torch.unique) | [paddle.unique](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/unique_cn.html#unique) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.unique.html) | +| 200 | [torch.signbit](https://pytorch.org/docs/stable/generated/torch.signbit.html#torch-signbit) | [paddle.signbit](https://github.com/PaddlePaddle/Paddle/blob/9ce3a54f456011c664c70fbcd318f2e1af0a7d81/python/paddle/tensor/math.py#L7175) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.signbit.html) | +| 201 | [torch.distributions.transforms.ReshapeTransform](https://pytorch.org/docs/stable/distributions.html#torch.distributions.transforms.ReshapeTransform) | [paddle.distribution.ReshapeTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/ReshapeTransform_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.ReshapeTransform.html) | +| 202 | [torch.nn.Transformer](https://pytorch.org/docs/stable/generated/torch.nn.Transformer.html#torch.nn.Transformer) | [paddle.nn.Transformer](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Transformer_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.Transformer.html) | +| 203 | [torch.nn.functional.selu](https://pytorch.org/docs/stable/generated/torch.nn.functional.selu.html#torch.nn.functional.selu) | [paddle.nn.functional.selu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/selu_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.selu.html) | +| 204 | [torch.svd](https://pytorch.org/docs/stable/generated/torch.svd.html?highlight=torch+svd#torch.svd) | [paddle.linalg.svd](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/svd_cn.html#svd) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.svd.html) | +| 205 | [torch.atan](https://pytorch.org/docs/stable/generated/torch.atan.html#torch.atan) | [paddle.atan](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/atan_cn.html#atan) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.atan.html) | +| 206 | [torch.distributions.gumbel.Gumbel](https://pytorch.org/docs/stable/distributions.html#torch.distributions.gumbel.Gumbel) | [paddle.distribution.Gumbel](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Gumbel_cn.html#gumbel) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.gumbel.Gumbel.html) | +| 207 | [torch.nn.LeakyReLU](https://pytorch.org/docs/stable/generated/torch.nn.LeakyReLU.html?highlight=leakyrelu#torch.nn.LeakyReLU) | [paddle.nn.LeakyReLU](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/LeakyReLU_cn.html#leakyrelu) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.LeakyReLU.html) | +| 208 | [torch.normal](https://pytorch.org/docs/stable/generated/torch.normal.html#torch.normal) | [paddle.normal](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/normal_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.normal.html) | +| 209 | [torch.nanmean](https://pytorch.org/docs/stable/generated/torch.nanmean.html?highlight=nanmean#torch.nanmean) | [paddle.nanmean](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nanmean_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nanmean.html) | +| 210 | [torch.searchsorted](https://pytorch.org/docs/stable/generated/torch.searchsorted.html#torch-searchsorted) | [paddle.searchsorted](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/searchsorted_cn.html#searchsorted) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.searchsorted.html) | +| 211 | [torch.Tensor.nanmean](https://pytorch.org/docs/stable/generated/torch.Tensor.nanmean.html?highlight=nanmean#torch.Tensor.nanmean) | [paddle.Tensor.nanmean](暂无对应文档) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.nanmean.html) | +| 212 | [torch.fft.ihfft2](https://pytorch.org/docs/stable/generated/torch.fft.ihfft2.html?highlight=torch+fft+ihfft2#torch.fft.ihfft2) | [paddle.fft.ihfft2](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fft/ihfft2_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.fft.ihfft2.html) | +| 213 | [torch.nn.TransformerEncoder](https://pytorch.org/docs/stable/generated/torch.nn.TransformerEncoder.html#torch.nn.TransformerEncoder) | [paddle.nn.TransformerEncoder](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/TransformerEncoder_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.TransformerEncoder.html) | +| 214 | [torch.nn.functional.gumbel_softmax](https://pytorch.org/docs/stable/generated/torch.nn.functional.gumbel_softmax.html#torch.nn.functional.gumbel_softmax) | [paddle.nn.functional.gumbel_softmax](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/gumbel_softmax_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.gumbel_softmax.html) | +| 215 | [torch.distributed.isend](https://pytorch.org/docs/stable/distributed.html#torch.distributed.isend) | [paddle.distributed.isend](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/distributed/isend_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributed.isend.html) | +| 216 | [torch.nn.SmoothL1Loss](https://pytorch.org/docs/stable/generated/torch.nn.SmoothL1Loss.html?highlight=smoothl1loss#torch.nn.SmoothL1Loss) | [paddle.nn.SmoothL1Loss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/SmoothL1Loss_cn.html#smoothl1loss) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.SmoothL1Loss.html) | +| 217 | [torch.linalg.qr](https://pytorch.org/docs/stable/generated/torch.linalg.qr.html#torch.linalg.qr) | [paddle.linalg.qr](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/qr_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.qr.html) | +| 218 | [torch.special.multigammaln](https://pytorch.org/docs/stable/special.html#torch.special.multigammaln) | [paddle.multigammaln](https://github.com/PaddlePaddle/Paddle/blob/be090bd0bc9ac7a8595296c316b3a6ed3dc60ba6/python/paddle/tensor/math.py#L5099) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.multigammaln.html) | +| 219 | [torch.distributions.transforms.AbsTransform](https://pytorch.org/docs/stable/distributions.html#torch.distributions.transforms.AbsTransform) | [paddle.distribution.AbsTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/AbsTransform_cn.html#paddle.distribution.AbsTransform) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.AbsTransform.html) | +| 220 | [torch.autocast](https://pytorch.org/docs/stable/amp.html?highlight=autocast#torch.autocast) | [paddle.amp.auto_cast](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/amp/auto_cast_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.autocast.html) | +| 221 | [torch.fft.hfftn](https://pytorch.org/docs/stable/generated/torch.fft.hfftn.html?highlight=torch+fft+hfftn#torch.fft.hfftn) | [paddle.fft.hfftn](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fft/hfftn_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.fft.hfftn.html) | +| 222 | [torch.nn.functional.kl_div](https://pytorch.org/docs/stable/generated/torch.nn.functional.kl_div.html?highlight=kl_div#torch.nn.functional.kl_div) | [paddle.nn.functional.kl_div](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/kl_div_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.kl_div.html) | +| 223 | [torch.sparse\_csr\_tensor](https://pytorch.org/docs/stable/generated/torch.sparse_csr_tensor.html#torch.sparse_csr_tensor) | [paddle.sparse.sparse\_csr\_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sparse/sparse_csr_tensor_cn.html#sparse-csr-tensor) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.sparse_csr_tensor.html) | +| 224 | [torch.nn.functional.cross_entropy](https://pytorch.org/docs/stable/generated/torch.nn.functional.cross_entropy.html?highlight=cross_#torch.nn.functional.cross_entropy) | [paddle.nn.functional.cross_entropy](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/cross_entropy_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.cross_entropy.html) | +| 225 | [torch.distributions.normal.Normal](https://pytorch.org/docs/stable/distributions.html#torch.distributions.normal.Normal) | [paddle.distribution.Normal](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Normal_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.normal.Normal.html) | +| 226 | [torch.nn.functional.hardtanh](https://pytorch.org/docs/stable/generated/torch.nn.functional.hardtanh.html#torch.nn.functional.hardtanh) | [paddle.nn.functional.hardtanh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/hardtanh_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.hardtanh.html) | +| 227 | [torch.optim.Adamax](https://pytorch.org/docs/stable/generated/torch.optim.Adamax.html) | [paddle.optimizer.Adamax](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/Adamax_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.optim.Adamax.html) | +| 228 | [torch.nn.MultiLabelSoftMarginLoss](https://pytorch.org/docs/stable/generated/torch.nn.MultiLabelSoftMarginLoss.html#torch.nn.MultiLabelSoftMarginLoss) | [paddle.nn.MultiLabelSoftMarginLoss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/MultiLabelSoftMarginLoss_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.MultiLabelSoftMarginLoss.html) | +| 229 | [torch.Tensor.resize_](https://pytorch.org/docs/stable/generated/torch.Tensor.resize_.html) | [paddle.Tensor.resize_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#resize-shape-fill-zero-false-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.resize_.html) | +| 230 | [torch.distributions.transforms.ExpTransform](https://pytorch.org/docs/stable/distributions.html#torch.distributions.transforms.ExpTransform) | [paddle.distribution.ExpTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/ExpTransform_cn.html#exptransform) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.ExpTransform.html) | +| 231 | [torch.nn.CosineEmbeddingLoss](https://pytorch.org/docs/stable/generated/torch.nn.CosineEmbeddingLoss.html#torch.nn.CosineEmbeddingLoss) | [paddle.nn.CosineEmbeddingLoss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/CosineEmbeddingLoss_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.CosineEmbeddingLoss.html) | +| 232 | [torch.distributions.chi2.Chi2](https://pytorch.org/docs/stable/distributions.html#chi2) | [paddle.distribution.Chi2](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Chi2_cn.html#prob-value) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.chi2.Chi2.html) | +| 233 | [torch.signal.windows.hamming](https://pytorch.org/docs/stable/generated/torch.signal.windows.hamming.html) | [paddle.audio.functional.get_window](https://www.paddlepaddle.org.cn/documentation/docs/zh/2.6/api/paddle/audio/functional/get_window_cn.html#get-window) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.signal.windows.hamming.html) | +| 234 | [torch.abs](https://pytorch.org/docs/stable/generated/torch.abs.html?highlight=abs#torch.abs) | [paddle.abs](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/abs_cn.html#abs) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.abs.html) | +| 235 | [torch.atanh](https://pytorch.org/docs/stable/generated/torch.atanh.html#torch.atanh) | [paddle.atanh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/atanh_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.atanh.html) | +| 236 | [torch.autograd.functional.vjp](https://pytorch.org/docs/stable/generated/torch.autograd.functional.vjp.html#torch.autograd.functional.vjp) | [paddle.incubate.autograd.vjp](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/incubate/autograd/vjp_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.autograd.functional.vjp.html) | +| 237 | [torch.lu_unpack](https://pytorch.org/docs/stable/generated/torch.lu_unpack.html?highlight=lu_unpack#torch.lu_unpack) | [paddle.linalg.lu_unpack](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/lu_unpack_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.lu_unpack.html) | +| 238 | [torch.fft.ihfftn](https://pytorch.org/docs/stable/generated/torch.fft.ihfftn.html?highlight=torch+fft+ihfftn#torch.fft.ihfftn) | [paddle.fft.ihfftn](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fft/ihfftn_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.fft.ihfftn.html) | +| 239 | [torch.Tensor.geometric_](https://pytorch.org/docs/stable/generated/torch.Tensor.geometric_.html) | [paddle.Tensor.geometric_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.geometric_.html) | +| 240 | [torch.distributed.barrier](https://pytorch.org/docs/stable/distributed.html?highlight=barrier#torch.distributed.barrier) | [paddle.distributed.barrier](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/barrier_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributed.barrier.html) | +| 241 | [torch.linalg.eigvals](https://pytorch.org/docs/stable/generated/torch.linalg.eigvals.html?highlight=torch+linalg+eigvals#torch.linalg.eigvals) | [paddle.linalg.eigvals](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/eigvals_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.eigvals.html) | +| 242 | [torch.max_pool1d](https://pytorch.org/docs/stable/jit_builtin_functions.html#supported-pytorch-functions) | [paddle.nn.functional.max_pool1d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/max_pool1d_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.max_pool1d.html) | +| 243 | [torch.utils.cpp_extension.load](https://pytorch.org/docs/stable/cpp_extension.html?highlight=torch+utils+cpp_extension+load#torch.utils.cpp_extension.load) | [paddle.utils.cpp_extension.load](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/utils/cpp_extension/load_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.utils.cpp_extension.load.html) | +| 244 | [torch.exp](https://pytorch.org/docs/stable/generated/torch.exp.html?highlight=torch+exp#torch.exp) | [paddle.exp](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/exp_cn.html#exp) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.exp.html) | +| 245 | [torch.stft](https://pytorch.org/docs/stable/generated/torch.stft.html?highlight=stft#torch.stft) | [paddle.signal.stft](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/signal/stft_cn.html#paddle.signal.stft) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.stft.html) | +| 246 | [torch.distributions.uniform.Uniform](https://pytorch.org/docs/stable/distributions.html#torch.distributions.uniform.Uniform) | [paddle.distribution.Uniform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Uniform_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.uniform.Uniform.html) | +| 247 | [torch.logcumsumexp](https://pytorch.org/docs/stable/generated/torch.logcumsumexp.html#torch-logcumsumexp) | [paddle.logcumsumexp](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/logcumsumexp_cn.html#logcumsumexp) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.logcumsumexp.html) | +| 248 | [torch.optim.Adam](https://pytorch.org/docs/stable/generated/torch.optim.Adam.html) | [paddle.optimizer.Adam](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/Adam_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.optim.Adam.html) | +| 249 | [torch.nn.MaxPool3d](https://pytorch.org/docs/stable/generated/torch.nn.MaxPool3d.html?highlight=maxpool3d#torch.nn.MaxPool3d) | [paddle.nn.MaxPool3D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/MaxPool3D_cn.html#maxpool3d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.MaxPool3d.html) | +| 250 | [torch.nn.SELU](https://pytorch.org/docs/stable/generated/torch.nn.SELU.html#torch.nn.SELU) | [paddle.nn.SELU](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/SELU_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.SELU.html) | +| 251 | [torch.Tensor.symeig](https://pytorch.org/docs/stable/generated/torch.Tensor.symeig.html#torch.Tensor.symeig) | [paddle.linalg.eigh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/eigh_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.symeig.html) | +| 252 | [torch.signal.windows.gaussian](https://pytorch.org/docs/stable/generated/torch.signal.windows.gaussian.html) | [paddle.audio.functional.get_window](https://www.paddlepaddle.org.cn/documentation/docs/zh/2.6/api/paddle/audio/functional/get_window_cn.html#get-window) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.signal.windows.gaussian.html) | +| 253 | [torch.linalg.pinv](https://pytorch.org/docs/stable/generated/torch.linalg.pinv.html#torch.linalg.pinv) | [paddle.linalg.pinv](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/pinv_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.pinv.html) | +| 254 | [torch.distributions.transforms.StickBreakingTransform](https://pytorch.org/docs/stable/distributions.html#torch.distributions.transforms.StickBreakingTransform) | [paddle.distribution.StickBreakingTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/StickBreakingTransform_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.StickBreakingTransform.html) | +| 255 | [torch.nn.functional.log_softmax](https://pytorch.org/docs/stable/generated/torch.nn.functional.log_softmax.html#torch.nn.functional.log_softmax) | [paddle.nn.functional.log_softmax](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/log_softmax_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.log_softmax.html) | +| 256 | [torch.nn.parallel.DistributedDataParallel](https://pytorch.org/docs/stable/generated/torch.nn.parallel.DistributedDataParallel.html#torch.nn.parallel.DistributedDataParallel) | [paddle.DataParallel](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/DataParallel_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.parallel.DistributedDataParallel.html) | +| 257 | [torch.signal.windows.blackman](https://pytorch.org/docs/stable/generated/torch.signal.windows.blackman.html) | [paddle.audio.functional.get_window](https://www.paddlepaddle.org.cn/documentation/docs/zh/2.6/api/paddle/audio/functional/get_window_cn.html#get-window) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.signal.windows.blackman.html) | +| 258 | [torch.jit.ignore](https://pytorch.org/docs/stable/generated/torch.jit.ignore.html#torch-jit-ignore) | [paddle.jit.not\_to\_static](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/jit/not_to_static_cn.html#not-to-static) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.jit.ignore.html) | +| 259 | [torch.distributed.send](https://pytorch.org/docs/stable/distributed.html#torch.distributed.send) | [paddle.distributed.send](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/send_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributed.send.html) | +| 260 | [torch.fft.irfftn](https://pytorch.org/docs/stable/generated/torch.fft.irfftn.html?highlight=irfftn#torch.fft.irfftn) | [paddle.fft.irfftn](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fft/irfftn_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.fft.irfftn.html) | +| 261 | [torch.fft.ihfft](https://pytorch.org/docs/stable/generated/torch.fft.ihfft.html?highlight=ihfft#torch.fft.ihfft) | [paddle.fft.ihfft](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fft/ihfft_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.fft.ihfft.html) | +| 262 | [torch.renorm](https://pytorch.org/docs/stable/generated/torch.renorm.html#torch-renorm) | paddle.renorm | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.renorm.html) | +| 263 | [torch.randn_like](https://pytorch.org/docs/stable/generated/torch.randn_like.html#torch.randn_like) | [paddle.randn_like](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/randn_like_cn.html#randn_like) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.randn_like.html) | +| 264 | [torch.distributed.rpc.shutdown](https://pytorch.org/docs/stable/rpc.html#torch.distributed.rpc.shutdown) | [paddle.distributed.rpc.shutdown](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/rpc/shutdown_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributed.rpc.shutdown.html) | +| 265 | [torch.optim.Adagrad](https://pytorch.org/docs/stable/generated/torch.optim.Adagrad.html) | [paddle.optimizer.Adagrad](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/Adagrad_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.optim.Adagrad.html) | +| 266 | [torch.nn.TransformerEncoderLayer](https://pytorch.org/docs/stable/generated/torch.nn.TransformerEncoderLayer.html#torch.nn.TransformerEncoderLayer) | [paddle.nn.TransformerEncoderLayer](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/TransformerEncoderLayer_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.TransformerEncoderLayer.html) | +| 267 | [torch.log1p](https://pytorch.org/docs/stable/generated/torch.log1p.html?highlight=log1p#torch.log1p) | [paddle.log1p](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/log1p_cn.html#log1p) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.log1p.html) | +| 268 | [torch.Tensor.exponential_](https://pytorch.org/docs/stable/generated/torch.Tensor.exponential_.html#torch.Tensor.exponential_) | [paddle.Tensor.exponential_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#exponential-lam-1-0-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.exponential_.html) | +| 269 | [torch.special.gammaincc](https://pytorch.org/docs/stable/special.html#torch.special.gammaincc) | [paddle.gammaincc](https://www.paddlepaddle.org.cn/documentation/docs/zh/2.6/api/index_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.gammaincc.html) | +| 270 | [torch.nn.SoftMarginLoss](https://pytorch.org/docs/stable/generated/torch.nn.SoftMarginLoss.html#torch.nn.SoftMarginLoss) | [paddle.nn.SoftMarginLoss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/SoftMarginLoss_cn.html#softmarginloss) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.SoftMarginLoss.html) | +| 271 | [torch.jit.script](https://pytorch.org/docs/stable/generated/torch.jit.script.html#torch-jit-script) | [paddle.jit.to_static](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/jit/to_static_cn.html#paddle.jit.to_static) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.jit.script.html) | +| 272 | [torch.onnx.export](https://pytorch.org/docs/stable/onnx.html#torch.onnx.export) | [paddle.onnx.export](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/onnx/export_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.onnx.export.html) | +| 273 | [torch.load](https://pytorch.org/docs/stable/generated/torch.load.html?highlight=load#torch.load) | [paddle.load](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/load_cn.html#load) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.load.html) | +| 274 | [torch.nn.functional.elu](https://pytorch.org/docs/stable/generated/torch.nn.functional.elu.html#torch.nn.functional.elu) | [paddle.nn.functional.elu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/elu_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.elu.html) | +| 275 | [torch.hann_window](https://pytorch.org/docs/stable/generated/torch.hann_window.html) | [paddle.audio.functional.get_window](https://www.paddlepaddle.org.cn/documentation/docs/zh/2.6/api/paddle/audio/functional/get_window_cn.html#get-window) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.hann_window.html) | +| 276 | [torch.hub.download\_url\_to\_file](https://pytorch.org/docs/stable/hub.html?highlight=download#torch.hub.download_url_to_file) | [paddle.utils.download.get\_weights\_path\_from\_url](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/utils/download/get_weights_path_from_url_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.hub.download_url_to_file.html) | +| 277 | [torch.fft.fft2](https://pytorch.org/docs/stable/generated/torch.fft.fft2.html?highlight=fft2#torch.fft.fft2) | [paddle.fft.fft2](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fft/fft2_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.fft.fft2.html) | +| 278 | [torch.linalg.matrix_power](https://pytorch.org/docs/stable/generated/torch.linalg.matrix_power.html?highlight=torch+linalg+matrix_power#torch.linalg.matrix_power) | [paddle.linalg.matrix_power](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/matrix_power_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.matrix_power.html) | +| 279 | [torch.hub.load\_state\_dict\_from\_url](https://pytorch.org/docs/stable/hub.html#torch.hub.load_state_dict_from_url) | [paddle.hub.load\_state\_dict\_from\_url](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/hub/load_state_dict_from_url_cn.html#load-state-dict-from-url) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.hub.load_state_dict_from_url.html) | +| 280 | [torch.fft.rfft2](https://pytorch.org/docs/stable/generated/torch.fft.rfft2.html) | [paddle.fft.rfft2](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fft/rfft2_cn.html#rfft2) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.fft.rfft2.html) | +| 281 | [torch.fmin](https://pytorch.org/docs/stable/generated/torch.fmin.html#torch.fmin) | [paddle.fmin](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fmin_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.fmin.html) | +| 282 | [torch.mode](https://pytorch.org/docs/stable/generated/torch.mode.html) | [paddle.mode](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/mode_cn.html#mode) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.mode.html) | +| 283 | [torch.distributions.exponential.Exponential](https://pytorch.org/docs/stable/distributions.html#torch.distributions.exponential.Exponential.arg_constraints) | [paddle.distribution.Exponential](https://www.paddlepaddle.org.cn/documentation/docs/zh/2.6/api/paddle/distribution/ExponentialFamily_cn.html#exponential) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.exponential.Exponential.html) | +| 284 | [torch.distributions.multivariate_normal.MultivariateNormal](https://pytorch.org/docs/stable/distributions.html#multivariatenormal) | [paddle.distribution.MultivariateNormal](https://www.paddlepaddle.org.cn/documentation/docs/zh/2.6/api/paddle/distribution/MultivariateNormal_cn.html#multivariatenormal) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.multivariate_normal.MultivariateNormal.html) | +| 285 | [torch.addmm](https://pytorch.org/docs/stable/generated/torch.addmm.html?highlight=addmm#torch.addmm) | [paddle.addmm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/addmm_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.addmm.html) | +| 286 | [torch.Tensor.bernoulli_](https://pytorch.org/docs/stable/generated/torch.Tensor.bernoulli_.html#torch.Tensor.bernoulli_) | [paddle.Tensor.bernoulli_](https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/tensor/tensor.py) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.bernoulli_.html) | +| 287 | [torch.log10](https://pytorch.org/docs/stable/generated/torch.log10.html?highlight=log10#torch.log10) | [paddle.log10](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/log10_cn.html#log10) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.log10.html) | +| 288 | [torch.nn.modules.batchnorm._BatchNorm](https://pytorch.org/docs/stable/_modules/torch/nn/modules/batchnorm.html) | [paddle.nn.layer.norm._BatchNormBase](https://github.com/PaddlePaddle/Paddle/blob/b51d50bc9ee9eaa5cefa18507195b239e4513194/python/paddle/nn/layer/norm.py#L701) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.modules.batchnorm._BatchNorm.html) | +| 289 | [torch.Tensor.to\_sparse\_csr](https://pytorch.org/docs/stable/generated/torch.Tensor.to_sparse_csr.html#torch-tensor-to-sparse-csr) | [paddle.Tensor.to\_sparse\_csr](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#tensor) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.to_sparse_csr.html) | +| 290 | [torch.distributions.geometric.Geometric](https://pytorch.org/docs/stable/distributions.html#torch.distributions.geometric.Geometric) | [paddle.distribution.Geometric](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Geometric_cn.html#geometric) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.geometric.Geometric.html) | +| 291 | [torch.special.logit](https://pytorch.org/docs/stable/special.html#torch.special.logit) | [paddle.logit](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/logit_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.logit.html) | +| 292 | [torch.sgn](https://pytorch.org/docs/stable/generated/torch.sgn.html?highlight=torch+sgn#torch.sgn) | [paddle.sgn](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sgn_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.sgn.html) | +| 293 | [torchvision.transforms.functional.normalize](https://pytorch.org/vision/stable/generated/torchvision.transforms.functional.normalize.html) | [paddle.vision.transforms.normalize](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/transforms/normalize_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torchvision.transforms.functional.normalize.html) | +| 294 | [torch.distributions.transforms.ComposeTransform](https://pytorch.org/docs/stable/distributions.html#torch.distributions.transforms.ComposeTransform) | [paddle.distribution.ChainTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/ChainTransform_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.ComposeTransform.html) | +| 295 | [torch.special.i0](https://pytorch.org/docs/stable/special.html#torch.special.i0) | [paddle.i0](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/i0_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.i0.html) | +| 296 | [torch.Tensor.multinomial](https://pytorch.org/docs/stable/generated/torch.Tensor.multinomial.html#torch.Tensor.multinomial) | paddle.Tensor.multinomial | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.multinomial.html) | +| 297 | [torch.nn.DataParallel](https://pytorch.org/docs/stable/generated/torch.nn.DataParallel.html?highlight=dataparallel#torch.nn.DataParallel) | [paddle.DataParallel](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/DataParallel_cn.html#dataparallel) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.DataParallel.html) | +| 298 | [torch.nn.Module.register\_forward\_hook](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.register_forward_hook) | [paddle.nn.Layer.register\_forward\_post\_hook](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#register-forward-post-hook-hook) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.Module.register_forward_hook.html) | +| 299 | [torch.linalg.cond](https://pytorch.org/docs/stable/generated/torch.linalg.cond.html#torch.linalg.cond) | [paddle.linalg.cond](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/linalg/cond_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.cond.html) | +| 300 | [torch.nn.functional.relu](https://pytorch.org/docs/stable/generated/torch.nn.functional.relu.html#torch.nn.functional.relu) | [paddle.nn.functional.relu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/relu_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.relu.html) | +| 301 | [torch.nn.functional.hinge\_embedding\_loss](https://pytorch.org/docs/stable/generated/torch.nn.functional.hinge_embedding_loss.html#torch.nn.functional.hinge_embedding_loss) | [paddle.nn.functional.hinge\_embedding\_loss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/hinge_embedding_loss_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.hinge_embedding_loss.html) | +| 302 | [torch.nn.TransformerDecoderLayer](https://pytorch.org/docs/stable/generated/torch.nn.TransformerDecoderLayer.html?highlight=transformerdecoderlayer#torch.nn.TransformerDecoderLayer) | [paddle.nn.TransformerDecoderLayer](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/TransformerDecoderLayer_cn.html#transformerdecoderlayer) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.TransformerDecoderLayer.html) | +| 303 | [torch.tril_indices](https://pytorch.org/docs/stable/generated/torch.tril_indices.html?highlight=tril_indices#torch.tril_indices) | [paddle.tril_indices](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/tril_indices_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.tril_indices.html) | +| 304 | [torch.nn.CELU](https://pytorch.org/docs/stable/generated/torch.nn.CELU.html#torch.nn.CELU) | [paddle.nn.CELU](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/CELU_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.CELU.html) | +| 305 | [torch.distributions.transforms.AffineTransform](https://pytorch.org/docs/stable/distributions.html#torch.distributions.transforms.AffineTransform) | [paddle.distribution.AffineTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/AffineTransform_cn.html#affinetransform) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.AffineTransform.html) | +| 306 | [torch.signal.windows.cosine](https://pytorch.org/docs/stable/generated/torch.signal.windows.cosine.html) | [paddle.audio.functional.get_window](https://www.paddlepaddle.org.cn/documentation/docs/zh/2.6/api/paddle/audio/functional/get_window_cn.html#get-window) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.signal.windows.cosine.html) | +| 307 | [torch.optim.Rprop](https://pytorch.org/docs/stable/generated/torch.optim.Rprop.html) | [paddle.optimizer.Rprop](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/Rprop_cn.html#cn-api-paddle-optimizer-rprop) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.optim.Rprop.html) | +| 308 | [torch.multiprocessing.spawn](https://pytorch.org/docs/stable/multiprocessing.html#torch.multiprocessing.spawn) | [paddle.distributed.spawn](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/spawn_cn.html#spawn) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.multiprocessing.spawn.html) | +| 309 | [torch.cholesky](https://pytorch.org/docs/stable/generated/torch.cholesky.html?highlight=cholesky#torch.cholesky) | [paddle.linalg.cholesky](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/cholesky_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.cholesky.html) | +| 310 | [torch.frac](https://pytorch.org/docs/stable/generated/torch.frac.html?highlight=frac#torch.frac) | [paddle.frac](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/frac_cn.html#frac) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.frac.html) | +| 311 | [torch.distributed.irecv](https://pytorch.org/docs/stable/distributed.html?highlight=send#torch.distributed.irecv) | [paddle.distributed.irecv](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/distributed/irecv_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributed.irecv.html) | +| 312 | [torch.nn.MultiMarginLoss](https://pytorch.org/docs/stable/generated/torch.nn.MultiMarginLoss) | [paddle.nn.MultiMarginLoss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/MultiMarginLoss_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.MultiMarginLoss.html) | +| 313 | [torch.nn.Dropout2d](https://pytorch.org/docs/stable/generated/torch.nn.Dropout2d.html?highlight=dropout2d#torch.nn.Dropout2d) | [paddle.nn.Dropout2D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Dropout2D_cn.html#dropout2d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.Dropout2d.html) | +| 314 | [torch.nn.SyncBatchNorm.convert\_sync\_batchnorm](https://pytorch.org/docs/stable/generated/torch.nn.SyncBatchNorm.html?highlight=convert_sync_batchnorm#torch.nn.SyncBatchNorm.convert_sync_batchnorm) | [paddle.nn.SyncBatchNorm.convert\_sync\_batchnorm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/SyncBatchNorm_cn.html#convert-sync-batchnorm-layer) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.SyncBatchNorm.convert_sync_batchnorm.html) | +| 315 | [torch.nn.utils.clip\_grad\_norm\_](https://pytorch.org/docs/stable/generated/torch.nn.utils.clip_grad_norm_.html?highlight=clip_grad_norm_#torch.nn.utils.clip_grad_norm_) | [paddle.nn.utils.clip\_grad\_norm\_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/utils/clip_grad_norm__cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.utils.clip_grad_norm_.html) | +| 316 | [torch.rad2deg](https://pytorch.org/docs/stable/generated/torch.rad2deg.html?highlight=torch+rad2deg#torch.rad2deg) | [paddle.rad2deg](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/rad2deg_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.rad2deg.html) | +| 317 | [torch.fft.ifftn](https://pytorch.org/docs/stable/generated/torch.fft.ifftn.html?highlight=ifftn#torch.fft.ifftn) | [paddle.fft.ifftn](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fft/ifftn_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.fft.ifftn.html) | +| 318 | [torch.frexp](https://pytorch.org/docs/stable/generated/torch.frexp.html?highlight=frexp#torch.frexp) | [paddle.frexp](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/frexp_cn.html#frexp) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.frexp.html) | +| 319 | [torchvision.transforms.Normalize](https://pytorch.org/vision/main/generated/torchvision.transforms.Normalize.html) | [paddle.vision.transforms.Normalize](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/Normalize__upper_cn.html#normalize) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torchvision.transforms.Normalize.html) | +| 320 | [torch.distributions.independent.Independent](https://pytorch.org/docs/stable/distributions.html#torch.distributions.independent.Independent) | [paddle.distribution.Independent](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Independent_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.independent.Independent.html) | +| 321 | [torch.nn.AlphaDropout](https://pytorch.org/docs/stable/generated/torch.nn.AlphaDropout.html#torch.nn.AlphaDropout) | [paddle.nn.AlphaDropout](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/AlphaDropout_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.AlphaDropout.html) | +| 322 | [torch.nn.functional.binary\_cross\_entropy\_with\_logits](https://pytorch.org/docs/stable/generated/torch.nn.functional.binary_cross_entropy_with_logits.html?highlight=binary_cross_entropy_with_logits#torch.nn.functional.binary_cross_entropy_with_logits) | [paddle.nn.functional.binary\_cross\_entropy\_with\_logits](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/binary_cross_entropy_with_logits_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.binary_cross_entropy_with_logits.html) | +| 323 | [torch.special.i1e](https://pytorch.org/docs/stable/special.html#torch.special.i1e) | [paddle.i1e](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/i1e_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.i1e.html) | +| 324 | [torch.nn.CTCLoss](https://pytorch.org/docs/stable/generated/torch.nn.CTCLoss.html#torch.nn.CTCLoss) | [paddle.nn.CTCLoss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/CTCLoss_cn.html#ctcloss) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.CTCLoss.html) | +| 325 | [torch.nn.functional.fractional\_max\_pool2d](https://pytorch.org/docs/stable/generated/torch.nn.functional.fractional_max_pool2d.html#torch-nn-functional-fractional-max-pool2d) | [paddle.nn.functional.fractional\_max\_pool2d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/fractional_max_pool2d_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.fractional_max_pool2d.html) | +| 326 | [torch.tensordot](https://pytorch.org/docs/stable/generated/torch.tensordot.html?highlight=tensordot#torch.tensordot) | [paddle.tensordot](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/tensordot_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.tensordot.html) | +| 327 | [torch.linalg.matrix_rank](https://pytorch.org/docs/stable/generated/torch.linalg.matrix_rank.html?highlight=matrix_rank#torch.linalg.matrix_rank) | [paddle.linalg.matrix_rank](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/matrix_rank_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.matrix_rank.html) | +| 328 | [torch.nn.RReLU](https://pytorch.org/docs/stable/generated/torch.nn.RReLU.html#torch.nn.RReLU) | [paddle.nn.RReLU](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/RReLU_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.RReLU.html) | +| 329 | [torch.special.digamma](https://pytorch.org/docs/stable/special.html#torch.special.digamma) | [paddle.digamma](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/special.digamma_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.digamma.html) | +| 330 | [torch.nn.L1Loss](https://pytorch.org/docs/stable/generated/torch.nn.L1Loss.html?highlight=l1loss#torch.nn.L1Loss) | [paddle.nn.L1Loss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/L1Loss_cn.html#l1loss) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.L1Loss.html) | +| 331 | [torch.nn.ReLU](https://pytorch.org/docs/stable/generated/torch.nn.ReLU.html?highlight=relu#torch.nn.ReLU) | [paddle.nn.ReLU](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/ReLU_cn.html#relu) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.ReLU.html) | +| 332 | [torch.mvlgamma](https://pytorch.org/docs/stable/generated/torch.mvlgamma.html) | [paddle.multigammaln](https://github.com/PaddlePaddle/Paddle/blob/be090bd0bc9ac7a8595296c316b3a6ed3dc60ba6/python/paddle/tensor/math.py#L5099) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.mvlgamma.html) | +| 333 | [torch.sinh](https://pytorch.org/docs/stable/generated/torch.sinh.html?highlight=sinh#torch.sinh) | [paddle.sinh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sinh_cn.html#sinh) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.sinh.html) | +| 334 | [torch.autograd.functional.jvp](https://pytorch.org/docs/stable/generated/torch.autograd.functional.jvp.html#torch.autograd.functional.jvp) | [paddle.incubate.autograd.jvp](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/incubate/autograd/jvp_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.autograd.functional.jvp.html) | +| 335 | [torch.nn.functional.multi\_margin\_loss](https://pytorch.org/docs/stable/generated/torch.nn.functional.multi_margin_loss.html) | [paddle.nn.functional.multi\_margin\_loss](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/functional/multi_margin_loss_cn.html#multi-margin-loss) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.multi_margin_loss.html) | +| 336 | [torch.lcm](https://pytorch.org/docs/stable/generated/torch.lcm.html#torch-lcm) | [paddle.lcm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/lcm_cn.html#lcm) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.lcm.html) | +| 337 | [torch.nn.PReLU](https://pytorch.org/docs/stable/generated/torch.nn.PReLU.html?highlight=prelu#torch.nn.PReLU) | [paddle.nn.PReLU](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/PReLU_cn.html#prelu) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.PReLU.html) | +| 338 | [torch.optim.AdamW](https://pytorch.org/docs/stable/generated/torch.optim.AdamW.html) | [paddle.optimizer.AdamW](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/AdamW_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.optim.AdamW.html) | +| 339 | [torch.nn.RNNBase](https://pytorch.org/docs/stable/generated/torch.nn.RNNBase.html#torch.nn.RNNBase) | [paddle.nn.layer.rnn.RNNBase](https://github.com/PaddlePaddle/Paddle/blob/e25e86f4f6d1bbd043b621a75e93d0070719c3d8/python/paddle/nn/layer/rnn.py#L1300) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.RNNBase.html) | +| 340 | [torch.nn.MarginRankingLoss](https://pytorch.org/docs/stable/generated/torch.nn.MarginRankingLoss.html#marginrankingloss) | [paddle.nn.MarginRankingLoss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/MarginRankingLoss_cn.html#marginrankingloss) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.MarginRankingLoss.html) | +| 341 | [torch.diag](https://pytorch.org/docs/stable/generated/torch.diag.html?highlight=diag#torch.diag) | [paddle.diag](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/diag_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.diag.html) | +| 342 | [torch.reciprocal](https://pytorch.org/docs/stable/generated/torch.reciprocal.html?highlight=torch+reciprocal#torch.reciprocal) | [paddle.reciprocal](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/reciprocal_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.reciprocal.html) | +| 343 | [torch.linalg.lu_factor](https://pytorch.org/docs/stable/generated/torch.linalg.lu_factor.html#torch.linalg.lu_factor) | [paddle.linalg.lu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/lu_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.lu_factor.html) | +| 344 | [torch.distributions.poisson.Poisson](https://pytorch.org/docs/stable/distributions.html#poisson) | [paddle.distribution.Poisson](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/distribution/Poisson_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.poisson.Poisson.html) | +| 345 | [torch.conj_physical](https://pytorch.org/docs/stable/generated/torch.conj_physical.html#torch.conj_physical) | [paddle.conj](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/conj_cn.html#conj) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.conj_physical.html) | +| 346 | [torch.heaviside](https://pytorch.org/docs/stable/generated/torch.heaviside.html#torch.heaviside) | [paddle.heaviside](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/heaviside_cn.html#heaviside) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.heaviside.html) | +| 347 | [torch.nn.Threshold](https://pytorch.org/docs/stable/generated/torch.nn.Threshold.html#torch.nn.Threshold) | [paddle.nn.ThresholdedReLU](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/ThresholdedReLU_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.Threshold.html) | +| 348 | [torch.nn.functional.multilabel\_soft\_margin\_loss](https://pytorch.org/docs/stable/generated/torch.nn.functional.multilabel_soft_margin_loss.html) | [paddle.nn.functional.multi\_label\_soft\_margin\_loss](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/functional/multi_label_soft_margin_loss_cn.html#multi-label-soft-margin-loss) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.multilabel_soft_margin_loss.html) | +| 349 | [torch.Tensor.cauchy_](https://pytorch.org/docs/stable/generated/torch.Tensor.cauchy_.html) | [paddle.Tensor.cauchy_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.cauchy_.html) | +| 350 | [torch.sparse.softmax](https://pytorch.org/docs/stable/generated/torch.sparse.softmax.html#torch.sparse.softmax) | [paddle.sparse.nn.functional.softmax](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sparse/nn/functional/softmax_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.sparse.softmax.html) | +| 351 | [torch.nn.functional.alpha_dropout](https://pytorch.org/docs/stable/generated/torch.nn.functional.alpha_dropout.html) | [paddle.nn.functional.alpha_dropout](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/functional/alpha_dropout_cn.html#alpha-dropout) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.alpha_dropout.html) | +| 352 | [torch.nn.KLDivLoss](https://pytorch.org/docs/stable/generated/torch.nn.KLDivLoss.html?highlight=kldivloss#torch.nn.KLDivLoss) | [paddle.nn.KLDivLoss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/KLDivLoss_cn.html#kldivloss) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.KLDivLoss.html) | +| 353 | [torch.nn.MSELoss](https://pytorch.org/docs/stable/generated/torch.nn.MSELoss.html?highlight=mseloss#torch.nn.MSELoss) | [paddle.nn.MSELoss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/MSELoss_cn.html#mseloss) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.MSELoss.html) | +| 354 | [torch.nanquantile](https://pytorch.org/docs/stable/generated/torch.nanquantile.html?highlight=nanquantile#torch.nanquantile) | [paddle.nanquantile](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nanquantile_cn.html#nanquantile) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nanquantile.html) | +| 355 | [torch.nn.BCELoss](https://pytorch.org/docs/stable/generated/torch.nn.BCELoss.html?highlight=bceloss#torch.nn.BCELoss) | [paddle.nn.BCELoss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/BCELoss_cn.html#bceloss) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.BCELoss.html) | +| 356 | [torch.linalg.lu\_factor\_ex](https://pytorch.org/docs/stable/generated/torch.linalg.lu_factor_ex.html?highlight=lu_factor_ex#torch.linalg.lu_factor_ex) | [paddle.linalg.lu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/lu_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.lu_factor_ex.html) | +| 357 | [torch.special.expm1](https://pytorch.org/docs/stable/special.html#torch.special.expm1) | [paddle.expm1](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/expm1_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.expm1.html) | +| 358 | [torch.mm](https://pytorch.org/docs/stable/generated/torch.mm.html?highlight=torch+mm#torch.mm) | [paddle.mm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/mm_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.mm.html) | +| 359 | [torch.clone](https://pytorch.org/docs/stable/generated/torch.clone.html?highlight=clone#torch.clone) | [paddle.clone](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/clone_cn.html#clone) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.clone.html) | +| 360 | [flash\_attn.flash\_attn\_interface.flash\_attn\_unpadded\_func](https://github.com/Dao-AILab/flash-attention/blob/d0787acc16c3667156b51ce5b01bdafc7594ed39/flash_attn/flash_attn_interface.py#L1050) | [paddle.nn.functional.flash\_attention.flash\_attn\_unpadded](https://github.com/PaddlePaddle/Paddle/blob/b32b51b7c21ad62bf794512c849a603c8c0ece44/python/paddle/nn/functional/flash_attention.py#L664) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/flash_attn.flash_attn_interface.flash_attn_unpadded_func.html) | +| 361 | [torch.linalg.multi_dot](https://pytorch.org/docs/stable/generated/torch.linalg.multi_dot.html?highlight=torch+linalg+multi_dot#torch.linalg.multi_dot) | [paddle.linalg.multi_dot](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/multi_dot_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.multi_dot.html) | +| 362 | [torch.nn.TripletMarginLoss](https://pytorch.org/docs/stable/generated/torch.nn.TripletMarginLoss.html#torch.nn.TripletMarginLoss) | [paddle.nn.TripletMarginLoss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/TripletMarginLoss_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.TripletMarginLoss.html) | +| 363 | [torch.nn.functional.mse_loss](https://pytorch.org/docs/stable/generated/torch.nn.functional.mse_loss.html?highlight=mse_loss#torch.nn.functional.mse_loss) | [paddle.nn.functional.mse_loss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/mse_loss_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.mse_loss.html) | +| 364 | [transformers.PretrainedConfig](https://hf-mirror.com/docs/transformers/v4.42.0/en/main_classes/configuration#transformers.PretrainedConfig) | [paddlenlp.transformers.PretrainedConfig](https://github.com/PaddlePaddle/PaddleNLP/blob/57000fa12ce67024238f0b56a6fde63c592c54ce/paddlenlp/transformers/configuration_utils.py#L317) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/transformers.PretrainedConfig.html) | +| 365 | [torch.Tensor.stft](https://pytorch.org/docs/stable/generated/torch.Tensor.stft.html#torch.Tensor.stft) | [paddle.Tensor.stft](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/signal/stft_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.stft.html) | +| 366 | [torch.nn.functional.soft\_margin\_loss](https://pytorch.org/docs/stable/generated/torch.nn.functional.soft_margin_loss.html?highlight=soft_margin_loss#torch.nn.functional.soft_margin_loss) | [paddle.nn.functional.soft\_margin\_loss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/soft_margin_loss_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.soft_margin_loss.html) | +| 367 | [fairscale.nn.model_parallel.layers.ParallelEmbedding](https://github.com/facebookresearch/fairscale/blob/164cc0f3170b4a3951dd84dda29c3e1504ac4d6e/fairscale/nn/model_parallel/layers.py#L152) | [paddle.distributed.fleet.meta_parallel.VocabParallelEmbedding](https://github.com/PaddlePaddle/Paddle/blob/016766cc89fabc10181453ce70b701dd8ed019f6/python/paddle/distributed/fleet/layers/mpu/mp_layers.py#L37) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/fairscale.nn.model_parallel.layers.ParallelEmbedding.html) | +| 368 | [torch.linalg.eig](https://pytorch.org/docs/stable/generated/torch.linalg.eig.html?highlight=torch+linalg+eig#torch.linalg.eig) | [paddle.linalg.eig](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/eig_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.eig.html) | +| 369 | torch.clamp_max | [paddle.clip](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/clip_cn.html#clip) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.clamp_max.html) | +| 370 | [torch.special.gammainc](https://pytorch.org/docs/stable/special.html#torch.special.gammainc) | [paddle.gammainc](https://www.paddlepaddle.org.cn/documentation/docs/zh/2.6/api/index_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.gammainc.html) | +| 371 | [torch.nn.FeatureAlphaDropout](https://pytorch.org/docs/stable/generated/torch.nn.FeatureAlphaDropout.html#torch.nn.FeatureAlphaDropout) | [paddle.nn.FeatureAlphaDropout](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/FeatureAlphaDropout_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.FeatureAlphaDropout.html) | +| 372 | [torch.round](https://pytorch.org/docs/stable/generated/torch.round.html?highlight=round#torch.round) | [paddle.round](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/round_cn.html#round) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.round.html) | +| 373 | [torch.distributions.transforms.IndependentTransform](https://pytorch.org/docs/stable/distributions.html#torch.distributions.transforms.IndependentTransform) | [paddle.distribution.IndependentTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/IndependentTransform_cn.html#independenttransform) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.IndependentTransform.html) | +| 374 | [torch.distributions.distribution.Distribution](https://pytorch.org/docs/stable/distributions.html#torch.distributions.distribution.Distribution) | [paddle.distribution.Distribution](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Distribution_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.distribution.Distribution.html) | +| 375 | [torch.nn.ReLU6](https://pytorch.org/docs/stable/generated/torch.nn.ReLU6.html#torch.nn.ReLU6) | [paddle.nn.ReLU6](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/ReLU6_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.ReLU6.html) | +| 376 | [torch.column_stack](https://pytorch.org/docs/stable/generated/torch.column_stack.html#torch.column_stack) | [paddle.column_stack](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/column_stack_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.column_stack.html) | +| 377 | [torch.distributions.transforms.TanhTransform](https://pytorch.org/docs/stable/distributions.html#torch.distributions.transforms.TanhTransform) | [paddle.distribution.TanhTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/TanhTransform_cn.html#tanhtransform) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.TanhTransform.html) | +| 378 | [torch.nn.HingeEmbeddingLoss](https://pytorch.org/docs/stable/generated/torch.nn.HingeEmbeddingLoss.html#hingeembeddingloss) | [paddle.nn.HingeEmbeddingLoss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/HingeEmbeddingLoss_cn.html#hingeembeddingloss) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.HingeEmbeddingLoss.html) | +| 379 | [torch.optim.Adadelta](https://pytorch.org/docs/stable/generated/torch.optim.Adadelta.html) | [paddle.optimizer.Adadelta](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/Adadelta_cn.html#cn-api-paddle-optimizer-adadelta) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.optim.Adadelta.html) | +| 380 | [torch.nn.functional.interpolate](https://pytorch.org/docs/stable/generated/torch.nn.functional.interpolate.html#torch.nn.functional.interpolate) | [paddle.nn.functional.interpolate](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/interpolate_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.interpolate.html) | +| 381 | [torch.nn.Hardsigmoid](https://pytorch.org/docs/stable/generated/torch.nn.Hardsigmoid.html?highlight=hardsigmoid#torch.nn.Hardsigmoid) | [paddle.nn.Hardsigmoid](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Hardsigmoid_cn.html#hardsigmoid) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.Hardsigmoid.html) | +| 382 | [torch.fft.rfftn](https://pytorch.org/docs/stable/generated/torch.fft.rfftn.html#torch-fft-rfftn) | [paddle.fft.rfftn](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fft/rfftn_cn.html#rfftn) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.fft.rfftn.html) | +| 383 | [torch.meshgrid](https://pytorch.org/docs/stable/generated/torch.meshgrid.html?highlight=meshgrid#torch.meshgrid) | [paddle.meshgrid](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/meshgrid_cn.html#meshgrid) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.meshgrid.html) | +| 384 | [torch.nn.functional.threshold](https://pytorch.org/docs/stable/generated/torch.nn.functional.threshold.html#torch.nn.functional.threshold) | [paddle.nn.functional.thresholded_relu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/thresholded_relu_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.threshold.html) | +| 385 | [torch.nn.functional.dropout](https://pytorch.org/docs/stable/generated/torch.nn.functional.dropout.html) | [paddle.nn.functional.dropout](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/functional/dropout_cn.html#dropout) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.dropout.html) | +| 386 | [torch.nn.CrossEntropyLoss](https://pytorch.org/docs/stable/generated/torch.nn.CrossEntropyLoss.html#torch.nn.CrossEntropyLoss) | [paddle.nn.CrossEntropyLoss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/CrossEntropyLoss_cn.html#crossentropyloss) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.CrossEntropyLoss.html) | +| 387 | [torch.linalg.eigh](https://pytorch.org/docs/stable/generated/torch.linalg.eigh.html#torch.linalg.eigh) | [paddle.linalg.eigh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/eigh_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.eigh.html) | +| 388 | [torchvision.datasets.ImageFolder](https://pytorch.org/vision/main/generated/torchvision.datasets.ImageFolder.html) | [paddle.vision.datasets.ImageFolder](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/datasets/ImageFolder_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torchvision.datasets.ImageFolder.html) | +| 389 | [torch.symeig](https://pytorch.org/docs/stable/generated/torch.symeig.html?highlight=torch+symeig#torch.symeig) | [paddle.linalg.eigh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/eigh_cn.html#eigh) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.symeig.html) | +| 390 | [torch.nn.Dropout1d](https://pytorch.org/docs/stable/generated/torch.nn.Dropout1d.html#torch.nn.Dropout1d) | [paddle.nn.Dropout](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Dropout_cn.html#dropout) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.Dropout1d.html) | +| 391 | [torch.nn.MaxPool2d](https://pytorch.org/docs/stable/generated/torch.nn.MaxPool2d.html?highlight=maxpool2d#torch.nn.MaxPool2d) | [paddle.nn.MaxPool2D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/MaxPool2D_cn.html#maxpool2d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.MaxPool2d.html) | +| 392 | [torch.nn.functional.dropout3d](https://pytorch.org/docs/stable/generated/torch.nn.functional.dropout3d.html#torch.nn.functional.dropout3d) | [paddle.nn.functional.dropout3d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/dropout3d_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.dropout3d.html) | +| 393 | [torch.poisson](https://pytorch.org/docs/stable/generated/torch.poisson.html#torch.poisson) | [paddle.poisson](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/poisson_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.poisson.html) | +| 394 | [torch.nn.MultiheadAttention](https://pytorch.org/docs/stable/generated/torch.nn.MultiheadAttention.html#torch.nn.MultiheadAttention) | [paddle.nn.MultiHeadAttention](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/MultiHeadAttention_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.MultiheadAttention.html) | +| 395 | [torch.fft.ifft](https://pytorch.org/docs/stable/generated/torch.fft.ifft.html?highlight=ifft#torch.fft.ifft) | [paddle.fft.ifft](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/fft/ifft_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.fft.ifft.html) | +| 396 | [torch.special.gammaln](https://pytorch.org/docs/stable/special.html#torch.special.gammaln) | [paddle.gammaln](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/gammaln_cn.html#gammaln) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.gammaln.html) | ### 7. 输入参数用法不一致 **分类简介** @@ -101,7 +1509,72 @@ paddle.nn.Softplus(beta=0.5, threshold=15) | 序号 | Pytorch 最新 release | Paddle develop | 备注 | |------|-------------------|---------------|------| - +| 1 | [torch.nn.ConvTranspose2d](https://pytorch.org/docs/stable/generated/torch.nn.ConvTranspose2d.html?highlight=convtranspose2d#torch.nn.ConvTranspose2d) | [paddle.nn.Conv2DTranspose](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Conv2DTranspose_cn.html#conv2dtranspose) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.ConvTranspose2d.html) | +| 2 | [torch.nn.AvgPool2d](https://pytorch.org/docs/stable/generated/torch.nn.AvgPool2d.html?highlight=avgpool2d#torch.nn.AvgPool2d) | [paddle.nn.AvgPool2D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/AvgPool2D_cn.html#avgpool2d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.AvgPool2d.html) | +| 3 | [torch.nn.functional.batch_norm](https://pytorch.org/docs/stable/generated/torch.nn.functional.batch_norm.html#torch.nn.functional.batch_norm) | [paddle.nn.functional.batch_norm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/batch_norm_cn.html#batch-norm) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.functional.batch_norm.html) | +| 4 | [torchvision.datasets.Flowers102](https://pytorch.org/vision/main/generated/torchvision.datasets.Flowers102.html) | [paddle.vision.datasets.Flowers](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/datasets/Flowers_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torchvision.datasets.Flowers102.html) | +| 5 | [torch.nn.functional.avg_pool1d](https://pytorch.org/docs/stable/generated/torch.nn.functional.avg_pool1d.html#torch.nn.functional.avg_pool1d) | [paddle.nn.functional.avg_pool1d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/avg_pool1d_cn.html#avg-pool1d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.functional.avg_pool1d.html) | +| 6 | [torch.nn.functional.avg_pool2d](https://pytorch.org/docs/stable/generated/torch.nn.functional.avg_pool2d.html#torch.nn.functional.avg_pool2d) | [paddle.nn.functional.avg_pool2d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/avg_pool2d_cn.html#avg-pool2d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.functional.avg_pool2d.html) | +| 7 | [torch.nn.functional.instance_norm](https://pytorch.org/docs/stable/generated/torch.nn.functional.instance_norm.html#torch.nn.functional.instance_norm) | [paddle.nn.functional.instance_norm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/instance_norm_cn.html#instance-norm) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.functional.instance_norm.html) | +| 8 | [torch.atleast_1d](https://pytorch.org/docs/stable/generated/torch.atleast_1d.html#torch-atleast-1d) | [paddle.atleast_1d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/atleast_1d_cn.html#atleast_1d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.atleast_1d.html) | +| 9 | [torch.Tensor.split](https://pytorch.org/docs/stable/generated/torch.Tensor.split.html) | [paddle.Tensor.split](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#split-num-or-sections-axis-0-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.split.html) | +| 10 | [torchvision.ops.roi_align](https://pytorch.org/vision/main/generated/torchvision.ops.roi_align.html) | [paddle.vision.ops.roi_align](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/ops/roi_align_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torchvision.ops.roi_align.html) | +| 11 | [torch.nn.BatchNorm1d](https://pytorch.org/docs/stable/generated/torch.nn.BatchNorm1d.html?highlight=torch%20nn%20batchnorm1d#torch.nn.BatchNorm1d) | [paddle.nn.BatchNorm1D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/BatchNorm1D_cn.html#batchnorm1d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.BatchNorm1d.html) | +| 12 | [torch.distributed.rpc.rpc_async](https://pytorch.org/docs/stable/rpc.html#torch.distributed.rpc.rpc_async) | [paddle.distributed.rpc.rpc_async](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/rpc/rpc_async_cn.html#rpc-async) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.distributed.rpc.rpc_async.html) | +| 13 | [torch.slice_scatter](https://pytorch.org/docs/stable/generated/torch.slice_scatter.html#torch.slice_scatter) | [paddle.slice_scatter](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/slice_scatter.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.slice_scatter.html) | +| 14 | [torch.nn.LSTM](https://pytorch.org/docs/stable/generated/torch.nn.LSTM.html?highlight=lstm#torch.nn.LSTM) | [paddle.nn.LSTM](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/LSTM_cn.html#lstm) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.LSTM.html) | +| 15 | [torch.Tensor.svd](https://pytorch.org/docs/stable/generated/torch.Tensor.svd.html#torch.Tensor.svd) | [paddle.linalg.svd](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/svd_cn.html#svd) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.svd.html) | +| 16 | [torch.distributed.broadcast](https://pytorch.org/docs/stable/distributed.html#torch.distributed.broadcast) | [paddle.distributed.broadcast](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/broadcast_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.distributed.broadcast.html) | +| 17 | [torch.Tensor.tile](https://pytorch.org/docs/stable/generated/torch.Tensor.tile.html#torch.Tensor.tile) | [paddle.Tensor.tile](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#tile-repeat-times-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.tile.html) | +| 18 | [torchvision.datasets.CIFAR10](https://pytorch.org/vision/main/generated/torchvision.datasets.CIFAR10.html) | [paddle.vision.datasets.Cifar10](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/datasets/Cifar10_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torchvision.datasets.CIFAR10.html) | +| 19 | [torchvision.datasets.CIFAR100](https://pytorch.org/vision/main/generated/torchvision.datasets.CIFAR100.html) | [paddle.vision.datasets.Cifar100](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/datasets/Cifar100_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torchvision.datasets.CIFAR100.html) | +| 20 | [torch.nn.functional.bilinear](https://pytorch.org/docs/stable/generated/torch.nn.functional.bilinear.html?highlight=bilinear#torch.nn.functional.bilinear) | [paddle.nn.functional.bilinear](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/bilinear_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.functional.bilinear.html) | +| 21 | [torch.Tensor.lstsq](https://pytorch.org/docs/1.9.0/generated/torch.Tensor.lstsq.html?highlight=torch%20tensor%20lstsq#torch.Tensor.lstsq) | paddle.Tensor.lstsq | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.lstsq.html) | +| 22 | [torch.nn.ConvTranspose1d](https://pytorch.org/docs/stable/generated/torch.nn.ConvTranspose1d.html?highlight=convtranspose1d#torch.nn.ConvTranspose1d) | [paddle.nn.Conv1DTranspose](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Conv1DTranspose_cn.html#conv1dtranspose) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.ConvTranspose1d.html) | +| 23 | [torch.Tensor.transpose_](https://pytorch.org/docs/stable/generated/torch.Tensor.transpose_.html) | paddle.Tensor.transpose_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.transpose_.html) | +| 24 | [torchvision.ops.ps\_roi\_pool](https://pytorch.org/vision/main/generated/torchvision.ops.ps_roi_pool.html) | [paddle.vision.ops.psroi_pool](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/ops/psroi_pool_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torchvision.ops.ps_roi_pool.html) | +| 25 | [torch.distributed.all_reduce](https://pytorch.org/docs/stable/distributed.html#torch.distributed.all_reduce) | [paddle.distributed.all_reduce](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/all_reduce_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.distributed.all_reduce.html) | +| 26 | [torch.atleast_3d](https://pytorch.org/docs/stable/generated/torch.atleast_3d.html#torch-atleast-3d) | [paddle.atleast_3d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/atleast_3d_cn.html#atleast_3d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.atleast_3d.html) | +| 27 | [torch.nn.ConvTranspose3d](https://pytorch.org/docs/stable/generated/torch.nn.ConvTranspose3d.html?highlight=convtranspose3d#torch.nn.ConvTranspose3d) | [paddle.nn.Conv3DTranspose](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Conv3DTranspose_cn.html#conv3dtranspose) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.ConvTranspose3d.html) | +| 28 | [torch.nn.InstanceNorm2d](https://pytorch.org/docs/stable/generated/torch.nn.InstanceNorm2d.html#torch.nn.InstanceNorm2d) | [paddle.nn.InstanceNorm2D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/InstanceNorm2D_cn.html#instancenorm2d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.InstanceNorm2d.html) | +| 29 | [torch.distributed.rpc.rpc_sync](https://pytorch.org/docs/stable/rpc.html#torch.distributed.rpc.rpc_sync) | [paddle.distributed.rpc.rpc_sync](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/rpc/rpc_sync_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.distributed.rpc.rpc_sync.html) | +| 30 | [torch.nn.functional.avg_pool3d](https://pytorch.org/docs/stable/generated/torch.nn.functional.avg_pool3d.html#torch.nn.functional.avg_pool3d) | [paddle.nn.functional.avg_pool3d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/avg_pool3d_cn.html#avg-pool3d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.functional.avg_pool3d.html) | +| 31 | [torch.distributed.all\_gather\_object](https://pytorch.org/docs/stable/distributed.html?highlight=all_gather_object#torch.distributed.all_gather_object) | [paddle.distributed.all\_gather\_object](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/distributed/all_gather_object_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.distributed.all_gather_object.html) | +| 32 | [torch.nn.BatchNorm2d](https://pytorch.org/docs/stable/generated/torch.nn.BatchNorm2d.html?highlight=batchnorm2d#torch.nn.BatchNorm2d) | [paddle.nn.BatchNorm2D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/BatchNorm2D_cn.html#batchnorm2d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.BatchNorm2d.html) | +| 33 | [torch.distributed.all\_to\_all](https://pytorch.org/docs/stable/distributed.html#torch.distributed.all_to_all) | [paddle.distributed.alltoall](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/alltoall_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.distributed.all_to_all.html) | +| 34 | [torch.nn.Module.xpu](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.xpu) | [paddle.nn.Layer.to](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#to-device-none-dtype-none-blocking-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.Module.xpu.html) | +| 35 | [torch.cuda.Stream](https://pytorch.org/docs/stable/generated/torch.cuda.Stream.html#torch.cuda.Stream) | [paddle.device.Stream](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/device/Stream_cn.html#stream) | - | +| 36 | [torch.optim.Optimizer.zero_grad](https://pytorch.org/docs/stable/generated/torch.optim.Optimizer.zero_grad.html) | [paddle.optimizer.Optimizer.clear_gradients](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/Optimizer_cn.html#clear-grad) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.optim.Optimizer.zero_grad.html) | +| 37 | [torch.set\_rng\_state](https://pytorch.org/docs/stable/generated/torch.set_rng_state.html#torch.set_rng_state) | paddle.set_rng_state | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.set_rng_state.html) | +| 38 | [torch.nn.AvgPool3d](https://pytorch.org/docs/stable/generated/torch.nn.AvgPool3d.html?highlight=avgpool3d#torch.nn.AvgPool3d) | [paddle.nn.AvgPool3D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/AvgPool3D_cn.html#avgpool3d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.AvgPool3d.html) | +| 39 | [torch.sparse.FloatTensor](https://pytorch.org/docs/stable/generated/torch.cuda.comm.broadcast.html#torch.cuda.comm.broadcast) | [paddle.sparse.sparse\_coo\_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sparse/sparse_coo_tensor_cn.html#sparse-coo-tensor) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.sparse.FloatTensor.html) | +| 40 | [torch.utils.data.TensorDataset](https://pytorch.org/docs/stable/data.html#torch.utils.data.TensorDataset) | [paddle.io.TensorDataset](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/io/TensorDataset_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.utils.data.TensorDataset.html) | +| 41 | [torch.sparse\_coo\_tensor](https://pytorch.org/docs/stable/generated/torch.sparse_coo_tensor.html?highlight=torch+sparse_coo_tensor#torch.sparse_coo_tensor) | [paddle.sparse.sparse\_coo\_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sparse/sparse_coo_tensor_cn.html#sparse-coo-tensor) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.sparse_coo_tensor.html) | +| 42 | [torch.nn.AvgPool1d](https://pytorch.org/docs/stable/generated/torch.nn.AvgPool1d.html?highlight=avgpool1d#torch.nn.AvgPool1d) | [paddle.nn.AvgPool1D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/AvgPool1D_cn.html#avgpool1d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.AvgPool1d.html) | +| 43 | [torchvision.datasets.MNIST](https://pytorch.org/vision/main/generated/torchvision.datasets.MNIST.html) | [paddle.vision.datasets.MNIST](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/datasets/MNIST_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torchvision.datasets.MNIST.html) | +| 44 | [torch.distributed.all\_gather\_into\_tensor](https://docs.pytorch.org/docs/stable/distributed.html#torch.distributed.all_gather_into_tensor) | [paddle.distributed.all_gather](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/all_gather_cn.html#all-gather) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.distributed.all_gather_into_tensor.html) | +| 45 | [torchvision.datasets.VOCDetection](https://pytorch.org/vision/main/generated/torchvision.datasets.VOCDetection.html) | [paddle.vision.datasets.VOC2012](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/datasets/VOC2012_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torchvision.datasets.VOCDetection.html) | +| 46 | [torch.Tensor.set_](https://pytorch.org/docs/stable/generated/torch.Tensor.set_.html) | [paddle.Tensor.set_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#set-source-none-shape-none-stride-none-offset-0-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.set_.html) | +| 47 | [torch.nn.RNN](https://pytorch.org/docs/stable/generated/torch.nn.RNN.html#torch.nn.RNN) | [paddle.nn.SimpleRNN](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/SimpleRNN_cn.html#simplernn) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.RNN.html) | +| 48 | [torch.distributed.scatter](https://pytorch.org/docs/stable/distributed.html#torch.distributed.scatter) | [paddle.distributed.scatter](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/scatter_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.distributed.scatter.html) | +| 49 | [torch.distributed.gather](https://pytorch.org/docs/stable/distributed.html#torch.distributed.gather) | [paddle.distributed.gather](https://github.com/PaddlePaddle/Paddle/blob/c8ccc9b154632ef41ade1b8e97b87d54fde7e8f8/python/paddle/distributed/communication/gather.py#L20C71-L20C71) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.distributed.gather.html) | +| 50 | [torchvision.ops.roi_pool](https://pytorch.org/vision/main/generated/torchvision.ops.roi_pool.html) | [paddle.vision.ops.roi_pool](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/ops/roi_pool_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torchvision.ops.roi_pool.html) | +| 51 | [torch.nn.Linear](https://pytorch.org/docs/stable/generated/torch.nn.Linear.html?highlight=linear#torch.nn.Linear) | [paddle.nn.Linear](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Linear_cn.html#linear) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.Linear.html) | +| 52 | [torch.distributed.optim.DistributedOptimizer](https://pytorch.org/docs/stable/distributed.optim.html) | [paddle.distributed.fleet.distributed_optimizer](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/fleet/Fleet_cn.html#cn-api-paddle-distributed-fleet-fleet) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.distributed.optim.DistributedOptimizer.html) | +| 53 | [torch.nn.SyncBatchNorm](https://pytorch.org/docs/stable/generated/torch.nn.SyncBatchNorm.html#torch.nn.SyncBatchNorm) | [paddle.nn.SyncBatchNorm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/SyncBatchNorm_cn.html#syncbatchnorm) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.SyncBatchNorm.html) | +| 54 | [torch.rand](https://pytorch.org/docs/stable/generated/torch.rand.html?highlight=rand#torch.rand) | [paddle.rand](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/rand_cn.html#rand) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.rand.html) | +| 55 | [torch.Tensor.where](https://pytorch.org/docs/stable/generated/torch.Tensor.where.html#torch.Tensor.where) | [paddle.where](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/where_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.Tensor.where.html) | +| 56 | [torchvision.datasets.FashionMNIST](https://pytorch.org/vision/main/generated/torchvision.datasets.FashionMNIST.html) | [paddle.vision.datasets.FashionMNIST](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/datasets/FashionMNIST_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torchvision.datasets.FashionMNIST.html) | +| 57 | [torch.nn.InstanceNorm1d](https://pytorch.org/docs/stable/generated/torch.nn.InstanceNorm1d.html#torch.nn.InstanceNorm1d) | [paddle.nn.InstanceNorm1D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/InstanceNorm1D_cn.html#instancenorm1d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.InstanceNorm1d.html) | +| 58 | [torch.distributed.reduce](https://pytorch.org/docs/stable/distributed.html#torch.distributed.reduce) | [paddle.distributed.reduce](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/reduce_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.distributed.reduce.html) | +| 59 | [torch.nn.BatchNorm3d](https://pytorch.org/docs/stable/generated/torch.nn.BatchNorm3d.html?highlight=torch%20nn%20batchnorm3d#torch.nn.BatchNorm3d) | [paddle.nn.BatchNorm3D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/BatchNorm3D_cn.html#batchnorm3d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.BatchNorm3d.html) | +| 60 | [torch.distributed.all\_to\_all\_single](https://pytorch.org/docs/stable/distributed.html#torch.distributed.all_to_all_single) | [paddle.distributed.alltoall_single](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/alltoall_single_cn.html#alltoall-single) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.distributed.all_to_all_single.html) | +| 61 | [torch.nn.Module.zero_grad](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.zero_grad) | [paddle.nn.Layer.clear_gradients](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#clear-gradients) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.Module.zero_grad.html) | +| 62 | [torch.nn.GRU](https://pytorch.org/docs/stable/generated/torch.nn.GRU.html?highlight=torch%20nn%20gru#torch.nn.GRU) | [paddle.nn.GRU](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/GRU_cn.html#gru) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.GRU.html) | +| 63 | [torch.distributed.all_gather](https://pytorch.org/docs/stable/distributed.html#torch.distributed.all_gather) | [paddle.distributed.all_gather](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/all_gather_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.distributed.all_gather.html) | +| 64 | [torch.atleast_2d](https://pytorch.org/docs/stable/generated/torch.atleast_2d.html#torch-atleast-2d) | [paddle.atleast_2d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/atleast_2d_cn.html#atleast_2d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.atleast_2d.html) | +| 65 | [torch.distributed.reduce_scatter](https://pytorch.org/docs/stable/distributed.html#torch.distributed.reduce_scatter) | [paddle.distributed.reduce_scatter](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/reduce_scatter_cn.html#reduce-scatter) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.distributed.reduce_scatter.html) | +| 66 | [torch.nn.functional.linear](https://pytorch.org/docs/stable/generated/torch.nn.functional.linear.html?highlight=linear#torch.nn.functional.linear) | [paddle.nn.functional.linear](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/linear_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.functional.linear.html) | ### 8. 输入参数类型不一致 **分类简介** @@ -111,6 +1584,83 @@ paddle.nn.Softplus(beta=0.5, threshold=15) | 序号 | Pytorch 最新 release | Paddle develop | 备注 | |------|-------------------|---------------|------| +| 1 | [torch.Tensor.cuda](https://pytorch.org/docs/stable/generated/torch.Tensor.cuda.html#torch.Tensor.cuda) | [paddle.Tensor.cuda](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#cuda-device-id-none-blocking-false) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.cuda.html) | +| 2 | [torch.set\_default\_device](https://pytorch.org/docs/stable/generated/torch.set_default_device.html#torch-set-default-device) | [paddle.device.set_device](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/device/set_device_cn.html#set-device) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.set_default_device.html) | +| 3 | [torchvision.models.resnet50](https://pytorch.org/vision/stable/models/generated/torchvision.models.resnet50.html) | [paddle.vision.models.resnet50](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/resnet50_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.resnet50.html) | +| 4 | [torch.Tensor.remainder_](https://pytorch.org/docs/stable/generated/torch.Tensor.remainder_.html?highlight=torch+tensor+remainder_#torch.Tensor.remainder_) | [paddle.Tensor.remainder_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#id15) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.remainder_.html) | +| 5 | [torchvision.models.resnext101_64x4d](https://pytorch.org/vision/main/models/generated/torchvision.models.resnext101_64x4d.html) | [paddle.vision.models.resnext101_64x4d](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/resnext101_64x4d_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.resnext101_64x4d.html) | +| 6 | [torch.cuda.device](https://pytorch.org/docs/stable/generated/torch.cuda.device.html#torch.cuda.device) | [paddle.device.\_convert\_to\_place](https://github.com/PaddlePaddle/Paddle/blob/c8ccc9b154632ef41ade1b8e97b87d54fde7e8f8/python/paddle/device/__init__.py#L174) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.cuda.device.html) | +| 7 | [torchvision.transforms.functional.rotate](https://pytorch.org/vision/stable/generated/torchvision.transforms.functional.rotate.html) | [paddle.vision.transforms.rotate](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/transforms/rotate_cn.html#cn-api-paddle-vision-transforms-rotate) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.transforms.functional.rotate.html) | +| 8 | [torch.Tensor.floor_divide](https://pytorch.org/docs/stable/generated/torch.Tensor.floor_divide.html?highlight=floor_divide#torch.Tensor.floor_divide) | [paddle.Tensor.floor_divide](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#floor-divide-y-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.floor_divide.html) | +| 9 | [torch.nn.ReflectionPad3d](https://pytorch.org/docs/stable/generated/torch.nn.ReflectionPad3d.html?highlight=pad#torch.nn.ReflectionPad3d) | [paddle.nn.Pad3D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Pad3D_cn.html#pad3d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.nn.ReflectionPad3d.html) | +| 10 | [torchvision.models.squeezenet1_1](https://pytorch.org/vision/main/models/generated/torchvision.models.squeezenet1_1.html) | [paddle.vision.models.squeezenet1_1](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/squeezenet1_1_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.squeezenet1_1.html) | +| 11 | [torchvision.transforms.functional.resize](https://pytorch.org/vision/main/generated/torchvision.transforms.functional.resize.html) | [paddle.vision.transforms.resize](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/resize_cn.html) | - | +| 12 | [torch.nn.Module.type](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.type) | [paddle.nn.Layer.astype](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#astype-dtype-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.nn.Module.type.html) | +| 13 | [torchvision.models.densenet161](https://pytorch.org/vision/main/models/generated/torchvision.models.densenet161.html) | [paddle.vision.models.densenet161](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/densenet161_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.densenet161.html) | +| 14 | [torch.cuda.synchronize](https://pytorch.org/docs/stable/generated/torch.cuda.synchronize.html#torch.cuda.synchronize) | [paddle.device.synchronize](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/device/cuda/synchronize_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.cuda.synchronize.html) | +| 15 | [torchvision.models.shufflenet\_v2\_x2\_0](https://pytorch.org/vision/main/models/generated/torchvision.models.shufflenet_v2_x2_0.html) | [paddle.vision.models.shufflenet\_v2\_x2\_0](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/shufflenet_v2_x2_0_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.shufflenet_v2_x2_0.html) | +| 16 | [torchvision.models.inception_v3](https://pytorch.org/vision/main/models/generated/torchvision.models.inception_v3.html) | [paddle.vision.models.inception_v3](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/inception_v3_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.inception_v3.html) | +| 17 | [torch.Tensor.copysign](https://pytorch.org/docs/stable/generated/torch.Tensor.copysign.html#torch.Tensor.copysign) | paddle.Tensor.copysign | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.copysign.html) | +| 18 | [torch.Tensor.copysign_](https://pytorch.org/docs/stable/generated/torch.Tensor.copysign_.html#torch.Tensor.copysign_) | paddle.Tensor.copysign_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.copysign_.html) | +| 19 | [torchvision.transforms.functional.affine](https://pytorch.org/vision/main/generated/torchvision.transforms.functional.affine.html) | [paddle.vision.transforms.affine](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/affine_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.transforms.functional.affine.html) | +| 20 | [torchvision.models.alexnet](https://pytorch.org/vision/stable/models/generated/torchvision.models.alexnet.html) | [paddle.vision.models.alexnet](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/alexnet_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.alexnet.html) | +| 21 | [torch.cartesian_prod](https://pytorch.org/docs/stable/generated/torch.cartesian_prod.html#torch-cartesian-prod) | [paddle.cartesian_prod](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/cartesian_prod_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.cartesian_prod.html) | +| 22 | [torch.broadcast_tensors](https://pytorch.org/docs/stable/generated/torch.broadcast_tensors.html?highlight=broadcast_tensors#torch.broadcast_tensors) | [paddle.broadcast_tensors](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/broadcast_tensors_cn.html#broadcast-tensors) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.broadcast_tensors.html) | +| 23 | [torchvision.models.vgg16_bn](https://pytorch.org/vision/main/models/generated/torchvision.models.vgg16_bn.html) | [paddle.vision.models.vgg16](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/vgg16_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.vgg16_bn.html) | +| 24 | [torchvision.models.shufflenet\_v2\_x0\_5](https://pytorch.org/vision/main/models/generated/torchvision.models.shufflenet_v2_x0_5.html) | [paddle.vision.models.shufflenet\_v2\_x0\_5](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/shufflenet_v2_x0_5_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.shufflenet_v2_x0_5.html) | +| 25 | [torch.Tensor.le_](https://pytorch.org/docs/stable/generated/torch.Tensor.le_.html) | paddle.Tensor.less_equal_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.le_.html) | +| 26 | [torchvision.models.densenet169](https://pytorch.org/vision/main/models/generated/torchvision.models.densenet169.html) | [paddle.vision.models.densenet169](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/densenet169_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.densenet169.html) | +| 27 | [torchvision.models.resnet18](https://pytorch.org/vision/stable/models/generated/torchvision.models.resnet18.html) | [paddle.vision.models.resnet18](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/resnet18_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.resnet18.html) | +| 28 | [torchvision.transforms.RandomRotation](https://pytorch.org/vision/main/generated/torchvision.transforms.RandomRotation.html) | [paddle.vision.transforms.RandomRotation](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/RandomRotation_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.transforms.RandomRotation.html) | +| 29 | [torch.Tensor.gt_](https://pytorch.org/docs/stable/generated/torch.Tensor.gt_.html) | paddle.Tensor.greater_than_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.gt_.html) | +| 30 | [torchvision.models.mobilenet\_v3\_small](https://pytorch.org/vision/main/models/generated/torchvision.models.mobilenet_v3_small.html) | [paddle.vision.models.mobilenet\_v3\_small](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/mobilenet_v3_small_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.mobilenet_v3_small.html) | +| 31 | [torchvision.models.vgg11_bn](https://pytorch.org/vision/main/models/generated/torchvision.models.vgg11_bn.html) | [paddle.vision.models.vgg11](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/vgg11_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.vgg11_bn.html) | +| 32 | [torchvision.transforms.RandomAffine](https://pytorch.org/vision/main/generated/torchvision.transforms.RandomAffine.html) | [paddle.vision.transforms.RandomAffine](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/RandomAffine_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.transforms.RandomAffine.html) | +| 33 | [torchvision.models.vgg16](https://pytorch.org/vision/main/models/generated/torchvision.models.vgg16.html) | [paddle.vision.models.vgg16](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/vgg16_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.vgg16.html) | +| 34 | [torch.Tensor.qr](https://pytorch.org/docs/stable/generated/torch.Tensor.qr.html?highlight=torch+tensor+qr#torch.Tensor.qr) | [paddle.Tensor.qr](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/linalg/qr_cn.html#qr) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.qr.html) | +| 35 | [torchvision.models.squeezenet1_0](https://pytorch.org/vision/main/models/generated/torchvision.models.squeezenet1_0.html) | [paddle.vision.models.squeezenet1_0](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/squeezenet1_0_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.squeezenet1_0.html) | +| 36 | [torchvision.transforms.RandomResizedCrop](https://pytorch.org/vision/main/generated/torchvision.transforms.RandomResizedCrop.html) | [paddle.vision.transforms.RandomResizedCrop](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/RandomResizedCrop_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.transforms.RandomResizedCrop.html) | +| 37 | [torch.nn.ReplicationPad1d](https://pytorch.org/docs/stable/generated/torch.nn.ReplicationPad1d.html?highlight=pad#torch.nn.ReplicationPad1d) | [paddle.nn.Pad1D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Pad1D_cn.html#pad1d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.nn.ReplicationPad1d.html) | +| 38 | [torch.Tensor.floor\_divide\_](https://pytorch.org/docs/stable/generated/torch.Tensor.floor_divide_.html) | paddle.Tensor.floor_divide_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.floor_divide_.html) | +| 39 | [torchvision.transforms.functional.perspective](https://pytorch.org/vision/main/generated/torchvision.transforms.functional.perspective.html#perspective) | [paddle.vision.transforms.perspective](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/transforms/perspective_cn.html#cn-api-paddle-vision-transforms-perspective) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.transforms.functional.perspective.html) | +| 40 | [torchvision.io.decode_jpeg](https://pytorch.org/vision/main/generated/torchvision.io.decode_jpeg.html) | [paddle.vision.ops.decode_jpeg](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/ops/decode_jpeg_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.io.decode_jpeg.html) | +| 41 | [torchvision.models.vgg19](https://pytorch.org/vision/main/models/generated/torchvision.models.vgg19.html) | [paddle.vision.models.vgg19](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/vgg19_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.vgg19.html) | +| 42 | [torchvision.models.wide\_resnet101\_2](https://pytorch.org/vision/stable/models/generated/torchvision.models.wide_resnet101_2.html) | [paddle.vision.models.wide\_resnet101\_2](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/wide_resnet101_2_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.wide_resnet101_2.html) | +| 43 | [torch.block_diag](https://pytorch.org/docs/stable/generated/torch.block_diag.html#torch-block-diag) | [paddle.block_diag](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/block_diag_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.block_diag.html) | +| 44 | [torchvision.models.shufflenet\_v2\_x1\_5](https://pytorch.org/vision/main/models/generated/torchvision.models.shufflenet_v2_x1_5.html) | [paddle.vision.models.shufflenet\_v2\_x1\_5](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/shufflenet_v2_x1_5_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.shufflenet_v2_x1_5.html) | +| 45 | [torch.nn.ReflectionPad1d](https://pytorch.org/docs/stable/generated/torch.nn.ReflectionPad1d.html?highlight=pad#torch.nn.ReflectionPad1d) | [paddle.nn.Pad1D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Pad1D_cn.html#pad1d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.nn.ReflectionPad1d.html) | +| 46 | [torchvision.transforms.Resize](https://pytorch.org/vision/stable/generated/torchvision.transforms.Resize.html#torchvision.transforms.Resize) | [paddle.vision.transforms.Resize](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/Resize__upper_cn.html#resize) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.transforms.Resize.html) | +| 47 | [torch.linalg.lu_solve](https://pytorch.org/docs/stable/generated/torch.linalg.lu_solve.html#torch.linalg.lu_solve) | [paddle.linalg.lu_solve](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/lu_solve_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.linalg.lu_solve.html) | +| 48 | [torchvision.models.vgg13_bn](https://pytorch.org/vision/main/models/generated/torchvision.models.vgg13_bn.html) | [paddle.vision.models.vgg13](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/vgg13_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.vgg13_bn.html) | +| 49 | [torch.Tensor.fmod_](https://pytorch.org/docs/stable/generated/torch.Tensor.fmod_.html#torch.Tensor.fmod_) | paddle.Tensor.mod_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.fmod_.html) | +| 50 | [torchvision.models.densenet201](https://pytorch.org/vision/main/models/generated/torchvision.models.densenet201.html) | [paddle.vision.models.densenet201](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/densenet201_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.densenet201.html) | +| 51 | [torch.Tensor.slice_scatter](https://pytorch.org/docs/stable/generated/torch.Tensor.slice_scatter.html#torch-tensor-slice-scatter) | [paddle.Tensor.slice_scatter](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#slice_scatter-value-axes-starts-ends-strides-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.slice_scatter.html) | +| 52 | [torchvision.models.shufflenet\_v2\_x1\_0](https://pytorch.org/vision/main/models/generated/torchvision.models.shufflenet_v2_x1_0.html) | [paddle.vision.models.shufflenet\_v2\_x1\_0](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/shufflenet_v2_x1_0_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.shufflenet_v2_x1_0.html) | +| 53 | [torch.Tensor.ge_](https://pytorch.org/docs/stable/ge_nerated/torch.Tensor.ge_.html) | paddle.Tensor.greater_equal_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.ge_.html) | +| 54 | [torchvision.models.resnet101](https://pytorch.org/vision/stable/models/generated/torchvision.models.resnet101.html) | [paddle.vision.models.resnet101](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/resnet101_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.resnet101.html) | +| 55 | [torch.nn.ReplicationPad2d](https://pytorch.org/docs/stable/generated/torch.nn.ReplicationPad2d.html?highlight=pad#torch.nn.ReplicationPad2d) | [paddle.nn.Pad2D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Pad2D_cn.html#pad2d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.nn.ReplicationPad2d.html) | +| 56 | [torchvision.models.vgg13](https://pytorch.org/vision/main/models/generated/torchvision.models.vgg13.html) | [paddle.vision.models.vgg13](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/vgg13_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.vgg13.html) | +| 57 | [torchvision.transforms.RandomPerspective](https://pytorch.org/vision/main/generated/torchvision.transforms.RandomPerspective.html?highlight=randomperspective#torchvision.transforms.RandomPerspective) | [paddle.vision.transforms.RandomPerspective](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vision/transforms/RandomPerspective_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.transforms.RandomPerspective.html) | +| 58 | [torch.set\_default\_tensor\_type](https://pytorch.org/docs/stable/generated/torch.set_default_tensor_type.html) | [paddle.set\_default\_dtype](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/set_default_dtype_cn.html#set-default-dtype) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.set_default_tensor_type.html) | +| 59 | [torch.Tensor.fmod](https://pytorch.org/docs/stable/generated/torch.Tensor.fmod.html#torch.Tensor.fmod) | [paddle.Tensor.mod](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#mod-y-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.fmod.html) | +| 60 | [torch.Tensor.lt_](https://pytorch.org/docs/stable/generated/torch.Tensor.lt_.html) | paddle.Tensor.less_than_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.lt_.html) | +| 61 | [torchvision.models.vgg11](https://pytorch.org/vision/main/models/generated/torchvision.models.vgg11.html) | [paddle.vision.models.vgg11](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/vgg11_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.vgg11.html) | +| 62 | [torchvision.models.vgg19_bn](https://pytorch.org/vision/main/models/generated/torchvision.models.vgg19_bn.html) | [paddle.vision.models.vgg19](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/vgg19_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.vgg19_bn.html) | +| 63 | [torch.nn.ReplicationPad3d](https://pytorch.org/docs/stable/generated/torch.nn.ReplicationPad3d.html?highlight=pad#torch.nn.ReplicationPad3d) | [paddle.nn.Pad3D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Pad3D_cn.html#pad3d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.nn.ReplicationPad3d.html) | +| 64 | [torchvision.models.resnet34](https://pytorch.org/vision/stable/models/generated/torchvision.models.resnet34.html) | [paddle.vision.models.resnet34](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/resnet34_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.resnet34.html) | +| 65 | [torch.nn.ReflectionPad2d](https://pytorch.org/docs/stable/generated/torch.nn.ReflectionPad2d.html?highlight=pad#torch.nn.ReflectionPad2d) | [paddle.nn.Pad2D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Pad2D_cn.html#pad2d) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.nn.ReflectionPad2d.html) | +| 66 | [torchvision.models.wide\_resnet50\_2](https://pytorch.org/vision/stable/models/generated/torchvision.models.wide_resnet50_2.html) | [paddle.vision.models.wide\_resnet50\_2](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/wide_resnet50_2_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.wide_resnet50_2.html) | +| 67 | [torchvision.models.googlenet](https://pytorch.org/vision/main/models/generated/torchvision.models.googlenet.html) | [paddle.vision.models.googlenet](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/googlenet_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.googlenet.html) | +| 68 | [torchvision.models.resnext50_32x4d](https://pytorch.org/vision/main/models/generated/torchvision.models.resnext50_32x4d.html) | [paddle.vision.models.resnext50_32x4d](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/resnext50_32x4d_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.resnext50_32x4d.html) | +| 69 | [torchvision.models.resnet152](https://pytorch.org/vision/stable/models/generated/torchvision.models.resnet152.html) | [paddle.vision.models.resnet152](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/resnet152_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.resnet152.html) | +| 70 | [torchvision.models.mobilenet\_v3\_large](https://pytorch.org/vision/main/models/generated/torchvision.models.mobilenet_v3_large.html) | [paddle.vision.models.mobilenet\_v3\_large](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/mobilenet_v3_large_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.mobilenet_v3_large.html) | +| 71 | [torch.Tensor.eq_](https://pytorch.org/docs/stable/generated/torch.Tensor.eq_.html) | paddle.Tensor.equal_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.eq_.html) | +| 72 | [torch.cpu.set_device](https://pytorch.org/docs/stable/generated/torch.cpu.set_device.html) | [paddle.device.set_device](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/device/set_device_cn.html#set-device) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.cpu.set_device.html) | +| 73 | [torch.distributed.reduce\_scatter\_tensor](https://docs.pytorch.org/docs/stable/distributed.html#torch.distributed.reduce_scatter_tensor) | [paddle.distributed.reduce_scatter](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distributed/reduce_scatter_cn.html#reduce-scatter) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.distributed.reduce_scatter_tensor.html) | +| 74 | [torchvision.models.mobilenet_v2](https://pytorch.org/vision/stable/models/generated/torchvision.models.mobilenet_v2.html) | [paddle.vision.models.mobilenet_v2](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/mobilenet_v2_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.mobilenet_v2.html) | +| 75 | [torchvision.models.densenet121](https://pytorch.org/vision/main/models/generated/torchvision.models.densenet121.html) | [paddle.vision.models.densenet121](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/models/densenet121_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torchvision.models.densenet121.html) | +| 76 | [torch.Tensor.ne_](https://pytorch.org/docs/stable/generated/torch.Tensor.ne_.html) | paddle.Tensor.not_equal_ | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.ne_.html) | +| 77 | [torch.cuda.set\_rng\_state\_all](https://pytorch.org/docs/stable/generated/torch.cuda.set_rng_state_all.html#torch.cuda.set_rng_state_all) | paddle.set_rng_state | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.cuda.set_rng_state_all.html) | ### 9. 返回参数类型不一致 **分类简介** @@ -120,7 +1670,31 @@ paddle.nn.Softplus(beta=0.5, threshold=15) | 序号 | Pytorch 最新 release | Paddle develop | 备注 | |------|-------------------|---------------|------| - +| 1 | [transformers.PreTrainedModel.generate](https://github.com/huggingface/transformers/blob/0fdea8607d7e01eb0e38a1ebeb7feee30a22f0cf/src/transformers/generation/utils.py#L1567) | [paddlenlp.transformers.PreTrainedModel.generate](https://github.com/PaddlePaddle/PaddleNLP/blob/88d4b19bc6865fb28c11d2ce83d07c3b4b8dc423/paddlenlp/generation/utils.py#L604) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/transformers.PreTrainedModel.generate.html) | +| 2 | [torch.Tensor.allclose](https://pytorch.org/docs/stable/generated/torch.Tensor.allclose.html) | [paddle.Tensor.allclose](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#allclose-y-rtol-1e-05-atol-1e-08-equal-nan-false-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.Tensor.allclose.html) | +| 3 | [torch.triangular_solve](https://pytorch.org/docs/stable/generated/torch.triangular_solve.html#torch.triangular_solve) | [paddle.linalg.triangular_solve](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/triangular_solve_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.triangular_solve.html) | +| 4 | [torch.Tensor.histc](https://pytorch.org/docs/stable/generated/torch.Tensor.histc.html?highlight=torch+tensor+histc#torch.Tensor.histc) | [paddle.Tensor.histogram](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#histogram-bins-100-min-0-max-0) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.Tensor.histc.html) | +| 5 | [torch.equal](https://pytorch.org/docs/stable/generated/torch.equal.html?highlight=equal#torch.equal) | [paddle.equal_all](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/equal_all_cn.html#equal-all) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.equal.html) | +| 6 | [torch.slogdet](https://pytorch.org/docs/stable/generated/torch.slogdet.html?highlight=slogdet#torch.slogdet) | [paddle.linalg.slogdet](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/slogdet_cn.html#slogdet) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.slogdet.html) | +| 7 | [torch.Tensor.equal](https://pytorch.org/docs/stable/generated/torch.Tensor.equal.html?highlight=equal#torch.Tensor.equal) | [paddle.Tensor.equal_all](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#equal-all-y-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.Tensor.equal.html) | +| 8 | [torch.cuda.get\_rng\_state\_all](https://pytorch.org/docs/stable/generated/torch.cuda.get_rng_state_all.html#torch.cuda.get_rng_state_all) | paddle.get_rng_state | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.cuda.get_rng_state_all.html) | +| 9 | [transformers.PreTrainedTokenizer.encode](https://hf-mirror.com/docs/transformers/v4.42.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer.encode) | [paddlenlp.transformers.PreTrainedTokenizer.encode](https://github.com/PaddlePaddle/PaddleNLP/blob/88d4b19bc6865fb28c11d2ce83d07c3b4b8dc423/paddlenlp/transformers/tokenizer_utils_base.py#L2369) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/transformers.PreTrainedTokenizer.encode.html) | +| 10 | [torch.nn.LSTMCell](https://pytorch.org/docs/stable/generated/torch.nn.LSTMCell.html#torch.nn.LSTMCell) | [paddle.nn.LSTMCell](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/LSTMCell_cn.html#lstmcell) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.nn.LSTMCell.html) | +| 11 | [torch.get\_rng\_state](https://pytorch.org/docs/stable/generated/torch.get_rng_state.html#torch.get_rng_state) | paddle.get_rng_state | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.get_rng_state.html) | +| 12 | [torch.Tensor.min](https://pytorch.org/docs/stable/generated/torch.Tensor.min.html) | [paddle.Tensor.min](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#min-axis-none-keepdim-false-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.Tensor.min.html) | +| 13 | [torch.linalg.cholesky_ex](https://pytorch.org/docs/stable/generated/torch.linalg.cholesky_ex.html) | [paddle.linalg.cholesky](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/cholesky_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.linalg.cholesky_ex.html) | +| 14 | [torch.Tensor.max](https://pytorch.org/docs/stable/generated/torch.Tensor.max.html) | [paddle.Tensor.max](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#max-axis-none-keepdim-false-name-none) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.Tensor.max.html) | +| 15 | [torch.Tensor.triangular_solve](https://pytorch.org/docs/stable/generated/torch.Tensor.triangular_solve.html#torch.Tensor.triangular_solve) | [paddle.linalg.triangular_solve](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/triangular_solve_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.Tensor.triangular_solve.html) | +| 16 | [torch.linalg.inv_ex](https://pytorch.org/docs/stable/generated/torch.linalg.inv_ex.html) | [paddle.linalg.inv](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/inv_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.linalg.inv_ex.html) | +| 17 | [torch.Tensor.sort](https://pytorch.org/docs/stable/generated/torch.Tensor.sort.html#torch-tensor-sort) | [paddle.Tensor.sort](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sort_cn.html#sort) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.Tensor.sort.html) | +| 18 | [torch.cuda.manual_seed](https://pytorch.org/docs/stable/generated/torch.cuda.manual_seed.html#torch.cuda.manual_seed) | [paddle.seed](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/seed_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.cuda.manual_seed.html) | +| 19 | [torch.utils.data.default_collate](https://pytorch.org/docs/stable/data.html?highlight=default_collate#torch.utils.data.default_collate) | paddle.io.dataloader.collate.default_collate_fn | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.utils.data.default_collate.html) | +| 20 | [torch.nn.GRUCell](https://pytorch.org/docs/stable/generated/torch.nn.GRUCell.html#torch.nn.GRUCell) | [paddle.nn.GRUCell](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/GRUCell_cn.html#grucell) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.nn.GRUCell.html) | +| 21 | [torch.sparse.sum](https://pytorch.org/docs/stable/generated/torch.sparse.sum.html?highlight=sparse+sum#torch.sparse.sum) | [paddle.sparse.sum](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sparse/sum_cn.html#sum) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.sparse.sum.html) | +| 22 | [torch.histc](https://pytorch.org/docs/stable/generated/torch.histc.html#torch-histc) | [paddle.histogram](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/histogram_cn.html#histogram) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.histc.html) | +| 23 | [torch.nn.RNNCell](https://pytorch.org/docs/stable/generated/torch.nn.RNNCell.html#torch.nn.RNNCell) | [paddle.nn.SimpleRNNCell](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/SimpleRNNCell_cn.html#simplernncell) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.nn.RNNCell.html) | +| 24 | [torch.Tensor.slogdet](https://pytorch.org/docs/stable/generated/torch.Tensor.slogdet.html) | [paddle.linalg.slogdet](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/slogdet_cn.html#slogdet) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.Tensor.slogdet.html) | +| 25 | [torch.linalg.slogdet](https://pytorch.org/docs/stable/generated/torch.linalg.slogdet.html#torch.linalg.slogdet) | [paddle.linalg.slogdet](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/slogdet_cn.html#slogdet) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.linalg.slogdet.html) | ### 10. 组合替代实现 **分类简介** @@ -129,7 +1703,176 @@ paddle.nn.Softplus(beta=0.5, threshold=15) | 序号 | Pytorch 最新 release | Paddle develop | 备注 | |------|-------------------|---------------|------| - +| 1 | [torch.Tensor.select](https://pytorch.org/docs/stable/generated/torch.Tensor.select.html?highlight=select#torch.Tensor.select) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.select.html) | +| 2 | [torch.\_foreach\_round\_](https://pytorch.org/docs/stable/generated/torch._foreach_round_.html#torch-foreach-round) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_round_.html) | +| 3 | [torch.cuda.set\_per\_process\_memory\_fraction](https://pytorch.org/docs/stable/generated/torch.cuda.set_per_process_memory_fraction.html) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.cuda.set_per_process_memory_fraction.html) | +| 4 | [torch.Tensor.dim_order](https://pytorch.org/docs/stable/generated/torch.Tensor.dim_order.html?highlight=dim_order#torch.Tensor.dim_order) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.dim_order.html) | +| 5 | [torch.optim.lr_scheduler.LambdaLR](https://pytorch.org/docs/stable/generated/torch.optim.lr_scheduler.LambdaLR.html) | [paddle.optimizer.lr.LambdaDecay](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/lr/LambdaDecay_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.optim.lr_scheduler.LambdaLR.html) | +| 6 | [torch.Tensor.is_signed](https://pytorch.org/docs/stable/generated/torch.Tensor.is_signed.html#torch.Tensor.is_signed) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.is_signed.html) | +| 7 | [torch.Tensor.addcdiv](https://pytorch.org/docs/stable/generated/torch.Tensor.addcdiv.html#torch.Tensor.addcdiv) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.addcdiv.html) | +| 8 | [torch.Tensor.is_pinned](https://pytorch.org/docs/stable/generated/torch.Tensor.is_pinned.html?highlight=is_pinned#torch.Tensor.is_pinned) | - | - | +| 9 | [torch.nn.modules.module.register\_module\_forward\_pre\_hook](https://pytorch.org/docs/stable/generated/torch.nn.modules.module.register_module_forward_pre_hook.html) | [paddle.nn.Layer.register\_forward\_pre\_hook](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#register-forward-pre-hook-hook) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.modules.module.register_module_forward_pre_hook.html) | +| 10 | [torch.optim.lr_scheduler.MultiplicativeLR](https://pytorch.org/docs/stable/generated/torch.optim.lr_scheduler.MultiplicativeLR.html) | [paddle.optimizer.lr.MultiplicativeDecay](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/lr/MultiplicativeDecay_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.optim.lr_scheduler.MultiplicativeLR.html) | +| 11 | [torch.aminmax](https://pytorch.org/docs/stable/generated/torch.aminmax.html#torch.aminmax) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.aminmax.html) | +| 12 | [torch.seed](https://pytorch.org/docs/stable/generated/torch.seed.html#torch.seed) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.seed.html) | +| 13 | [torch.nn.functional.softmin](https://pytorch.org/docs/stable/generated/torch.nn.functional.softmin.html#torch.nn.functional.softmin) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.functional.softmin.html) | +| 14 | [torch.\_foreach\_ceil\_](https://pytorch.org/docs/stable/generated/torch._foreach_ceil_.html#torch-foreach-ceil) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_ceil_.html) | +| 15 | [torch.\_foreach\_frac\_](https://pytorch.org/docs/stable/generated/torch._foreach_frac_.html#torch-foreach-frac) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_frac_.html) | +| 16 | [torch.\_foreach\_floor](https://pytorch.org/docs/stable/generated/torch._foreach_floor.html) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_floor.html) | +| 17 | [torch.set\_num\_interop\_threads](https://pytorch.org/docs/stable/generated/torch.set_num_interop_threads.html) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.set_num_interop_threads.html) | +| 18 | [torch.logdet](https://pytorch.org/docs/stable/generated/torch.logdet.html#torch.logdet) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.logdet.html) | +| 19 | [torch.\_foreach\_tan](https://pytorch.org/docs/stable/generated/torch._foreach_tan.html#torch-foreach-tan) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_tan.html) | +| 20 | [torch.\_foreach\_ceil](https://pytorch.org/docs/stable/generated/torch._foreach_ceil.html#torch-foreach-ceil) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_ceil.html) | +| 21 | [torch.nn.Module.get_buffer](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.get_buffer) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.Module.get_buffer.html) | +| 22 | [torch.\_foreach\_atan\_](https://pytorch.org/docs/stable/generated/torch._foreach_atan_.html#torch-foreach-atan) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_atan_.html) | +| 23 | [torch.narrow_copy](https://pytorch.org/docs/stable/generated/torch.narrow_copy.html#torch.narrow_copy) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.narrow_copy.html) | +| 24 | [torch.Tensor.addcmul_](https://pytorch.org/docs/stable/generated/torch.Tensor.addcmul_.html#torch-tensor-addcmul) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.addcmul_.html) | +| 25 | [torch.\_foreach\_log](https://pytorch.org/docs/stable/generated/torch._foreach_log.html#torch-foreach-log) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_log.html) | +| 26 | [fairscale.nn.model\_parallel.initialize.model\_parallel\_is\_initialized](https://github.com/facebookresearch/fairscale/blob/164cc0f3170b4a3951dd84dda29c3e1504ac4d6e/fairscale/nn/model_parallel/initialize.py#L119) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/fairscale.nn.model_parallel.initialize.model_parallel_is_initialized.html) | +| 27 | [torch.optim.lr_scheduler.CyclicLR](https://pytorch.org/docs/stable/generated/torch.optim.lr_scheduler.CyclicLR.html) | [paddle.optimizer.lr.CyclicLR](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/lr/CyclicLR_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.optim.lr_scheduler.CyclicLR.html) | +| 28 | [torch.optim.lr_scheduler.ReduceLROnPlateau](https://pytorch.org/docs/stable/generated/torch.optim.lr_scheduler.ReduceLROnPlateau.html) | [paddle.optimizer.lr.ReduceOnPlateau](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/lr/ReduceOnPlateau_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.optim.lr_scheduler.ReduceLROnPlateau.html) | +| 29 | [torch.\_foreach\_sin](https://docs.pytorch.org/docs/stable/generated/torch._foreach_sin.html#torch-foreach-sin) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_sin.html) | +| 30 | [torch.Tensor.narrow_copy](https://pytorch.org/docs/stable/generated/torch.Tensor.narrow_copy.html#torch.Tensor.narrow_copy) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.narrow_copy.html) | +| 31 | [torch.frombuffer](https://pytorch.org/docs/stable/generated/torch.frombuffer.html) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.frombuffer.html) | +| 32 | [torch.histogram](https://pytorch.org/docs/stable/generated/torch.histogram.html#torch.histogram) | [paddle.histogram](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/histogram_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.histogram.html) | +| 33 | [torch.\_foreach\_log10](https://pytorch.org/docs/stable/generated/torch._foreach_log10.html#torch-foreach-log10) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_log10.html) | +| 34 | [torch.Tensor.addmv](https://pytorch.org/docs/stable/generated/torch.Tensor.addmv.html#torch.Tensor.addmv) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.addmv.html) | +| 35 | [torch.\_foreach\_cos](https://pytorch.org/docs/stable/generated/torch._foreach_cos.html#torch-foreach-cos) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_cos.html) | +| 36 | [torch.linalg.lu](https://pytorch.org/docs/stable/generated/torch.linalg.lu.html?highlight=torch+linalg+lu#torch.linalg.lu) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.linalg.lu.html) | +| 37 | [torch.Tensor.erfc](https://pytorch.org/docs/stable/generated/torch.Tensor.erfc.html) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.erfc.html) | +| 38 | [torch.cuda.initial_seed](https://pytorch.org/docs/stable/generated/torch.cuda.initial_seed.html?highlight=torch+cuda+initial_seed#torch.cuda.initial_seed) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.cuda.initial_seed.html) | +| 39 | [torch.Tensor.addbmm](https://pytorch.org/docs/stable/generated/torch.Tensor.addbmm.html#torch.Tensor.addbmm) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.addbmm.html) | +| 40 | [torch.optim.lr_scheduler.ConstantLR](https://pytorch.org/docs/stable/generated/torch.optim.lr_scheduler.ConstantLR.html) | [paddle.optimizer.lr.PiecewiseDecay](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/lr/PiecewiseDecay_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.optim.lr_scheduler.ConstantLR.html) | +| 41 | [torch.addcdiv](https://pytorch.org/docs/stable/generated/torch.addcdiv.html#torch.addcdiv) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.addcdiv.html) | +| 42 | [fairscale.nn.model\_parallel.initialize.initialize\_model\_parallel](https://github.com/facebookresearch/fairscale/blob/164cc0f3170b4a3951dd84dda29c3e1504ac4d6e/fairscale/nn/model_parallel/initialize.py#L41) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/fairscale.nn.model_parallel.initialize.initialize_model_parallel.html) | +| 43 | [torch.\_foreach\_erf\_](https://pytorch.org/docs/stable/generated/torch._foreach_erf_.html#torch-foreach-erf) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_erf_.html) | +| 44 | [torch.var_mean](https://pytorch.org/docs/stable/generated/torch.var_mean.html?highlight=var_mean#torch.var_mean) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.var_mean.html) | +| 45 | [torch.optim.lr_scheduler.CosineAnnealingLR](https://pytorch.org/docs/stable/generated/torch.optim.lr_scheduler.CosineAnnealingLR.html) | [paddle.optimizer.lr.CosineAnnealingDecay](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/lr/CosineAnnealingDecay_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.optim.lr_scheduler.CosineAnnealingLR.html) | +| 46 | [torch.multiprocessing.cpu_count](https://github.com/pytorch/pytorch/blob/main/torch/multiprocessing/__init__.py) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.multiprocessing.cpu_count.html) | +| 47 | [torch.Tensor.xlogy_](https://pytorch.org/docs/stable/generated/torch.Tensor.xlogy_.html#torch.Tensor.xlogy_) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.xlogy_.html) | +| 48 | os.environ.get | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/os.environ.get.html) | +| 49 | [torch.special.exp2](https://pytorch.org/docs/stable/special.html#torch.special.exp2) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.special.exp2.html) | +| 50 | [torch.nn.modules.utils._ntuple](https://github.com/pytorch/pytorch/blob/1f4d4d3b7836d38d936a21665e6b2ab0b39d7092/torch/nn/modules/utils.py#L8) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.modules.utils._ntuple.html) | +| 51 | [torch.nn.Softmin](https://pytorch.org/docs/stable/generated/torch.nn.Softmin.html#softmin) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.Softmin.html) | +| 52 | [torch.\_foreach\_sinh\_](https://pytorch.org/docs/stable/generated/torch._foreach_sinh_.html#torch-foreach-sinh) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_sinh_.html) | +| 53 | [torch.chain_matmul](https://pytorch.org/docs/stable/generated/torch.chain_matmul.html?highlight=chain_matmul#torch.chain_matmul) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.chain_matmul.html) | +| 54 | [torch.get\_num\_threads](https://pytorch.org/docs/stable/generated/torch.get_num_threads.html) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.get_num_threads.html) | +| 55 | setuptools.setup | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/setuptools.setup.html) | +| 56 | [torch.nn.Module.get_parameter](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.get_parameter) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.Module.get_parameter.html) | +| 57 | [torch.Tensor.aminmax](https://pytorch.org/docs/stable/generated/torch.Tensor.aminmax.html#torch.Tensor.aminmax) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.aminmax.html) | +| 58 | [torch.set\_num\_threads](https://pytorch.org/docs/stable/generated/torch.set_num_threads.html) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.set_num_threads.html) | +| 59 | [torch.testing.make_tensor](https://pytorch.org/docs/stable/testing.html#torch.testing.make_tensor) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.testing.make_tensor.html) | +| 60 | [torch.adjoint](https://pytorch.org/docs/stable/generated/torch.adjoint.html#torch.adjoint) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.adjoint.html) | +| 61 | [torch.testing.assert_close](https://pytorch.org/docs/stable/testing.html?highlight=assert_close#torch.testing.assert_close) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.testing.assert_close.html) | +| 62 | [torch.Tensor.mH](https://pytorch.org/docs/stable/tensors.html?#torch.Tensor.mH) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.mH.html) | +| 63 | [torch.distributions.transforms.PositiveDefiniteTransform](https://pytorch.org/docs/stable/distributions.html#module-torch.distributions.transforms) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.distributions.transforms.PositiveDefiniteTransform.html) | +| 64 | [torch.\_foreach\_expm1\_](https://pytorch.org/docs/stable/generated/torch._foreach_expm1_.html) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_expm1_.html) | +| 65 | [torch.nn.Module.get_submodule](https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.get_submodule) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.Module.get_submodule.html) | +| 66 | [torch.std_mean](https://pytorch.org/docs/stable/generated/torch.std_mean.html?highlight=std_mean#torch.std_mean) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.std_mean.html) | +| 67 | [torch.addcmul](https://pytorch.org/docs/stable/generated/torch.addcmul.html#torch.addcmul) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.addcmul.html) | +| 68 | [torch.Tensor.xlogy](https://pytorch.org/docs/stable/generated/torch.Tensor.xlogy.html#torch.Tensor.xlogy) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.xlogy.html) | +| 69 | [torch.Tensor.histogram](https://pytorch.org/docs/stable/generated/torch.Tensor.histogram.html#torch.Tensor.histogram) | [paddle.Tensor.histogram](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#histogram-bins-100-min-0-max-0) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.histogram.html) | +| 70 | [torch.Tensor.addr](https://pytorch.org/docs/stable/generated/torch.Tensor.addr.html#torch.Tensor.addr) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.addr.html) | +| 71 | [torch.\_foreach\_acos\_](https://pytorch.org/docs/stable/generated/torch._foreach_acos_.html#torch-foreach-acos) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_acos_.html) | +| 72 | [torch.\_foreach\_reciprocal](https://pytorch.org/docs/stable/generated/torch._foreach_reciprocal.html#torch-foreach-reciprocal) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_reciprocal.html) | +| 73 | [torch.addmv](https://pytorch.org/docs/stable/generated/torch.addmv.html?highlight=addmv#torch.addmv) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.addmv.html) | +| 74 | [torch.\_foreach\_sigmoid](https://pytorch.org/docs/stable/generated/torch._foreach_sigmoid.html#torch-foreach-sigmoid) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_sigmoid.html) | +| 75 | [torch.Tensor.reshape_as](https://pytorch.org/docs/stable/generated/torch.Tensor.reshape_as.html#torch.Tensor.reshape_as) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.reshape_as.html) | +| 76 | [torch.\_foreach\_exp](https://pytorch.org/docs/stable/generated/torch._foreach_exp.html#torch-foreach-exp) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_exp.html) | +| 77 | [torch.Generator](https://pytorch.org/docs/stable/generated/torch.Generator.html#generator) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Generator.html) | +| 78 | [torch.inference_mode](https://pytorch.org/docs/stable/generated/torch.inference_mode.html#torch.inference_mode) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.inference_mode.html) | +| 79 | [torch.Tensor.float\_power\_](https://pytorch.org/docs/stable/generated/torch.Tensor.float_power_.html#torch.Tensor.float_power_) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.float_power_.html) | +| 80 | [torch._assert](https://pytorch.org/docs/stable/generated/torch._assert.html) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._assert.html) | +| 81 | [torch.\_foreach\_cosh](https://pytorch.org/docs/stable/generated/torch._foreach_cosh.html#torch-foreach-cosh) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_cosh.html) | +| 82 | [torch.\_foreach\_log2](https://pytorch.org/docs/stable/generated/torch._foreach_log2.html#torch-foreach-log2) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_log2.html) | +| 83 | [torch.\_foreach\_asin](https://pytorch.org/docs/stable/generated/torch._foreach_asin.html#torch-foreach-asin) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_asin.html) | +| 84 | [torch.backends.cudnn.is_available](https://pytorch.org/docs/stable/backends.html?highlight=torch+backends+cudnn+is_available#torch.backends.cudnn.is_available) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.backends.cudnn.is_available.html) | +| 85 | [torch.autograd.Variable](https://pytorch.org/docs/stable/autograd.html#variable-deprecated) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.autograd.Variable.html) | +| 86 | [torch.special.xlogy](https://pytorch.org/docs/stable/special.html#torch.special.xlogy) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.special.xlogy.html) | +| 87 | [torch.special.expit](https://pytorch.org/docs/stable/special.html#torch.special.expit) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.special.expit.html) | +| 88 | [torch.Tensor.addr_](https://pytorch.org/docs/stable/generated/torch.Tensor.addr_.html#torch.Tensor.addr_) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.addr_.html) | +| 89 | [torch.\_foreach\_erf](https://pytorch.org/docs/stable/generated/torch._foreach_erf.html#torch-foreach-erf) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_erf.html) | +| 90 | [torch.\_foreach\_cosh\_](https://pytorch.org/docs/stable/generated/torch._foreach_cosh_.html#torch-foreach-cosh) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_cosh_.html) | +| 91 | [torch.\_foreach\_log1p\_](https://pytorch.org/docs/stable/generated/torch._foreach_log1p_.html#torch-foreach-log1p) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_log1p_.html) | +| 92 | [torch.\_foreach\_sqrt](https://pytorch.org/docs/stable/generated/torch._foreach_sqrt.html#torch-foreach-sqrt) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_sqrt.html) | +| 93 | [torch.nn.modules.module.register\_module\_forward\_hook](https://pytorch.org/docs/stable/generated/torch.nn.modules.module.register_module_forward_hook.html) | [paddle.nn.Layer.register\_forward\_post\_hook](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html#register-forward-post-hook-hook) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.modules.module.register_module_forward_hook.html) | +| 94 | [torch.detach](https://pytorch.org/docs/stable/autograd.html#variable-deprecated) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.detach.html) | +| 95 | [torch.\_foreach\_acos](https://pytorch.org/docs/stable/generated/torch._foreach_acos.html#torch-foreach-acos) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_acos.html) | +| 96 | [torch.index_copy](https://pytorch.org/docs/stable/generated/torch.index_copy.html#torch.index_copy) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.index_copy.html) | +| 97 | [torch.Tensor.erfc_](https://pytorch.org/docs/stable/generated/torch.Tensor.erfc_.html) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.erfc_.html) | +| 98 | [torch.\_foreach\_lgamma\_](https://pytorch.org/docs/stable/generated/torch._foreach_lgamma_.html#torch-foreach-lgamma) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_lgamma_.html) | +| 99 | [transformers.PreTrainedModel.get\_head\_mask](https://hf-mirror.com/docs/transformers/v4.42.0/en/main_classes/model#transformers.modeling_utils.ModuleUtilsMixin.get_head_mask) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/transformers.PreTrainedModel.get_head_mask.html) | +| 100 | [torch.\_foreach\_floor\_](https://pytorch.org/docs/stable/generated/torch._foreach_floor_.html#torch-foreach-floor) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_floor_.html) | +| 101 | [torch.nn.functional.\_Reduction.get\_enum](https://github.com/pytorch/pytorch/blob/3045b16488f14c9d941d33d63417e6ea52fb2544/torch/nn/_reduction.py#L7) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.functional._Reduction.get_enum.html) | +| 102 | [torch.\_foreach\_sqrt\_](https://docs.pytorch.org/docs/stable/generated/torch._foreach_sqrt_.html#torch-foreach-sqrt) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_sqrt_.html) | +| 103 | [torch.\_foreach\_zero\_](https://pytorch.org/docs/stable/generated/torch._foreach_zero_.html#torch-foreach-zero) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_zero_.html) | +| 104 | [torch.\_foreach\_erfc](https://pytorch.org/docs/stable/generated/torch._foreach_erfc.html#torch-foreach-erfc) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_erfc.html) | +| 105 | [torch.\_foreach\_abs](https://pytorch.org/docs/stable/generated/torch._foreach_abs.html#torch-foreach-abs) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_abs.html) | +| 106 | [torch.optim.lr_scheduler.CosineAnnealingWarmRestarts](https://pytorch.org/docs/stable/generated/torch.optim.lr_scheduler.CosineAnnealingWarmRestarts.html) | [paddle.optimizer.lr.CosineAnnealingWarmRestarts](https://github.com/PaddlePaddle/Paddle/blob/d6ea911bd1bfda5604807eeb18318e71b395ac58/python/paddle/optimizer/lr.py#L2371) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.optim.lr_scheduler.CosineAnnealingWarmRestarts.html) | +| 107 | [torch.\_foreach\_cos\_](https://pytorch.org/docs/stable/generated/torch._foreach_cos_.html#torch-foreach-cos) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_cos_.html) | +| 108 | [torch.Tensor.addmv_](https://pytorch.org/docs/stable/generated/torch.Tensor.addmv_.html#torch.Tensor.addmv_) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.addmv_.html) | +| 109 | [torch.Tensor.float_power](https://pytorch.org/docs/stable/generated/torch.Tensor.float_power.html#torch.Tensor.float_power) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.float_power.html) | +| 110 | [torch.addr](https://pytorch.org/docs/stable/generated/torch.addr.html?highlight=addr#torch.addr) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.addr.html) | +| 111 | [torch.\_foreach\_sin\_](https://pytorch.org/docs/stable/generated/torch._foreach_sin_.html#torch-foreach-sin) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_sin_.html) | +| 112 | [torch.Tensor.nbytes](https://pytorch.org/docs/stable/generated/torch.Tensor.nbytes.html) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.nbytes.html) | +| 113 | [torch.special.ndtr](https://pytorch.org/docs/stable/special.html#torch.special.ndtr) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.special.ndtr.html) | +| 114 | [flash\_attn.layers.rotary.apply\_rotary\_emb\_func](https://github.com/Dao-AILab/flash-attention/blob/c4b9015d74bd9f638c6fd574482accf4bbbd4197/flash_attn/layers/rotary.py#L128) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/flash_attn.layers.rotary.apply_rotary_emb_func.html) | +| 115 | [torch.addbmm](https://pytorch.org/docs/stable/generated/torch.addbmm.html#torch.addbmm) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.addbmm.html) | +| 116 | [torch.\_foreach\_exp\_](https://pytorch.org/docs/stable/generated/torch._foreach_exp_.html#torch._foreach_exp_) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_exp_.html) | +| 117 | [torch.initial_seed](https://pytorch.org/docs/stable/generated/torch.initial_seed.html?highlight=initial_seed) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.initial_seed.html) | +| 118 | [torch.\_foreach\_neg\_](https://pytorch.org/docs/stable/generated/torch._foreach_neg_.html#torch-foreach-neg) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_neg_.html) | +| 119 | [torch.optim.lr_scheduler.LRScheduler](https://docs.pytorch.org/docs/2.7/generated/torch.optim.lr_scheduler.LRScheduler.html#torch.optim.lr_scheduler.LRScheduler) | [paddle.optimizer.lr.LRScheduler](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/lr/LRScheduler_cn.html#lrscheduler) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.optim.lr_scheduler.LRScheduler.html) | +| 120 | [torch.can_cast](https://pytorch.org/docs/stable/generated/torch.can_cast.html#torch-can-cast) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.can_cast.html) | +| 121 | [torch.\_foreach\_asin\_](https://pytorch.org/docs/stable/generated/torch._foreach_asin_.html#torch-foreach-asin) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_asin_.html) | +| 122 | [torch.\_foreach\_abs\_](https://pytorch.org/docs/stable/generated/torch._foreach_abs_.html#torch-foreach-abs) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_abs_.html) | +| 123 | [torch.\_foreach\_atan](https://pytorch.org/docs/stable/generated/torch._foreach_atan.html#torch-foreach-atan) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_atan.html) | +| 124 | [torch.\_foreach\_trunc](https://pytorch.org/docs/stable/generated/torch._foreach_trunc.html#torch-foreach-trunc) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_trunc.html) | +| 125 | [torch.Tensor.adjoint](https://pytorch.org/docs/stable/generated/torch.Tensor.adjoint.html#torch.Tensor.adjoint) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.adjoint.html) | +| 126 | [torch.optim.lr_scheduler.StepLR](https://pytorch.org/docs/stable/generated/torch.optim.lr_scheduler.StepLR.html) | [paddle.optimizer.lr.StepDecay](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/lr/StepDecay_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.optim.lr_scheduler.StepLR.html) | +| 127 | [torch.Tensor.addbmm_](https://pytorch.org/docs/stable/generated/torch.Tensor.addbmm_.html#torch.Tensor.addbmm_) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.addbmm_.html) | +| 128 | [torch.\_foreach\_sinh](https://pytorch.org/docs/stable/generated/torch._foreach_sinh.html#torch-foreach-sinh) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_sinh.html) | +| 129 | [torch.\_foreach\_sigmoid\_](https://pytorch.org/docs/stable/generated/torch._foreach_sigmoid_.html#torch-foreach-sigmoid) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_sigmoid_.html) | +| 130 | [transformers.PreTrainedModel](https://hf-mirror.com/docs/transformers/v4.42.0/en/main_classes/model#transformers.PreTrainedModel) | [paddlenlp.transformers.PreTrainedModel](https://github.com/PaddlePaddle/PaddleNLP/blob/e336e78c338d2514ee6c937982ce5d8c960b85ff/paddlenlp/transformers/model_utils.py#L843) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/transformers.PreTrainedModel.html) | +| 131 | [torch.\_foreach\_frac](https://pytorch.org/docs/stable/generated/torch._foreach_frac.html#torch-foreach-frac) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_frac.html) | +| 132 | [torch.optim.lr_scheduler.MultiStepLR](https://pytorch.org/docs/stable/generated/torch.optim.lr_scheduler.MultiStepLR.html) | [paddle.optimizer.lr.MultiStepDecay](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/lr/MultiStepDecay_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.optim.lr_scheduler.MultiStepLR.html) | +| 133 | [torch.Tensor.requires\_grad\_](https://pytorch.org/docs/stable/generated/torch.Tensor.requires_grad_.html?highlight=requires_grad_#torch.Tensor.requires_grad_) | [paddle.Tensor.stop_gradient](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#stop-gradient) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.requires_grad_.html) | +| 134 | [torch.special.xlog1py](https://pytorch.org/docs/stable/special.html#torch.special.xlog1py) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.special.xlog1py.html) | +| 135 | [torch.\_foreach\_lgamma](https://pytorch.org/docs/stable/generated/torch._foreach_lgamma.html#torch-foreach-lgamma) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_lgamma.html) | +| 136 | [torch.nn.modules.utils._pair](https://github.com/pytorch/pytorch/blob/1f4d4d3b7836d38d936a21665e6b2ab0b39d7092/torch/nn/modules/utils.py#L198) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.nn.modules.utils._pair.html) | +| 137 | [torch.\_foreach\_log2\_](https://pytorch.org/docs/stable/generated/torch._foreach_log2_.html#torch-foreach-log2) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_log2_.html) | +| 138 | [torch.special.erfc](https://pytorch.org/docs/stable/special.html#torch.special.erfc) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.special.erfc.html) | +| 139 | [torch.\_foreach\_neg](https://pytorch.org/docs/stable/generated/torch._foreach_neg.html#torch-foreach-neg) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_neg.html) | +| 140 | [torch.testing.assert_allclose](https://pytorch.org/docs/stable/testing.html?highlight=torch+testing+assert_allclose#torch.testing.assert_allclose) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.testing.assert_allclose.html) | +| 141 | [torch.Tensor.resize\_as\_](https://pytorch.org/docs/stable/generated/torch.Tensor.resize_as_.html?highlight=resize_as#torch.Tensor.resize_as_) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.resize_as_.html) | +| 142 | [torch.select](https://pytorch.org/docs/stable/generated/torch.select.html#torch.select) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.select.html) | +| 143 | [torch.utils.set_module](https://docs.pytorch.org/docs/stable/generated/torch.utils.set_module.html#torch-utils-set-module) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.utils.set_module.html) | +| 144 | [torch.logaddexp2](https://pytorch.org/docs/stable/generated/torch.logaddexp2.html#torch.logaddexp2) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.logaddexp2.html) | +| 145 | [torch.Tensor.logdet](https://pytorch.org/docs/stable/generated/torch.Tensor.logdet.html#torch.Tensor.logdet) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.logdet.html) | +| 146 | [torch.optim.lr_scheduler.ExponentialLR](https://pytorch.org/docs/stable/generated/torch.optim.lr_scheduler.ExponentialLR.html) | [paddle.optimizer.lr.ExponentialDecay](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/lr/ExponentialDecay_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.optim.lr_scheduler.ExponentialLR.html) | +| 147 | [torch.\_foreach\_log1p](https://pytorch.org/docs/stable/generated/torch._foreach_log1p.html#torch-foreach-log1p) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_log1p.html) | +| 148 | [torch.is_nonzero](https://pytorch.org/docs/stable/generated/torch.is_nonzero.html#torch.is_nonzero) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.is_nonzero.html) | +| 149 | [torch.Tensor.logaddexp2](https://pytorch.org/docs/stable/generated/torch.Tensor.logaddexp2.html#torch.Tensor.logaddexp2) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.logaddexp2.html) | +| 150 | [torch.Tensor.addcmul](https://pytorch.org/docs/stable/generated/torch.Tensor.addcmul.html#torch.Tensor.addcmul) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.addcmul.html) | +| 151 | [torch.\_foreach\_tan\_](https://pytorch.org/docs/stable/generated/torch._foreach_tan_.html#torch-foreach-tan) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_tan_.html) | +| 152 | [torch.\_foreach\_log10\_](https://pytorch.org/docs/stable/generated/torch._foreach_log10_.html#torch-foreach-log10) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_log10_.html) | +| 153 | [torch.\_foreach\_trunc\_](https://pytorch.org/docs/stable/generated/torch._foreach_trunc_.html#torch-foreach-trunc) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_trunc_.html) | +| 154 | [torch.get\_num\_interop\_threads](https://pytorch.org/docs/stable/generated/torch.get_num_interop_threads.html) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.get_num_interop_threads.html) | +| 155 | [transformers.logging.get_logger](https://github.com/huggingface/transformers/blob/d625294d79341662784495551abdf45e6cb9372f/src/transformers/utils/logging.py#L147) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/transformers.logging.get_logger.html) | +| 156 | [torch.\_foreach\_log\_](https://pytorch.org/docs/stable/generated/torch._foreach_log_.html#torch-foreach-log) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_log_.html) | +| 157 | [torch.special.erfcx](https://pytorch.org/docs/stable/special.html#torch.special.erfcx) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.special.erfcx.html) | +| 158 | [torch.optim.lr_scheduler.OneCycleLR](https://pytorch.org/docs/stable/generated/torch.optim.lr_scheduler.OneCycleLR.html) | [paddle.optimizer.lr.OneCycleLR](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/lr/OneCycleLR_cn.html) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.optim.lr_scheduler.OneCycleLR.html) | +| 159 | [torch.\_foreach\_erfc\_](https://pytorch.org/docs/stable/generated/torch._foreach_erfc_.html#torch-foreach-erfc) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_erfc_.html) | +| 160 | [torch.\_foreach\_expm1](https://pytorch.org/docs/stable/generated/torch._foreach_expm1.html#torch-foreach-expm1) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_expm1.html) | +| 161 | [torch.Tensor.index\_copy\_](https://pytorch.org/docs/stable/generated/torch.Tensor.index_copy_.html) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.index_copy_.html) | +| 162 | [torch.Tensor.H](https://pytorch.org/docs/stable/tensors.html?#torch.Tensor.H) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.H.html) | +| 163 | [torch.\_foreach\_round](https://pytorch.org/docs/stable/generated/torch._foreach_round.html#torch-foreach-round) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_round.html) | +| 164 | [torch.optim.lr_scheduler.LinearLR](https://pytorch.org/docs/stable/generated/torch.optim.lr_scheduler.LinearLR.html) | [paddle.optimizer.lr.LinearLR](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/lr/LinearLR_cn.html#linearlr) | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.optim.lr_scheduler.LinearLR.html) | +| 165 | [torch.\_foreach\_reciprocal\_](https://pytorch.org/docs/stable/generated/torch._foreach_reciprocal_.html#torch-foreach-reciprocal) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch._foreach_reciprocal_.html) | +| 166 | [torch.float_power](https://pytorch.org/docs/stable/generated/torch.float_power.html#torch-float-power) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.float_power.html) | +| 167 | [torch.Tensor.addcdiv_](https://pytorch.org/docs/stable/generated/torch.Tensor.addcdiv_.html#torch.Tensor.addcdiv_) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.Tensor.addcdiv_.html) | +| 168 | [torch.distributed.Backend](https://pytorch.org/docs/stable/distributed.html#torch.distributed.Backend) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.distributed.Backend.html) | +| 169 | [torch.special.ndtri](https://pytorch.org/docs/stable/special.html#torch.special.ndtri) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.special.ndtri.html) | +| 170 | [transformers.PreTrainedModel.post_init](https://hf-mirror.com/docs/transformers/v4.42.0/en/main_classes/model#transformers.PreTrainedModel.post_init) | - | [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/transformers.PreTrainedModel.post_init.html) | ### 11. 可删除 **分类简介** @@ -147,6 +1890,151 @@ paddle.nn.Softplus(beta=0.5, threshold=15) | 序号 | Pytorch 最新 release | Paddle develop | 备注 | |------|-------------------|---------------|------| +| 1 | flash_attn.flash_attn_interface.flash_attn_varlen_func | [paddle.nn.functional.flash\_attention.flash\_attn\_unpadded](https://github.com/PaddlePaddle/Paddle/blob/b32b51b7c21ad62bf794512c849a603c8c0ece44/python/paddle/nn/functional/flash_attention.py#L664) | ``flash_attn.flash_attn_interface.flash_attn_unpadded_func`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/flash_attn.flash_attn_interface.flash_attn_unpadded_func.html) | +| 2 | torch.Tensor.arctan2 | [paddle.Tensor.atan2](https://www.paddlepaddle.org.cn/documentation/docs/en/develop/api/paddle/Tensor_en.html) | ``torch.Tensor.atan2`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.atan2.html) | +| 3 | torch.Tensor.arctan2_ | - | ``torch.Tensor.atan2_`` 别名, - | +| 4 | torch.Tensor.greater_ | paddle.Tensor.greater_than_ | ``torch.Tensor.gt_`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.gt_.html) | +| 5 | torch.Tensor.greater_equal_ | paddle.Tensor.greater_equal_ | ``torch.Tensor.ge_`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.ge_.html) | +| 6 | torch.Tensor.less_ | paddle.Tensor.less_than_ | ``torch.Tensor.lt_`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.lt_.html) | +| 7 | torch.Tensor.less_equal_ | paddle.Tensor.less_equal_ | ``torch.Tensor.le_`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.le_.html) | +| 8 | torch.Tensor.not_equal_ | paddle.Tensor.not_equal_ | ``torch.Tensor.ne_`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.ne_.html) | +| 9 | torch.absolute | [paddle.abs](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/abs_cn.html#abs) | ``torch.abs`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.abs.html) | +| 10 | torch.absolute_ | [paddle.abs_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/abs_cn.html) | ``torch.abs_`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.abs_.html) | +| 11 | torch.adaptive_avg_pool1d | [paddle.nn.functional.adaptive\_avg\_pool1d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/adaptive_avg_pool1d_cn.html) | ``torch.nn.functional.adaptive_avg_pool1d`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.adaptive_avg_pool1d.html) | +| 12 | torch.amp.autocast_mode.autocast | [paddle.amp.auto_cast](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/amp/auto_cast_cn.html#auto-cast) | ``torch.amp.autocast`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.amp.autocast.html) | +| 13 | torch.arccos | [paddle.acos](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/acos_cn.html#acos) | ``torch.acos`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.acos.html) | +| 14 | torch.arccosh | [paddle.acosh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/acosh_cn.html#acos) | ``torch.acosh`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.acosh.html) | +| 15 | torch.arcsin | [paddle.asin](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/asin_cn.html#asin) | ``torch.asin`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.asin.html) | +| 16 | torch.arcsinh | [paddle.asinh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/asinh_cn.html) | ``torch.asinh`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.asinh.html) | +| 17 | torch.arctan | [paddle.atan](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/atan_cn.html#atan) | ``torch.atan`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.atan.html) | +| 18 | torch.arctan2 | [paddle.atan2](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/atan2_cn.html) | ``torch.atan2`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.atan2.html) | +| 19 | torch.arctanh | [paddle.atanh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/atanh_cn.html) | ``torch.atanh`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.atanh.html) | +| 20 | torch.avg_pool1d | [paddle.nn.functional.avg_pool1d](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/avg_pool1d_cn.html#avg-pool1d) | ``torch.nn.functional.avg_pool1d`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.functional.avg_pool1d.html) | +| 21 | torch.bilinear | [paddle.nn.functional.bilinear](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/bilinear_cn.html) | ``torch.nn.functional.bilinear`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.functional.bilinear.html) | +| 22 | torch.celu_ | - | ``torch.nn.functional.celu_`` 别名, - | +| 23 | torch.channel_shuffle | [paddle.nn.functional.channel_shuffle](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/channel_shuffle_cn.html#channel-shuffle) | ``torch.nn.functional.channel_shuffle`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.channel_shuffle.html) | +| 24 | torch.conv_tbc | - | ``torch.nn.functional.conv_tbc`` 别名, - | +| 25 | torch.conv_transpose1d | [paddle.nn.functional.conv1d_transpose](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/conv1d_transpose_cn.html) | ``torch.nn.functional.conv_transpose1d`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.conv_transpose1d.html) | +| 26 | torch.conv_transpose2d | [paddle.nn.functional.conv2d_transpose](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/conv2d_transpose_cn.html) | ``torch.nn.functional.conv_transpose2d`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.conv_transpose2d.html) | +| 27 | torch.conv_transpose3d | [paddle.nn.functional.conv3d_transpose](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/conv3d_transpose_cn.html) | ``torch.nn.functional.conv_transpose3d`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.conv_transpose3d.html) | +| 28 | torch.cosine_similarity | [paddle.nn.functional.cosine_similarity](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/cosine_similarity_cn.html) | ``torch.nn.functional.cosine_similarity`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.cosine_similarity.html) | +| 29 | torch.cuda.amp.autocast_mode.autocast | [paddle.amp.auto_cast](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/amp/auto_cast_cn.html) | ``torch.cuda.amp.autocast`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.cuda.amp.autocast.html) | +| 30 | torch.digamma | [paddle.digamma](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/special.digamma_cn.html) | ``torch.special.digamma`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.digamma.html) | +| 31 | torch.distributions.AbsTransform | [paddle.distribution.AbsTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/AbsTransform_cn.html#paddle.distribution.AbsTransform) | ``torch.distributions.transforms.AbsTransform`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.AbsTransform.html) | +| 32 | torch.distributions.AffineTransform | [paddle.distribution.AffineTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/AffineTransform_cn.html#affinetransform) | ``torch.distributions.transforms.AffineTransform`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.AffineTransform.html) | +| 33 | torch.distributions.Bernoulli | [paddle.distribution.Bernoulli](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Bernoulli_cn.html#bernoulli) | ``torch.distributions.bernoulli.Bernoulli`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.bernoulli.Bernoulli.html) | +| 34 | torch.distributions.Beta | [paddle.distribution.Beta](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Beta_cn.html#beta) | ``torch.distributions.beta.Beta`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.beta.Beta.html) | +| 35 | torch.distributions.Binomial | [paddle.distribution.Binomial](https://www.paddlepaddle.org.cn/documentation/docs/zh/2.6/api/paddle/distribution/Binomial_cn.html#binomial) | ``torch.distributions.binomial.Binomial`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.binomial.Binomial.html) | +| 36 | torch.distributions.CatTransform | - | ``torch.distributions.transforms.CatTransform`` 别名, - | +| 37 | torch.distributions.Categorical | [paddle.distribution.Categorical](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Categorical_cn.html) | ``torch.distributions.categorical.Categorical`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.categorical.Categorical.html) | +| 38 | torch.distributions.Cauchy | [paddle.distribution.Cauchy](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Cauchy_cn.html) | ``torch.distributions.cauchy.Cauchy`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.cauchy.Cauchy.html) | +| 39 | torch.distributions.ComposeTransform | [paddle.distribution.ChainTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/ChainTransform_cn.html) | ``torch.distributions.transforms.ComposeTransform`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.ComposeTransform.html) | +| 40 | torch.distributions.ContinuousBernoulli | [paddle.distribution.ContinuousBernoulli](https://www.paddlepaddle.org.cn/documentation/docs/zh/2.6/api/paddle/distribution/ContinuousBernoulli_cn.html#continuousbernoulli) | ``torch.distributions.continuous_bernoulli.ContinuousBernoulli`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.continuous_bernoulli.ContinuousBernoulli.html) | +| 41 | torch.distributions.CumulativeDistributionTransform | - | ``torch.distributions.transforms.CumulativeDistributionTransform`` 别名, - | +| 42 | torch.distributions.Dirichlet | [paddle.distribution.Dirichlet](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Dirichlet_cn.html) | ``torch.distributions.dirichlet.Dirichlet`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.dirichlet.Dirichlet.html) | +| 43 | torch.distributions.Distribution | [paddle.distribution.Distribution](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Distribution_cn.html) | ``torch.distributions.distribution.Distribution`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.distribution.Distribution.html) | +| 44 | torch.distributions.Distribution.rsample | [paddle.distribution.Distribution.rsample](https://github.com/PaddlePaddle/Paddle/blob/2bbd6f84c1db3e7401732869ee50aef2d9c97bdc/python/paddle/distribution/distribution.py#L96) | ``torch.distributions.distribution.Distribution.rsample`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.distributions.distribution.Distribution.rsample.html) | +| 45 | torch.distributions.Distribution.sample | [paddle.distribution.Distribution.sample](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Distribution_cn.html#sample) | ``torch.distributions.distribution.Distribution.sample`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.distributions.distribution.Distribution.sample.html) | +| 46 | torch.distributions.ExpTransform | [paddle.distribution.ExpTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/ExpTransform_cn.html#exptransform) | ``torch.distributions.transforms.ExpTransform`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.ExpTransform.html) | +| 47 | torch.distributions.Exponential | [paddle.distribution.Exponential](https://www.paddlepaddle.org.cn/documentation/docs/zh/2.6/api/paddle/distribution/ExponentialFamily_cn.html#exponential) | ``torch.distributions.exponential.Exponential`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.exponential.Exponential.html) | +| 48 | torch.distributions.ExponentialFamily | [paddle.distribution.ExponentialFamily](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/ExponentialFamily_cn.html) | ``torch.distributions.exp_family.ExponentialFamily`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.exp_family.ExponentialFamily.html) | +| 49 | torch.distributions.Geometric | [paddle.distribution.Geometric](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Geometric_cn.html#geometric) | ``torch.distributions.geometric.Geometric`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.geometric.Geometric.html) | +| 50 | torch.distributions.Gumbel | [paddle.distribution.Gumbel](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Gumbel_cn.html#gumbel) | ``torch.distributions.gumbel.Gumbel`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.gumbel.Gumbel.html) | +| 51 | torch.distributions.Independent | [paddle.distribution.Independent](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Independent_cn.html) | ``torch.distributions.independent.Independent`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.independent.Independent.html) | +| 52 | torch.distributions.IndependentTransform | [paddle.distribution.IndependentTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/IndependentTransform_cn.html#independenttransform) | ``torch.distributions.transforms.IndependentTransform`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.IndependentTransform.html) | +| 53 | torch.distributions.Laplace | [paddle.distribution.Laplace](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Laplace_cn.html#laplace) | ``torch.distributions.laplace.Laplace`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.laplace.Laplace.html) | +| 54 | torch.distributions.LogNormal | [paddle.distribution.LogNormal](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/LogNormal_cn.html#lognormal) | ``torch.distributions.log_normal.LogNormal`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.log_normal.LogNormal.html) | +| 55 | torch.distributions.Multinomial | [paddle.distribution.Multinomial](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Multinomial_cn.html) | ``torch.distributions.multinomial.Multinomial`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.multinomial.Multinomial.html) | +| 56 | torch.distributions.MultivariateNormal | [paddle.distribution.MultivariateNormal](https://www.paddlepaddle.org.cn/documentation/docs/zh/2.6/api/paddle/distribution/MultivariateNormal_cn.html#multivariatenormal) | ``torch.distributions.multivariate_normal.MultivariateNormal`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.multivariate_normal.MultivariateNormal.html) | +| 57 | torch.distributions.Normal | [paddle.distribution.Normal](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Normal_cn.html) | ``torch.distributions.normal.Normal`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.normal.Normal.html) | +| 58 | torch.distributions.OneHotCategorical | - | ``torch.distributions.one_hot_categorical.OneHotCategorical`` 别名, - | +| 59 | torch.distributions.PowerTransform | [paddle.distribution.PowerTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/PowerTransform_cn.html#powertransform) | ``torch.distributions.transforms.PowerTransform`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.PowerTransform.html) | +| 60 | torch.distributions.ReshapeTransform | [paddle.distribution.ReshapeTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/ReshapeTransform_cn.html) | ``torch.distributions.transforms.ReshapeTransform`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.ReshapeTransform.html) | +| 61 | torch.distributions.SigmoidTransform | [paddle.distribution.SigmoidTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/SigmoidTransform_cn.html#sigmoidtransform) | ``torch.distributions.transforms.SigmoidTransform`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.SigmoidTransform.html) | +| 62 | torch.distributions.SoftmaxTransform | [paddle.distribution.SoftmaxTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/SoftmaxTransform_cn.html) | ``torch.distributions.transforms.SoftmaxTransform`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.SoftmaxTransform.html) | +| 63 | torch.distributions.SoftplusTransform | - | ``torch.distributions.transforms.SoftplusTransform`` 别名, - | +| 64 | torch.distributions.StackTransform | [paddle.distribution.StackTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/StackTransform_cn.html) | ``torch.distributions.transforms.StackTransform`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.StackTransform.html) | +| 65 | torch.distributions.StickBreakingTransform | [paddle.distribution.StickBreakingTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/StickBreakingTransform_cn.html) | ``torch.distributions.transforms.StickBreakingTransform`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.StickBreakingTransform.html) | +| 66 | torch.distributions.TanhTransform | [paddle.distribution.TanhTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/TanhTransform_cn.html#tanhtransform) | ``torch.distributions.transforms.TanhTransform`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.TanhTransform.html) | +| 67 | torch.distributions.Transform | [paddle.distribution.Transform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Transform_cn.html#transform) | ``torch.distributions.transforms.Transform`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transforms.Transform.html) | +| 68 | torch.distributions.TransformedDistribution | [paddle.distribution.TransformedDistribution](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/TransformedDistribution_cn.html#transformeddistribution) | ``torch.distributions.transformed_distribution.TransformedDistribution`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.transformed_distribution.TransformedDistribution.html) | +| 69 | torch.distributions.Uniform | [paddle.distribution.Uniform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Uniform_cn.html) | ``torch.distributions.uniform.Uniform`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.distributions.uniform.Uniform.html) | +| 70 | torch.erf | [paddle.erf](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/erf_cn.html) | ``torch.special.erf`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.erf.html) | +| 71 | torch.erfc | - | ``torch.special.erfc`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.special.erfc.html) | +| 72 | torch.erfinv | [paddle.erfinv](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/erfinv_cn.html) | ``torch.special.erfinv`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.erfinv.html) | +| 73 | torch.exp2 | - | ``torch.special.exp2`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.special.exp2.html) | +| 74 | torch.expm1 | [paddle.expm1](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/expm1_cn.html) | ``torch.special.expm1`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.expm1.html) | +| 75 | torch.functional.block_diag | [paddle.block_diag](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/block_diag_cn.html) | ``torch.block_diag`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.block_diag.html) | +| 76 | torch.functional.broadcast_tensors | [paddle.broadcast_tensors](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/broadcast_tensors_cn.html#broadcast-tensors) | ``torch.broadcast_tensors`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.broadcast_tensors.html) | +| 77 | torch.functional.cartesian_prod | [paddle.cartesian_prod](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/cartesian_prod_cn.html) | ``torch.cartesian_prod`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.cartesian_prod.html) | +| 78 | torch.functional.cdist | [paddle.cdist](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/cdist_cn.html#cdist) | ``torch.cdist`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.cdist.html) | +| 79 | torch.functional.istft | [paddle.signal.istft](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/signal/istft_cn.html#istft) | ``torch.istft`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.istft.html) | +| 80 | torch.functional.lu | [paddle.linalg.lu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/lu_cn.html) | ``torch.lu`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.lu.html) | +| 81 | torch.functional.meshgrid | [paddle.meshgrid](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/meshgrid_cn.html#meshgrid) | ``torch.meshgrid`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.meshgrid.html) | +| 82 | torch.functional.stft | [paddle.signal.stft](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/signal/stft_cn.html#paddle.signal.stft) | ``torch.stft`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.stft.html) | +| 83 | torch.functional.tensordot | [paddle.tensordot](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/tensordot_cn.html) | ``torch.tensordot`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.tensordot.html) | +| 84 | torch.functional.unique | [paddle.unique](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/unique_cn.html#unique) | ``torch.unique`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.unique.html) | +| 85 | torch.group_norm | [paddle.nn.functional.group_norm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/group_norm_cn.html#group-norm) | ``torch.nn.functional.group_norm`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.group_norm.html) | +| 86 | torch.hardshrink | [paddle.nn.functional.hardshrink](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/hardshrink_cn.html) | ``torch.nn.functional.hardshrink`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.hardshrink.html) | +| 87 | torch.i0 | [paddle.i0](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/i0_cn.html) | ``torch.special.i0`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.i0.html) | +| 88 | torch.igamma | [paddle.gammainc](https://www.paddlepaddle.org.cn/documentation/docs/zh/2.6/api/index_cn.html) | ``torch.special.gammainc`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.gammainc.html) | +| 89 | torch.igammac | [paddle.gammaincc](https://www.paddlepaddle.org.cn/documentation/docs/zh/2.6/api/index_cn.html) | ``torch.special.gammaincc`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.gammaincc.html) | +| 90 | torch.logit | [paddle.logit](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/logit_cn.html) | ``torch.special.logit`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.logit.html) | +| 91 | torch.matrix_exp | [paddle.linalg.matrix_exp](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/matrix_exp_cn.html) | ``torch.linalg.matrix_exp`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.linalg.matrix_exp.html) | +| 92 | torch.matrix_power | [paddle.linalg.matrix_power](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/matrix_power_cn.html) | ``torch.linalg.matrix_power`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.matrix_power.html) | +| 93 | torch.nn.NLLLoss2d | [paddle.nn.NLLLoss](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/NLLLoss_cn.html#nllloss) | ``torch.nn.NLLLoss`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.NLLLoss.html) | +| 94 | torch.nn.UninitializedParameter | - | ``torch.nn.parameter.UninitializedParameter`` 别名, - | +| 95 | torch.nn.modules.AvgPool1d | [paddle.nn.AvgPool1D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/AvgPool1D_cn.html#avgpool1d) | ``torch.nn.AvgPool1d`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.AvgPool1d.html) | +| 96 | torch.nn.modules.AvgPool2d | [paddle.nn.AvgPool2D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/AvgPool2D_cn.html#avgpool2d) | ``torch.nn.AvgPool2d`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.AvgPool2d.html) | +| 97 | torch.nn.modules.AvgPool3d | [paddle.nn.AvgPool3D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/AvgPool3D_cn.html#avgpool3d) | ``torch.nn.AvgPool3d`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.AvgPool3d.html) | +| 98 | torch.nn.modules.BatchNorm1d | [paddle.nn.BatchNorm1D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/BatchNorm1D_cn.html#batchnorm1d) | ``torch.nn.BatchNorm1d`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.BatchNorm1d.html) | +| 99 | torch.nn.modules.BatchNorm2d | [paddle.nn.BatchNorm2D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/BatchNorm2D_cn.html#batchnorm2d) | ``torch.nn.BatchNorm2d`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.BatchNorm2d.html) | +| 100 | torch.nn.modules.BatchNorm3d | [paddle.nn.BatchNorm3D](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/BatchNorm3D_cn.html#batchnorm3d) | ``torch.nn.BatchNorm3d`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.BatchNorm3d.html) | +| 101 | torch.nn.modules.CosineSimilarity | [paddle.nn.CosineSimilarity](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/CosineSimilarity_cn.html#cosinesimilarity) | ``torch.nn.CosineSimilarity`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.CosineSimilarity.html) | +| 102 | torch.nn.modules.Dropout | [paddle.nn.Dropout](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Dropout_cn.html#dropout) | ``torch.nn.Dropout`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.Dropout.html) | +| 103 | torch.nn.modules.GroupNorm | [paddle.nn.GroupNorm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/GroupNorm_cn.html#groupnorm) | ``torch.nn.GroupNorm`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.GroupNorm.html) | +| 104 | torch.nn.modules.LSTM | [paddle.nn.LSTM](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/LSTM_cn.html#lstm) | ``torch.nn.LSTM`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.LSTM.html) | +| 105 | torch.nn.modules.Linear | [paddle.nn.Linear](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Linear_cn.html#linear) | ``torch.nn.Linear`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.Linear.html) | +| 106 | torch.nn.modules.Module | [paddle.nn.Layer](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Layer_cn.html) | ``torch.nn.Module`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.Module.html) | +| 107 | torch.nn.modules.RNN | [paddle.nn.SimpleRNN](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/SimpleRNN_cn.html#simplernn) | ``torch.nn.RNN`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.RNN.html) | +| 108 | torch.nn.modules.RNNBase | [paddle.nn.layer.rnn.RNNBase](https://github.com/PaddlePaddle/Paddle/blob/e25e86f4f6d1bbd043b621a75e93d0070719c3d8/python/paddle/nn/layer/rnn.py#L1300) | ``torch.nn.RNNBase`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.RNNBase.html) | +| 109 | torch.nn.modules.RNNCell | [paddle.nn.SimpleRNNCell](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/SimpleRNNCell_cn.html#simplernncell) | ``torch.nn.RNNCell`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.nn.RNNCell.html) | +| 110 | torch.nn.modules.RNNCellBase | - | ``torch.nn.RNNCellBase`` 别名, - | +| 111 | torch.nn.modules.SyncBatchNorm | [paddle.nn.SyncBatchNorm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/SyncBatchNorm_cn.html#syncbatchnorm) | ``torch.nn.SyncBatchNorm`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.nn.SyncBatchNorm.html) | +| 112 | torch.nn.modules.activation.ReLU | [paddle.nn.ReLU](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/ReLU_cn.html#relu) | ``torch.nn.ReLU`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.ReLU.html) | +| 113 | torch.nn.parallel.DataParallel | [paddle.DataParallel](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/DataParallel_cn.html#dataparallel) | ``torch.nn.DataParallel`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.DataParallel.html) | +| 114 | torch.nn.parallel.distributed.DistributedDataParallel | [paddle.DataParallel](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/DataParallel_cn.html) | ``torch.nn.parallel.DistributedDataParallel`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.parallel.DistributedDataParallel.html) | +| 115 | torch.nn.utils.clip_grad_norm | [paddle.nn.utils.clip\_grad\_norm\_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/utils/clip_grad_norm__cn.html) | ``torch.nn.utils.clip_grad_norm_`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.utils.clip_grad_norm_.html) | +| 116 | torch.nn.utils.parametrizations.spectral_norm | [paddle.nn.utils.spectral_norm](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/utils/spectral_norm_cn.html#spectral-norm) | ``torch.nn.utils.spectral_norm`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.utils.spectral_norm.html) | +| 117 | torch.optim.sgd.SGD | [paddle.optimizer.SGD](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/SGD_cn.html) | ``torch.optim.SGD`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.optim.SGD.html) | +| 118 | torch.orgqr | [paddle.linalg.householder_product](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/householder_product_cn.html#householder-product) | ``torch.linalg.householder_product`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.householder_product.html) | +| 119 | torch.pairwise_distance | [paddle.nn.functional.pairwise_distance](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/functional/pairwise_distance_cn.html#pairwise-distance) | ``torch.nn.functional.pairwise_distance`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.pairwise_distance.html) | +| 120 | torch.pdist | [paddle.pdist](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/pdist_cn.html) | ``torch.nn.functional.pdist`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.pdist.html) | +| 121 | torch.pixel_shuffle | [paddle.nn.functional.pixel_shuffle](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/pixel_shuffle_cn.html) | ``torch.nn.functional.pixel_shuffle`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.pixel_shuffle.html) | +| 122 | torch.pixel_unshuffle | [paddle.nn.functional.pixel_unshuffle](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/pixel_unshuffle_cn.html) | ``torch.nn.functional.pixel_unshuffle`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.pixel_unshuffle.html) | +| 123 | torch.polygamma | [paddle.polygamma](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/polygamma_cn.html#paddle.polygamma) | ``torch.special.polygamma`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.polygamma.html) | +| 124 | torch.prelu | [paddle.nn.functional.prelu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/prelu_cn.html) | ``torch.nn.functional.prelu`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.nn.functional.prelu.html) | +| 125 | torch.random.get_rng_state | paddle.get_rng_state | ``torch.get_rng_state`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.get_rng_state.html) | +| 126 | torch.random.seed | - | ``torch.seed`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.seed.html) | +| 127 | torch.random.set_rng_state | paddle.set_rng_state | ``torch.set_rng_state`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/input_args_usage_diff/torch.set_rng_state.html) | +| 128 | torch.relu_ | [paddle.nn.functional.relu_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/relu__cn.html) | ``torch.nn.functional.relu_`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.relu_.html) | +| 129 | torch.rrelu_ | [paddle.nn.functional.rrelu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/rrelu_cn.html) | ``torch.nn.functional.rrelu_`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_default_value_diff/torch.nn.functional.rrelu_.html) | +| 130 | torch.selu_ | - | ``torch.nn.functional.selu_`` 别名, - | +| 131 | torch.sinc | [paddle.sinc](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sinc_cn.html#sinc) | ``torch.special.sinc`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.special.sinc.html) | +| 132 | torch.tanh | [paddle.nn.functional.tanh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/tanh_cn.html#tanh) | ``torch.nn.functional.tanh`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.tanh.html) | +| 133 | torch.threshold | [paddle.nn.functional.thresholded_relu](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/thresholded_relu_cn.html) | ``torch.nn.functional.threshold`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.threshold.html) | +| 134 | torch.threshold_ | [paddle.nn.functional.thresholded\_relu\_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/thresholded_relu__cn.html#thresholded-relu) | ``torch.nn.functional.threshold_`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_default_value_diff/torch.nn.functional.threshold_.html) | +| 135 | torch.trapz | [paddle.trapezoid](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/trapezoid_cn.html#trapezoid) | ``torch.trapezoid`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.trapezoid.html) | +| 136 | torch.utils.data.DistributedSampler | [paddle.io.DistributedBatchSampler](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/io/DistributedBatchSampler_cn.html#distributedbatchsampler) | ``torch.utils.data.distributed.DistributedSampler`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.utils.data.distributed.DistributedSampler.html) | +| 137 | torch.utils.data._utils.collate.default_collate | paddle.io.dataloader.collate.default_collate_fn | ``torch.utils.data.default_collate`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/output_args_type_diff/torch.utils.data.default_collate.html) | +| 138 | torch.utils.data.dataloader.DataLoader | [paddle.io.DataLoader](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/io/DataLoader_cn.html#dataloader) | ``torch.utils.data.DataLoader`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.utils.data.DataLoader.html) | +| 139 | torch.utils.data.sampler.BatchSampler | [paddle.io.BatchSampler](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/io/BatchSampler_cn.html#batchsampler) | ``torch.utils.data.BatchSampler`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.utils.data.BatchSampler.html) | +| 140 | torch.utils.data.sampler.SubsetRandomSampler | [paddle.io.SubsetRandomSampler](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/io/SubsetRandomSampler_cn.html#paddle.io.SubsetRandomSampler) | ``torch.utils.data.SubsetRandomSampler`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.utils.data.SubsetRandomSampler.html) | +| 141 | torch.utils.model_zoo.load_url | [paddle.hub.load\_state\_dict\_from\_url](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/hub/load_state_dict_from_url_cn.html#load-state-dict-from-url) | ``torch.hub.load_state_dict_from_url`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.hub.load_state_dict_from_url.html) | +| 142 | torch.xlogy | - | ``torch.special.xlogy`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/torch.special.xlogy.html) | +| 143 | torchvision.models.inception.Inception3 | - | ``torchvision.models.Inception3`` 别名, - | +| 144 | transformers.modeling_utils.PreTrainedModel | [paddlenlp.transformers.PreTrainedModel](https://github.com/PaddlePaddle/PaddleNLP/blob/e336e78c338d2514ee6c937982ce5d8c960b85ff/paddlenlp/transformers/model_utils.py#L843) | ``transformers.PreTrainedModel`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/transformers.PreTrainedModel.html) | +| 145 | transformers.utils.logging.get_logger | - | ``transformers.logging.get_logger`` 别名, [差异对比](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/composite_implement/transformers.logging.get_logger.html) | ### 13. 功能缺失 **分类简介** @@ -713,116 +2601,114 @@ paddle.nn.Softplus(beta=0.5, threshold=15) | 555 | [torch.mps.set\_per\_process\_memory\_fraction](https://pytorch.org/docs/stable/generated/torch.mps.set_per_process_memory_fraction.html#torch-mps-set-per-process-memory-fraction) | - | 可新增,但框架底层无相关设计,成本高 | | 556 | [torch.mps.set\_rng\_state](https://pytorch.org/docs/stable/generated/torch.mps.set_rng_state.html#torch-mps-set-rng-state) | - | 可新增,但框架底层无相关设计,成本高 | | 557 | [torch.nn.attention.bias](https://pytorch.org/docs/stable/nn.attention.bias.html#module-torch.nn.attention.bias) | - | 可新增,且框架底层有相关设计,成本低 | -| 558 | [torch.nn.attention.sdpa_kernel](https://pytorch.org/docs/stable/generated/torch.nn.attention.sdpa_kernel.html#torch-nn-attention-sdpa-kernel) | - | 可新增,且框架底层有相关设计,成本低 | -| 559 | [torch.nn.attention.SDPBackend](https://pytorch.org/docs/stable/generated/torch.nn.attention.SDPBackend.html#torch.nn.attention.SDPBackend) | - | 可新增,且框架底层有相关设计,成本低 | -| 560 | [torch.nn.CircularPad1d](https://pytorch.org/docs/stable/generated/torch.nn.CircularPad1d.html#torch.nn.CircularPad1d) | - | 可新增,且框架底层有相关设计,成本低 | -| 561 | [torch.nn.CircularPad2d](https://pytorch.org/docs/stable/generated/torch.nn.CircularPad2d.html#torch.nn.CircularPad2d) | - | 可新增,且框架底层有相关设计,成本低 | -| 562 | [torch.nn.functional.lp_pool3d](https://pytorch.org/docs/stable/generated/torch.nn.functional.lp_pool3d.html#torch-nn-functional-lp-pool3d) | - | 可新增,且框架底层有相关设计,成本低 | -| 563 | [torch.nn.LPPool3d](https://pytorch.org/docs/stable/generated/torch.nn.LPPool3d.html#torch.nn.LPPool3d) | - | 可新增,且框架底层有相关设计,成本低 | -| 564 | [torch.nn.modules.lazy.LazyModuleMixin](https://pytorch.org/docs/stable/generated/torch.nn.modules.lazy.LazyModuleMixin.html#torch.nn.modules.lazy.LazyModuleMixin) | - | 可新增,且框架底层有相关设计,成本低 | -| 565 | [torch.nn.modules.module.register\_module\_buffer\_registration\_hook](https://pytorch.org/docs/stable/generated/torch.nn.modules.module.register_module_buffer_registration_hook.html#torch-nn-modules-module-register-module-buffer-registration-hook) | - | 可新增,且框架底层有相关设计,成本低 | -| 566 | [torch.nn.modules.module.register\_module\_full\_backward\_hook](https://pytorch.org/docs/stable/generated/torch.nn.modules.module.register_module_full_backward_hook.html#torch-nn-modules-module-register-module-full-backward-hook) | - | 可新增,且框架底层有相关设计,成本低 | -| 567 | [torch.nn.modules.module.register\_module\_full\_backward\_pre\_hook](https://pytorch.org/docs/stable/generated/torch.nn.modules.module.register_module_full_backward_pre_hook.html#torch-nn-modules-module-register-module-full-backward-pre-hook) | - | 可新增,且框架底层有相关设计,成本低 | -| 568 | [torch.nn.modules.module.register\_module\_module\_registration\_hook](https://pytorch.org/docs/stable/generated/torch.nn.modules.module.register_module_module_registration_hook.html#torch-nn-modules-module-register-module-module-registration-hook) | - | 可新增,且框架底层有相关设计,成本低 | -| 569 | [torch.nn.modules.module.register\_module\_parameter\_registration\_hook](https://pytorch.org/docs/stable/generated/torch.nn.modules.module.register_module_parameter_registration_hook.html#torch-nn-modules-module-register-module-parameter-registration-hook) | - | 可新增,且框架底层有相关设计,成本低 | -| 570 | [torch.nn.utils.parametrize.cached](https://pytorch.org/docs/stable/generated/torch.nn.utils.parametrize.cached.html#torch-nn-utils-parametrize-cached) | - | 可新增,且框架底层有相关设计,成本低 | -| 571 | [torch.nn.utils.parametrize.ParametrizationList](https://pytorch.org/docs/stable/generated/torch.nn.utils.parametrize.ParametrizationList.html#torch.nn.utils.parametrize.ParametrizationList) | - | 可新增,且框架底层有相关设计,成本低 | -| 572 | [torch.nn.utils.prune.BasePruningMethod](https://pytorch.org/docs/stable/generated/torch.nn.utils.prune.BasePruningMethod.html#torch.nn.utils.prune.BasePruningMethod) | - | 可新增,且框架底层有相关设计,成本低 | -| 573 | [torch.nn.utils.prune.custom\_from\_mask](https://pytorch.org/docs/stable/generated/torch.nn.utils.prune.custom_from_mask.html#torch-nn-utils-prune-custom-from-mask) | - | 可新增,且框架底层有相关设计,成本低 | -| 574 | [torch.nn.utils.prune.CustomFromMask](https://pytorch.org/docs/stable/generated/torch.nn.utils.prune.CustomFromMask.html#torch.nn.utils.prune.CustomFromMask) | - | 可新增,且框架底层有相关设计,成本低 | -| 575 | [torch.nn.utils.prune.Identity](https://pytorch.org/docs/stable/generated/torch.nn.utils.prune.identity.html#torch-nn-utils-prune-identity) | - | 可新增,且框架底层有相关设计,成本低 | -| 576 | [torch.nn.utils.prune.is_pruned](https://pytorch.org/docs/stable/generated/torch.nn.utils.prune.is_pruned.html#torch-nn-utils-prune-is-pruned) | - | 可新增,且框架底层有相关设计,成本低 | -| 577 | [torch.nn.utils.prune.LnStructured](https://pytorch.org/docs/stable/generated/torch.nn.utils.prune.LnStructured.html#torch.nn.utils.prune.LnStructured) | - | 可新增,且框架底层有相关设计,成本低 | -| 578 | [torch.nn.utils.prune.RandomUnstructured](https://pytorch.org/docs/stable/generated/torch.nn.utils.prune.RandomUnstructured.html#torch.nn.utils.prune.RandomUnstructured) | - | 可新增,且框架底层有相关设计,成本低 | -| 579 | [torch.nn.utils.rnn.unpack_sequence](https://pytorch.org/docs/stable/generated/torch.nn.utils.rnn.unpack_sequence.html#torch-nn-utils-rnn-unpack-sequence) | - | 可新增,且框架底层有相关设计,成本低 | -| 580 | [torch.nn.ZeroPad1d](https://pytorch.org/docs/stable/generated/torch.nn.ZeroPad1d.html#torch.nn.ZeroPad1d) | - | 可新增,且框架底层有相关设计,成本低 | -| 581 | [torch.nn.ZeroPad3d](https://pytorch.org/docs/stable/generated/torch.nn.ZeroPad3d.html#torch.nn.ZeroPad3d) | - | 可新增,且框架底层有相关设计,成本低 | -| 582 | [torch.profiler._KinetoProfile](https://pytorch.org/docs/stable/profiler.html#torch.profiler._KinetoProfile) | - | 可新增,且框架底层有相关设计,成本低 | -| 583 | [torch.profiler.itt.is_available](https://pytorch.org/docs/stable/profiler.html#torch.profiler.itt.is_available) | - | 可新增,且框架底层有相关设计,成本低 | -| 584 | [torch.profiler.itt.mark](https://pytorch.org/docs/stable/profiler.html#torch.profiler.itt.mark) | - | 可新增,且框架底层有相关设计,成本低 | -| 585 | [torch.profiler.itt.range_pop](https://pytorch.org/docs/stable/profiler.html#torch.profiler.itt.range_pop) | - | 可新增,且框架底层有相关设计,成本低 | -| 586 | [torch.profiler.itt.range_push](https://pytorch.org/docs/stable/profiler.html#torch.profiler.itt.range_push) | - | 可新增,且框架底层有相关设计,成本低 | -| 587 | [torch.special.airy_ai](https://pytorch.org/docs/stable/special.html#torch.special.airy_ai) | - | 可新增,且框架底层有相关设计,成本低 | -| 588 | [torch.special.bessel_j0](https://pytorch.org/docs/stable/special.html#torch.special.bessel_j0) | - | 可新增,且框架底层有相关设计,成本低 | -| 589 | [torch.special.bessel_j1](https://pytorch.org/docs/stable/special.html#torch.special.bessel_j1) | - | 可新增,且框架底层有相关设计,成本低 | -| 590 | [torch.special.scaled\_modified\_bessel\_k0](https://pytorch.org/docs/stable/special.html#torch.special.scaled_modified_bessel_k0) | - | 可新增,且框架底层有相关设计,成本低 | -| 591 | [torch.special.scaled\_modified\_bessel\_k1](https://pytorch.org/docs/stable/special.html#torch.special.scaled_modified_bessel_k1) | - | 可新增,且框架底层有相关设计,成本低 | -| 592 | [torch.special.spherical\_bessel\_j0](https://pytorch.org/docs/stable/special.html#torch.special.spherical_bessel_j0) | - | 可新增,且框架底层有相关设计,成本低 | -| 593 | [torch.Tensor.conj\_physical\_](https://pytorch.org/docs/stable/generated/torch.Tensor.conj_physical_.html#torch-tensor-conj-physical) | - | 可新增,且框架底层有相关设计,成本低 | -| 594 | [torch.Tensor.is_meta](https://pytorch.org/docs/stable/generated/torch.Tensor.is_meta.html#torch-tensor-is-meta) | - | 可新增,且框架底层有相关设计,成本低 | -| 595 | [torch.Tensor.is_quantized](https://pytorch.org/docs/stable/generated/torch.Tensor.is_quantized.html#torch-tensor-is-quantized) | - | 可新增,且框架底层有相关设计,成本低 | -| 596 | [torch.Tensor.module_load](https://pytorch.org/docs/stable/generated/torch.Tensor.module_load.html#torch-tensor-module-load) | - | 可新增,但框架底层无相关设计,成本高 | -| 597 | [torch.Tensor.nextafter_](https://pytorch.org/docs/stable/generated/torch.Tensor.nextafter_.html#torch-tensor-nextafter) | - | 可新增,且框架底层有相关设计,成本低 | -| 598 | [torch.Tensor.retains_grad](https://pytorch.org/docs/stable/generated/torch.Tensor.retains_grad.html#torch-tensor-retains-grad) | - | 可新增,且框架底层有相关设计,成本低 | -| 599 | [torch.Tensor.smm](https://pytorch.org/docs/stable/generated/torch.Tensor.smm.html#torch-tensor-smm) | - | 可新增,且框架底层有相关设计,成本低 | -| 600 | [torch.utils.benchmark.CallgrindStats](https://pytorch.org/docs/stable/benchmark_utils.html#torch.utils.benchmark.CallgrindStats) | - | 可新增,且框架底层有相关设计,成本低 | -| 601 | [torch.utils.benchmark.FunctionCounts](https://pytorch.org/docs/stable/benchmark_utils.html#torch.utils.benchmark.FunctionCounts) | - | 可新增,且框架底层有相关设计,成本低 | -| 602 | [torch.utils.benchmark.Measurement](https://pytorch.org/docs/stable/benchmark_utils.html#torch.utils.benchmark.Measurement) | - | 可新增,且框架底层有相关设计,成本低 | -| 603 | [torch.utils.checkpoint.set\_checkpoint\_debug\_enabled](https://pytorch.org/docs/stable/checkpoint.html#torch.utils.checkpoint.set_checkpoint_debug_enabled) | - | 可新增,且框架底层有相关设计,成本低 | -| 604 | [torch.utils.cpp\_extension.get\_compiler\_abi\_compatibility\_and\_version](https://pytorch.org/docs/stable/cpp_extension.html#torch.utils.cpp_extension.get_compiler_abi_compatibility_and_version) | - | 可新增,且框架底层有相关设计,成本低 | -| 605 | [torch.utils.cpp\_extension.is\_ninja\_available](https://pytorch.org/docs/stable/cpp_extension.html#torch.utils.cpp_extension.is_ninja_available) | - | 可新增,且框架底层有相关设计,成本低 | -| 606 | [torch.utils.data.default_convert](https://pytorch.org/docs/stable/data.html#torch.utils.data.default_convert) | - | 可新增,且框架底层有相关设计,成本低 | -| 607 | [torch.utils.generate\_methods\_for\_privateuse1\_backend](https://pytorch.org/docs/stable/generated/torch.utils.generate_methods_for_privateuse1_backend.html#torch-utils-generate-methods-for-privateuse1-backend) | - | 可新增,且框架底层有相关设计,成本低 | -| 608 | [torch.utils.get\_cpp\_backtrace](https://pytorch.org/docs/stable/generated/torch.utils.get_cpp_backtrace.html#torch-utils-get-cpp-backtrace) | - | 可新增,且框架底层有相关设计,成本低 | -| 609 | [torch.utils.rename\_privateuse1\_backend](https://pytorch.org/docs/stable/generated/torch.utils.rename_privateuse1_backend.html#torch-utils-rename-privateuse1-backend) | - | 可新增,且框架底层有相关设计,成本低 | -| 610 | [torch.xpu.current_stream](https://pytorch.org/docs/stable/generated/torch.xpu.current_stream.html#torch-xpu-current-stream) | - | 可新增,且框架底层有相关设计,成本低 | -| 611 | [torch.xpu.device](https://pytorch.org/docs/stable/generated/torch.xpu.device.html#torch.xpu.device) | - | 可新增,且框架底层有相关设计,成本低 | -| 612 | [torch.xpu.device_of](https://pytorch.org/docs/stable/generated/torch.xpu.device_of.html#torch.xpu.device_of) | - | 可新增,且框架底层有相关设计,成本低 | -| 613 | [torch.xpu.Event](https://pytorch.org/docs/stable/generated/torch.xpu.Event.html#torch.xpu.Event) | - | 可新增,且框架底层有相关设计,成本低 | -| 614 | [torch.xpu.get\_device\_capability](https://pytorch.org/docs/stable/generated/torch.xpu.get_device_capability.html#torch-xpu-get-device-capability) | - | 可新增,且框架底层有相关设计,成本低 | -| 615 | [torch.xpu.init](https://pytorch.org/docs/stable/generated/torch.xpu.init.html#torch-xpu-init) | - | 可新增,且框架底层有相关设计,成本低 | -| 616 | [torch.xpu.initial_seed](https://pytorch.org/docs/stable/generated/torch.xpu.initial_seed.html#torch-xpu-initial-seed) | - | 可新增,且框架底层有相关设计,成本低 | -| 617 | [torch.xpu.is_initialized](https://pytorch.org/docs/stable/generated/torch.xpu.is_initialized.html#torch-xpu-is-initialized) | - | 可新增,且框架底层有相关设计,成本低 | -| 618 | [torch.xpu.seed](https://pytorch.org/docs/stable/generated/torch.xpu.seed.html#torch-xpu-seed) | - | 可新增,且框架底层有相关设计,成本低 | -| 619 | [torch.xpu.seed_all](https://pytorch.org/docs/stable/generated/torch.xpu.seed_all.html#torch-xpu-seed-all) | - | 可新增,且框架底层有相关设计,成本低 | -| 620 | [torch.xpu.set_stream](https://pytorch.org/docs/stable/generated/torch.xpu.set_stream.html#torch-xpu-set-stream) | - | 可新增,且框架底层有相关设计,成本低 | -| 621 | [torch.xpu.stream](https://pytorch.org/docs/stable/generated/torch.xpu.stream.html#torch-xpu-stream) | - | 可新增,且框架底层有相关设计,成本低 | -| 622 | [torch.xpu.Stream](https://pytorch.org/docs/stable/generated/torch.xpu.Stream.html#torch.xpu.Stream) | - | 可新增,且框架底层有相关设计,成本低 | -| 623 | [torch.xpu.StreamContext](https://pytorch.org/docs/stable/generated/torch.xpu.StreamContext.html#torch.xpu.StreamContext) | - | 可新增,且框架底层有相关设计,成本低 | -| 624 | [torch.geqrf](https://pytorch.org/docs/stable/generated/torch.geqrf.html#torch-geqrf) | - | 可新增,且框架底层有相关设计,成本低 | -| 625 | [torch.Tensor.geqrf](https://pytorch.org/docs/stable/generated/torch.Tensor.geqrf.html#torch-tensor-geqrf) | - | 可新增,且框架底层有相关设计,成本低 | -| 626 | [torch.distributions.constraint_registry.ConstraintRegistry](https://pytorch.org/docs/stable/distributions.html#torch.distributions.constraint_registry.ConstraintRegistry) | - | 可新增,且框架底层有相关设计,成本低 | -| 627 | [torch.distributed.rpc.functions.async_execution](https://pytorch.org/docs/stable/rpc.html#torch.distributed.rpc.functions.async_execution) | - | 可新增,且框架底层有相关设计,成本低 | -| 628 | [torch.Tensor.sparse\_resize\_and\_clear\_](https://pytorch.org/docs/stable/generated/torch.Tensor.sparse_resize_and_clear_.html#torch-tensor-sparse-resize-and-clear) | - | 可新增,且框架底层有相关设计,成本低 | -| 629 | [torch.nn.utils.parametrize.is_parametrized](https://pytorch.org/docs/stable/generated/torch.nn.utils.parametrize.is_parametrized.html#torch-nn-utils-parametrize-is-parametrized) | - | 可新增,且框架底层有相关设计,成本低 | -| 630 | [torch.autograd.profiler.profile.self\_cpu\_time\_total](https://pytorch.org/docs/stable/generated/torch.autograd.profiler.profile.self_cpu_time_total.html#torch-autograd-profiler-profile-self-cpu-time-total) | - | 可新增,且框架底层有相关设计,成本低 | -| 631 | [torch.profiler.ProfilerActivity](https://pytorch.org/docs/stable/profiler.html#torch.profiler.ProfilerActivity) | - | 可新增,且框架底层有相关设计,成本低 | -| 632 | [torch.profiler.ProfilerAction](https://pytorch.org/docs/stable/profiler.html#torch.profiler.ProfilerAction) | - | 可新增,且框架底层有相关设计,成本低 | -| 633 | [torch.resolve_conj](https://pytorch.org/docs/stable/generated/torch.resolve_conj.html#torch.resolve_conj) | - | 可新增,但框架底层无相关设计,成本高 | -| 634 | [torch.resolve_neg](https://pytorch.org/docs/stable/generated/torch.resolve_neg.html#torch-resolve-neg) | - | 可新增,但框架底层无相关设计,成本高 | -| 635 | [torch.autograd.function.FunctionCtx.mark_dirty](https://pytorch.org/docs/stable/generated/torch.autograd.function.FunctionCtx.mark_dirty.html#torch-autograd-function-functionctx-mark-dirty) | - | 可新增,且框架底层有相关设计,成本低 | -| 636 | [torch.is_conj](https://pytorch.org/docs/stable/generated/torch.is_conj.html#torch-is-conj) | - | 可新增,但框架底层无相关设计,成本高 | -| 637 | [torch.cuda.memory_usage](https://pytorch.org/docs/stable/generated/torch.cuda.memory_usage.html#torch-cuda-memory-usage) | - | 可新增,且框架底层有相关设计,成本低 | -| 638 | [torch.layout](https://pytorch.org/docs/stable/tensor_attributes.html#torch.layout) | - | 可新增,但框架底层无相关设计,成本高 | -| 639 | [torch.cuda.is\_current\_stream\_capturing](https://pytorch.org/docs/stable/generated/torch.cuda.is_current_stream_capturing.html#torch-cuda-is-current-stream-capturing) | - | 可新增,且框架底层有相关设计,成本低 | -| 640 | [torch.cuda.device_of](https://pytorch.org/docs/stable/generated/torch.cuda.device_of.html) | - | 可新增,且框架底层有相关设计,成本低 | -| 641 | [torch.distributed.gather_object](https://pytorch.org/docs/stable/distributed.html#torch.distributed.gather_object) | - | 可新增,且框架底层有相关设计,成本低 | -| 642 | [torch.jit.trace](https://pytorch.org/docs/stable/generated/torch.jit.trace.html#torch-jit-trace) | - | 可新增,但框架底层无相关设计,成本高 | -| 643 | [torch.jit.unused](https://pytorch.org/docs/stable/generated/torch.jit.unused.html#torch-jit-unused) | - | 可新增,但框架底层无相关设计,成本高 | -| 644 | [torch.utils.checkpoint.checkpoint_sequential](https://pytorch.org/docs/stable/checkpoint.html#torch.utils.checkpoint.checkpoint_sequential) | - | 可新增,但框架底层无相关设计,成本高 | -| 645 | [torch.nn.parameter.UninitializedBuffer](https://pytorch.org/docs/stable/generated/torch.nn.parameter.UninitializedBuffer.html#torch.nn.parameter.UninitializedBuffer) | - | 可新增,且框架底层有相关设计,成本低 | -| 646 | [torch.memory_format](https://pytorch.org/docs/stable/tensor_attributes.html#torch.memory_format) | - | 可新增,但框架底层无相关设计,成本高 | -| 647 | [torch.distributed.is\_gloo\_available](https://pytorch.org/docs/stable/distributed.html#torch.distributed.is_gloo_available) | - | 可新增,且框架底层有相关设计,成本低 | -| 648 | [torch.distributed.get\_group\_rank](https://pytorch.org/docs/stable/distributed.html#torch.distributed.get_group_rank) | - | 可新增,且框架底层有相关设计,成本低 | -| 649 | [torch.distributed.get\_global\_rank](https://pytorch.org/docs/stable/distributed.html#torch.distributed.get_process_group_ranks) | - | 可新增,且框架底层有相关设计,成本低 | -| 650 | [torch.set\_deterministic\_debug\_mode](https://pytorch.org/docs/stable/generated/torch.set_deterministic_debug_mode.html#torch-set-deterministic-debug-mode) | - | 可新增,但框架底层无相关设计,成本高 | -| 651 | [torch.get\_deterministic\_debug\_mode](https://pytorch.org/docs/stable/generated/torch.get_deterministic_debug_mode.html#torch-get-deterministic-debug-mode) | - | 可新增,但框架底层无相关设计,成本高 | -| 652 | [torch.autograd.graph.Node.name](https://pytorch.org/docs/stable/generated/torch.autograd.graph.Node.name.html#torch-autograd-graph-node-name) | - | 可新增,但框架底层无相关设计,成本高 | -| 653 | [torch.autograd.graph.Node.metadata](https://pytorch.org/docs/stable/generated/torch.autograd.graph.Node.metadata.html#torch-autograd-graph-node-metadata) | - | 可新增,但框架底层无相关设计,成本高 | -| 654 | [torch.autograd.graph.Node.next_functions](https://pytorch.org/docs/stable/generated/torch.autograd.graph.Node.next_functions.html#torch-autograd-graph-node-next-functions) | - | 可新增,但框架底层无相关设计,成本高 | -| 655 | [torch.autograd.graph.Node.register_hook](https://pytorch.org/docs/stable/generated/torch.autograd.graph.Node.register_hook.html#torch-autograd-graph-node-register-hook) | - | 可新增,但框架底层无相关设计,成本高 | -| 656 | [torch.autograd.graph.Node.register_prehook](https://pytorch.org/docs/stable/generated/torch.autograd.graph.Node.register_prehook.html#torch-autograd-graph-node-register-prehook) | - | 可新增,但框架底层无相关设计,成本高 | -| 657 | [torch.cuda.OutOfMemoryError](https://pytorch.org/docs/stable/generated/torch.cuda.OutOfMemoryError.html#torch-cuda-outofmemoryerror) | - | 可新增,且框架底层有相关设计,成本低 | -| 658 | [torch.backends.cpu.get\_cpu\_capability](https://pytorch.org/docs/stable/backends.html#torch.backends.cpu.get_cpu_capability) | - | 可新增,但框架底层无相关设计,成本高 | -| 659 | [torch.nn.utils.fuse\_conv\_bn\_eval](https://pytorch.org/docs/stable/generated/torch.nn.utils.fuse_conv_bn_eval.html#torch-nn-utils-fuse-conv-bn-eval) | - | 可新增,且框架底层有相关设计,成本低 | -| 660 | [torch.nn.utils.fuse\_conv\_bn\_weights](https://pytorch.org/docs/stable/generated/torch.nn.utils.fuse_conv_bn_weights.html#torch-nn-utils-fuse-conv-bn-weights) | - | 可新增,且框架底层有相关设计,成本低 | -| 661 | [torch.nn.utils.fuse\_linear\_bn\_eval](https://pytorch.org/docs/stable/generated/torch.nn.utils.fuse_linear_bn_eval.html#torch-nn-utils-fuse-linear-bn-eval) | - | 可新增,且框架底层有相关设计,成本低 | -| 662 | [torch.nn.utils.fuse\_linear\_bn\_weights](https://pytorch.org/docs/stable/generated/torch.nn.utils.fuse_linear_bn_weights.html#torch-nn-utils-fuse-linear-bn-weights) | - | 可新增,且框架底层有相关设计,成本低 | -| 663 | [torch.nn.utils.convert\_conv2d\_weight\_memory\_format](https://pytorch.org/docs/stable/generated/torch.nn.utils.convert_conv2d_weight_memory_format.html#torch-nn-utils-convert-conv2d-weight-memory-format) | - | 可新增,且框架底层有相关设计,成本低 | -| 664 | [torch.nn.utils.convert\_conv3d\_weight\_memory\_format](https://pytorch.org/docs/stable/generated/torch.nn.utils.convert_conv3d_weight_memory_format.html#torch-nn-utils-convert-conv3d-weight-memory-format) | - | 可新增,且框架底层有相关设计,成本低 | -| 665 | [torch.utils.tensorboard.writer.SummaryWriter](https://pytorch.org/docs/stable/tensorboard.html#torch.utils.tensorboard.writer.SummaryWriter) | - | 可新增,但框架底层无相关设计,成本高 | -| 666 | [torch.backends.cuda.can\_use\_flash\_attention](https://pytorch.org/docs/stable/backends.html#torch.backends.cuda.can_use_flash_attention) | - | 可新增,且框架底层有相关设计,成本低 | -| 667 | [torch.distributed.device_mesh.DeviceMesh](https://pytorch.org/docs/stable/distributed.html#torch.distributed.device_mesh.DeviceMesh) | - | 可新增,且框架底层有相关设计,成本低 | -| 668 | [torch.cuda.comm.scatter](https://pytorch.org/docs/stable/generated/torch.cuda.comm.scatter.html#torch-cuda-comm-scatter) | - | 可新增,且框架底层有相关设计,成本低 | -| 669 | [torch.cuda.comm.gather](https://pytorch.org/docs/stable/generated/torch.cuda.comm.gather.html#torch-cuda-comm-gather) | - | 可新增,且框架底层有相关设计,成本低 | -| 670 | [torch.autograd.Function.jvp](https://pytorch.org/docs/stable/generated/torch.autograd.Function.jvp.html#torch-autograd-function-jvp) | - | 可新增,且框架底层有相关设计,成本低 | +| 558 | [torch.nn.CircularPad1d](https://pytorch.org/docs/stable/generated/torch.nn.CircularPad1d.html#torch.nn.CircularPad1d) | - | 可新增,且框架底层有相关设计,成本低 | +| 559 | [torch.nn.CircularPad2d](https://pytorch.org/docs/stable/generated/torch.nn.CircularPad2d.html#torch.nn.CircularPad2d) | - | 可新增,且框架底层有相关设计,成本低 | +| 560 | [torch.nn.functional.lp_pool3d](https://pytorch.org/docs/stable/generated/torch.nn.functional.lp_pool3d.html#torch-nn-functional-lp-pool3d) | - | 可新增,且框架底层有相关设计,成本低 | +| 561 | [torch.nn.LPPool3d](https://pytorch.org/docs/stable/generated/torch.nn.LPPool3d.html#torch.nn.LPPool3d) | - | 可新增,且框架底层有相关设计,成本低 | +| 562 | [torch.nn.modules.lazy.LazyModuleMixin](https://pytorch.org/docs/stable/generated/torch.nn.modules.lazy.LazyModuleMixin.html#torch.nn.modules.lazy.LazyModuleMixin) | - | 可新增,且框架底层有相关设计,成本低 | +| 563 | [torch.nn.modules.module.register\_module\_buffer\_registration\_hook](https://pytorch.org/docs/stable/generated/torch.nn.modules.module.register_module_buffer_registration_hook.html#torch-nn-modules-module-register-module-buffer-registration-hook) | - | 可新增,且框架底层有相关设计,成本低 | +| 564 | [torch.nn.modules.module.register\_module\_full\_backward\_hook](https://pytorch.org/docs/stable/generated/torch.nn.modules.module.register_module_full_backward_hook.html#torch-nn-modules-module-register-module-full-backward-hook) | - | 可新增,且框架底层有相关设计,成本低 | +| 565 | [torch.nn.modules.module.register\_module\_full\_backward\_pre\_hook](https://pytorch.org/docs/stable/generated/torch.nn.modules.module.register_module_full_backward_pre_hook.html#torch-nn-modules-module-register-module-full-backward-pre-hook) | - | 可新增,且框架底层有相关设计,成本低 | +| 566 | [torch.nn.modules.module.register\_module\_module\_registration\_hook](https://pytorch.org/docs/stable/generated/torch.nn.modules.module.register_module_module_registration_hook.html#torch-nn-modules-module-register-module-module-registration-hook) | - | 可新增,且框架底层有相关设计,成本低 | +| 567 | [torch.nn.modules.module.register\_module\_parameter\_registration\_hook](https://pytorch.org/docs/stable/generated/torch.nn.modules.module.register_module_parameter_registration_hook.html#torch-nn-modules-module-register-module-parameter-registration-hook) | - | 可新增,且框架底层有相关设计,成本低 | +| 568 | [torch.nn.utils.parametrize.cached](https://pytorch.org/docs/stable/generated/torch.nn.utils.parametrize.cached.html#torch-nn-utils-parametrize-cached) | - | 可新增,且框架底层有相关设计,成本低 | +| 569 | [torch.nn.utils.parametrize.ParametrizationList](https://pytorch.org/docs/stable/generated/torch.nn.utils.parametrize.ParametrizationList.html#torch.nn.utils.parametrize.ParametrizationList) | - | 可新增,且框架底层有相关设计,成本低 | +| 570 | [torch.nn.utils.prune.BasePruningMethod](https://pytorch.org/docs/stable/generated/torch.nn.utils.prune.BasePruningMethod.html#torch.nn.utils.prune.BasePruningMethod) | - | 可新增,且框架底层有相关设计,成本低 | +| 571 | [torch.nn.utils.prune.custom\_from\_mask](https://pytorch.org/docs/stable/generated/torch.nn.utils.prune.custom_from_mask.html#torch-nn-utils-prune-custom-from-mask) | - | 可新增,且框架底层有相关设计,成本低 | +| 572 | [torch.nn.utils.prune.CustomFromMask](https://pytorch.org/docs/stable/generated/torch.nn.utils.prune.CustomFromMask.html#torch.nn.utils.prune.CustomFromMask) | - | 可新增,且框架底层有相关设计,成本低 | +| 573 | [torch.nn.utils.prune.Identity](https://pytorch.org/docs/stable/generated/torch.nn.utils.prune.identity.html#torch-nn-utils-prune-identity) | - | 可新增,且框架底层有相关设计,成本低 | +| 574 | [torch.nn.utils.prune.is_pruned](https://pytorch.org/docs/stable/generated/torch.nn.utils.prune.is_pruned.html#torch-nn-utils-prune-is-pruned) | - | 可新增,且框架底层有相关设计,成本低 | +| 575 | [torch.nn.utils.prune.LnStructured](https://pytorch.org/docs/stable/generated/torch.nn.utils.prune.LnStructured.html#torch.nn.utils.prune.LnStructured) | - | 可新增,且框架底层有相关设计,成本低 | +| 576 | [torch.nn.utils.prune.RandomUnstructured](https://pytorch.org/docs/stable/generated/torch.nn.utils.prune.RandomUnstructured.html#torch.nn.utils.prune.RandomUnstructured) | - | 可新增,且框架底层有相关设计,成本低 | +| 577 | [torch.nn.utils.rnn.unpack_sequence](https://pytorch.org/docs/stable/generated/torch.nn.utils.rnn.unpack_sequence.html#torch-nn-utils-rnn-unpack-sequence) | - | 可新增,且框架底层有相关设计,成本低 | +| 578 | [torch.nn.ZeroPad1d](https://pytorch.org/docs/stable/generated/torch.nn.ZeroPad1d.html#torch.nn.ZeroPad1d) | - | 可新增,且框架底层有相关设计,成本低 | +| 579 | [torch.nn.ZeroPad3d](https://pytorch.org/docs/stable/generated/torch.nn.ZeroPad3d.html#torch.nn.ZeroPad3d) | - | 可新增,且框架底层有相关设计,成本低 | +| 580 | [torch.profiler._KinetoProfile](https://pytorch.org/docs/stable/profiler.html#torch.profiler._KinetoProfile) | - | 可新增,且框架底层有相关设计,成本低 | +| 581 | [torch.profiler.itt.is_available](https://pytorch.org/docs/stable/profiler.html#torch.profiler.itt.is_available) | - | 可新增,且框架底层有相关设计,成本低 | +| 582 | [torch.profiler.itt.mark](https://pytorch.org/docs/stable/profiler.html#torch.profiler.itt.mark) | - | 可新增,且框架底层有相关设计,成本低 | +| 583 | [torch.profiler.itt.range_pop](https://pytorch.org/docs/stable/profiler.html#torch.profiler.itt.range_pop) | - | 可新增,且框架底层有相关设计,成本低 | +| 584 | [torch.profiler.itt.range_push](https://pytorch.org/docs/stable/profiler.html#torch.profiler.itt.range_push) | - | 可新增,且框架底层有相关设计,成本低 | +| 585 | [torch.special.airy_ai](https://pytorch.org/docs/stable/special.html#torch.special.airy_ai) | - | 可新增,且框架底层有相关设计,成本低 | +| 586 | [torch.special.bessel_j0](https://pytorch.org/docs/stable/special.html#torch.special.bessel_j0) | - | 可新增,且框架底层有相关设计,成本低 | +| 587 | [torch.special.bessel_j1](https://pytorch.org/docs/stable/special.html#torch.special.bessel_j1) | - | 可新增,且框架底层有相关设计,成本低 | +| 588 | [torch.special.scaled\_modified\_bessel\_k0](https://pytorch.org/docs/stable/special.html#torch.special.scaled_modified_bessel_k0) | - | 可新增,且框架底层有相关设计,成本低 | +| 589 | [torch.special.scaled\_modified\_bessel\_k1](https://pytorch.org/docs/stable/special.html#torch.special.scaled_modified_bessel_k1) | - | 可新增,且框架底层有相关设计,成本低 | +| 590 | [torch.special.spherical\_bessel\_j0](https://pytorch.org/docs/stable/special.html#torch.special.spherical_bessel_j0) | - | 可新增,且框架底层有相关设计,成本低 | +| 591 | [torch.Tensor.conj\_physical\_](https://pytorch.org/docs/stable/generated/torch.Tensor.conj_physical_.html#torch-tensor-conj-physical) | - | 可新增,且框架底层有相关设计,成本低 | +| 592 | [torch.Tensor.is_meta](https://pytorch.org/docs/stable/generated/torch.Tensor.is_meta.html#torch-tensor-is-meta) | - | 可新增,且框架底层有相关设计,成本低 | +| 593 | [torch.Tensor.is_quantized](https://pytorch.org/docs/stable/generated/torch.Tensor.is_quantized.html#torch-tensor-is-quantized) | - | 可新增,且框架底层有相关设计,成本低 | +| 594 | [torch.Tensor.module_load](https://pytorch.org/docs/stable/generated/torch.Tensor.module_load.html#torch-tensor-module-load) | - | 可新增,但框架底层无相关设计,成本高 | +| 595 | [torch.Tensor.nextafter_](https://pytorch.org/docs/stable/generated/torch.Tensor.nextafter_.html#torch-tensor-nextafter) | - | 可新增,且框架底层有相关设计,成本低 | +| 596 | [torch.Tensor.retains_grad](https://pytorch.org/docs/stable/generated/torch.Tensor.retains_grad.html#torch-tensor-retains-grad) | - | 可新增,且框架底层有相关设计,成本低 | +| 597 | [torch.Tensor.smm](https://pytorch.org/docs/stable/generated/torch.Tensor.smm.html#torch-tensor-smm) | - | 可新增,且框架底层有相关设计,成本低 | +| 598 | [torch.utils.benchmark.CallgrindStats](https://pytorch.org/docs/stable/benchmark_utils.html#torch.utils.benchmark.CallgrindStats) | - | 可新增,且框架底层有相关设计,成本低 | +| 599 | [torch.utils.benchmark.FunctionCounts](https://pytorch.org/docs/stable/benchmark_utils.html#torch.utils.benchmark.FunctionCounts) | - | 可新增,且框架底层有相关设计,成本低 | +| 600 | [torch.utils.benchmark.Measurement](https://pytorch.org/docs/stable/benchmark_utils.html#torch.utils.benchmark.Measurement) | - | 可新增,且框架底层有相关设计,成本低 | +| 601 | [torch.utils.checkpoint.set\_checkpoint\_debug\_enabled](https://pytorch.org/docs/stable/checkpoint.html#torch.utils.checkpoint.set_checkpoint_debug_enabled) | - | 可新增,且框架底层有相关设计,成本低 | +| 602 | [torch.utils.cpp\_extension.get\_compiler\_abi\_compatibility\_and\_version](https://pytorch.org/docs/stable/cpp_extension.html#torch.utils.cpp_extension.get_compiler_abi_compatibility_and_version) | - | 可新增,且框架底层有相关设计,成本低 | +| 603 | [torch.utils.cpp\_extension.is\_ninja\_available](https://pytorch.org/docs/stable/cpp_extension.html#torch.utils.cpp_extension.is_ninja_available) | - | 可新增,且框架底层有相关设计,成本低 | +| 604 | [torch.utils.data.default_convert](https://pytorch.org/docs/stable/data.html#torch.utils.data.default_convert) | - | 可新增,且框架底层有相关设计,成本低 | +| 605 | [torch.utils.generate\_methods\_for\_privateuse1\_backend](https://pytorch.org/docs/stable/generated/torch.utils.generate_methods_for_privateuse1_backend.html#torch-utils-generate-methods-for-privateuse1-backend) | - | 可新增,且框架底层有相关设计,成本低 | +| 606 | [torch.utils.get\_cpp\_backtrace](https://pytorch.org/docs/stable/generated/torch.utils.get_cpp_backtrace.html#torch-utils-get-cpp-backtrace) | - | 可新增,且框架底层有相关设计,成本低 | +| 607 | [torch.utils.rename\_privateuse1\_backend](https://pytorch.org/docs/stable/generated/torch.utils.rename_privateuse1_backend.html#torch-utils-rename-privateuse1-backend) | - | 可新增,且框架底层有相关设计,成本低 | +| 608 | [torch.xpu.current_stream](https://pytorch.org/docs/stable/generated/torch.xpu.current_stream.html#torch-xpu-current-stream) | - | 可新增,且框架底层有相关设计,成本低 | +| 609 | [torch.xpu.device](https://pytorch.org/docs/stable/generated/torch.xpu.device.html#torch.xpu.device) | - | 可新增,且框架底层有相关设计,成本低 | +| 610 | [torch.xpu.device_of](https://pytorch.org/docs/stable/generated/torch.xpu.device_of.html#torch.xpu.device_of) | - | 可新增,且框架底层有相关设计,成本低 | +| 611 | [torch.xpu.Event](https://pytorch.org/docs/stable/generated/torch.xpu.Event.html#torch.xpu.Event) | - | 可新增,且框架底层有相关设计,成本低 | +| 612 | [torch.xpu.get\_device\_capability](https://pytorch.org/docs/stable/generated/torch.xpu.get_device_capability.html#torch-xpu-get-device-capability) | - | 可新增,且框架底层有相关设计,成本低 | +| 613 | [torch.xpu.init](https://pytorch.org/docs/stable/generated/torch.xpu.init.html#torch-xpu-init) | - | 可新增,且框架底层有相关设计,成本低 | +| 614 | [torch.xpu.initial_seed](https://pytorch.org/docs/stable/generated/torch.xpu.initial_seed.html#torch-xpu-initial-seed) | - | 可新增,且框架底层有相关设计,成本低 | +| 615 | [torch.xpu.is_initialized](https://pytorch.org/docs/stable/generated/torch.xpu.is_initialized.html#torch-xpu-is-initialized) | - | 可新增,且框架底层有相关设计,成本低 | +| 616 | [torch.xpu.seed](https://pytorch.org/docs/stable/generated/torch.xpu.seed.html#torch-xpu-seed) | - | 可新增,且框架底层有相关设计,成本低 | +| 617 | [torch.xpu.seed_all](https://pytorch.org/docs/stable/generated/torch.xpu.seed_all.html#torch-xpu-seed-all) | - | 可新增,且框架底层有相关设计,成本低 | +| 618 | [torch.xpu.set_stream](https://pytorch.org/docs/stable/generated/torch.xpu.set_stream.html#torch-xpu-set-stream) | - | 可新增,且框架底层有相关设计,成本低 | +| 619 | [torch.xpu.stream](https://pytorch.org/docs/stable/generated/torch.xpu.stream.html#torch-xpu-stream) | - | 可新增,且框架底层有相关设计,成本低 | +| 620 | [torch.xpu.Stream](https://pytorch.org/docs/stable/generated/torch.xpu.Stream.html#torch.xpu.Stream) | - | 可新增,且框架底层有相关设计,成本低 | +| 621 | [torch.xpu.StreamContext](https://pytorch.org/docs/stable/generated/torch.xpu.StreamContext.html#torch.xpu.StreamContext) | - | 可新增,且框架底层有相关设计,成本低 | +| 622 | [torch.geqrf](https://pytorch.org/docs/stable/generated/torch.geqrf.html#torch-geqrf) | - | 可新增,且框架底层有相关设计,成本低 | +| 623 | [torch.Tensor.geqrf](https://pytorch.org/docs/stable/generated/torch.Tensor.geqrf.html#torch-tensor-geqrf) | - | 可新增,且框架底层有相关设计,成本低 | +| 624 | [torch.distributions.constraint_registry.ConstraintRegistry](https://pytorch.org/docs/stable/distributions.html#torch.distributions.constraint_registry.ConstraintRegistry) | - | 可新增,且框架底层有相关设计,成本低 | +| 625 | [torch.distributed.rpc.functions.async_execution](https://pytorch.org/docs/stable/rpc.html#torch.distributed.rpc.functions.async_execution) | - | 可新增,且框架底层有相关设计,成本低 | +| 626 | [torch.Tensor.sparse\_resize\_and\_clear\_](https://pytorch.org/docs/stable/generated/torch.Tensor.sparse_resize_and_clear_.html#torch-tensor-sparse-resize-and-clear) | - | 可新增,且框架底层有相关设计,成本低 | +| 627 | [torch.nn.utils.parametrize.is_parametrized](https://pytorch.org/docs/stable/generated/torch.nn.utils.parametrize.is_parametrized.html#torch-nn-utils-parametrize-is-parametrized) | - | 可新增,且框架底层有相关设计,成本低 | +| 628 | [torch.autograd.profiler.profile.self\_cpu\_time\_total](https://pytorch.org/docs/stable/generated/torch.autograd.profiler.profile.self_cpu_time_total.html#torch-autograd-profiler-profile-self-cpu-time-total) | - | 可新增,且框架底层有相关设计,成本低 | +| 629 | [torch.profiler.ProfilerActivity](https://pytorch.org/docs/stable/profiler.html#torch.profiler.ProfilerActivity) | - | 可新增,且框架底层有相关设计,成本低 | +| 630 | [torch.profiler.ProfilerAction](https://pytorch.org/docs/stable/profiler.html#torch.profiler.ProfilerAction) | - | 可新增,且框架底层有相关设计,成本低 | +| 631 | [torch.resolve_conj](https://pytorch.org/docs/stable/generated/torch.resolve_conj.html#torch.resolve_conj) | - | 可新增,但框架底层无相关设计,成本高 | +| 632 | [torch.resolve_neg](https://pytorch.org/docs/stable/generated/torch.resolve_neg.html#torch-resolve-neg) | - | 可新增,但框架底层无相关设计,成本高 | +| 633 | [torch.autograd.function.FunctionCtx.mark_dirty](https://pytorch.org/docs/stable/generated/torch.autograd.function.FunctionCtx.mark_dirty.html#torch-autograd-function-functionctx-mark-dirty) | - | 可新增,且框架底层有相关设计,成本低 | +| 634 | [torch.is_conj](https://pytorch.org/docs/stable/generated/torch.is_conj.html#torch-is-conj) | - | 可新增,但框架底层无相关设计,成本高 | +| 635 | [torch.cuda.memory_usage](https://pytorch.org/docs/stable/generated/torch.cuda.memory_usage.html#torch-cuda-memory-usage) | - | 可新增,且框架底层有相关设计,成本低 | +| 636 | [torch.layout](https://pytorch.org/docs/stable/tensor_attributes.html#torch.layout) | - | 可新增,但框架底层无相关设计,成本高 | +| 637 | [torch.cuda.is\_current\_stream\_capturing](https://pytorch.org/docs/stable/generated/torch.cuda.is_current_stream_capturing.html#torch-cuda-is-current-stream-capturing) | - | 可新增,且框架底层有相关设计,成本低 | +| 638 | [torch.cuda.device_of](https://pytorch.org/docs/stable/generated/torch.cuda.device_of.html) | - | 可新增,且框架底层有相关设计,成本低 | +| 639 | [torch.distributed.gather_object](https://pytorch.org/docs/stable/distributed.html#torch.distributed.gather_object) | - | 可新增,且框架底层有相关设计,成本低 | +| 640 | [torch.jit.trace](https://pytorch.org/docs/stable/generated/torch.jit.trace.html#torch-jit-trace) | - | 可新增,但框架底层无相关设计,成本高 | +| 641 | [torch.jit.unused](https://pytorch.org/docs/stable/generated/torch.jit.unused.html#torch-jit-unused) | - | 可新增,但框架底层无相关设计,成本高 | +| 642 | [torch.utils.checkpoint.checkpoint_sequential](https://pytorch.org/docs/stable/checkpoint.html#torch.utils.checkpoint.checkpoint_sequential) | - | 可新增,但框架底层无相关设计,成本高 | +| 643 | [torch.nn.parameter.UninitializedBuffer](https://pytorch.org/docs/stable/generated/torch.nn.parameter.UninitializedBuffer.html#torch.nn.parameter.UninitializedBuffer) | - | 可新增,且框架底层有相关设计,成本低 | +| 644 | [torch.memory_format](https://pytorch.org/docs/stable/tensor_attributes.html#torch.memory_format) | - | 可新增,但框架底层无相关设计,成本高 | +| 645 | [torch.distributed.is\_gloo\_available](https://pytorch.org/docs/stable/distributed.html#torch.distributed.is_gloo_available) | - | 可新增,且框架底层有相关设计,成本低 | +| 646 | [torch.distributed.get\_group\_rank](https://pytorch.org/docs/stable/distributed.html#torch.distributed.get_group_rank) | - | 可新增,且框架底层有相关设计,成本低 | +| 647 | [torch.distributed.get\_global\_rank](https://pytorch.org/docs/stable/distributed.html#torch.distributed.get_process_group_ranks) | - | 可新增,且框架底层有相关设计,成本低 | +| 648 | [torch.set\_deterministic\_debug\_mode](https://pytorch.org/docs/stable/generated/torch.set_deterministic_debug_mode.html#torch-set-deterministic-debug-mode) | - | 可新增,但框架底层无相关设计,成本高 | +| 649 | [torch.get\_deterministic\_debug\_mode](https://pytorch.org/docs/stable/generated/torch.get_deterministic_debug_mode.html#torch-get-deterministic-debug-mode) | - | 可新增,但框架底层无相关设计,成本高 | +| 650 | [torch.autograd.graph.Node.name](https://pytorch.org/docs/stable/generated/torch.autograd.graph.Node.name.html#torch-autograd-graph-node-name) | - | 可新增,但框架底层无相关设计,成本高 | +| 651 | [torch.autograd.graph.Node.metadata](https://pytorch.org/docs/stable/generated/torch.autograd.graph.Node.metadata.html#torch-autograd-graph-node-metadata) | - | 可新增,但框架底层无相关设计,成本高 | +| 652 | [torch.autograd.graph.Node.next_functions](https://pytorch.org/docs/stable/generated/torch.autograd.graph.Node.next_functions.html#torch-autograd-graph-node-next-functions) | - | 可新增,但框架底层无相关设计,成本高 | +| 653 | [torch.autograd.graph.Node.register_hook](https://pytorch.org/docs/stable/generated/torch.autograd.graph.Node.register_hook.html#torch-autograd-graph-node-register-hook) | - | 可新增,但框架底层无相关设计,成本高 | +| 654 | [torch.autograd.graph.Node.register_prehook](https://pytorch.org/docs/stable/generated/torch.autograd.graph.Node.register_prehook.html#torch-autograd-graph-node-register-prehook) | - | 可新增,但框架底层无相关设计,成本高 | +| 655 | [torch.cuda.OutOfMemoryError](https://pytorch.org/docs/stable/generated/torch.cuda.OutOfMemoryError.html#torch-cuda-outofmemoryerror) | - | 可新增,且框架底层有相关设计,成本低 | +| 656 | [torch.backends.cpu.get\_cpu\_capability](https://pytorch.org/docs/stable/backends.html#torch.backends.cpu.get_cpu_capability) | - | 可新增,但框架底层无相关设计,成本高 | +| 657 | [torch.nn.utils.fuse\_conv\_bn\_eval](https://pytorch.org/docs/stable/generated/torch.nn.utils.fuse_conv_bn_eval.html#torch-nn-utils-fuse-conv-bn-eval) | - | 可新增,且框架底层有相关设计,成本低 | +| 658 | [torch.nn.utils.fuse\_conv\_bn\_weights](https://pytorch.org/docs/stable/generated/torch.nn.utils.fuse_conv_bn_weights.html#torch-nn-utils-fuse-conv-bn-weights) | - | 可新增,且框架底层有相关设计,成本低 | +| 659 | [torch.nn.utils.fuse\_linear\_bn\_eval](https://pytorch.org/docs/stable/generated/torch.nn.utils.fuse_linear_bn_eval.html#torch-nn-utils-fuse-linear-bn-eval) | - | 可新增,且框架底层有相关设计,成本低 | +| 660 | [torch.nn.utils.fuse\_linear\_bn\_weights](https://pytorch.org/docs/stable/generated/torch.nn.utils.fuse_linear_bn_weights.html#torch-nn-utils-fuse-linear-bn-weights) | - | 可新增,且框架底层有相关设计,成本低 | +| 661 | [torch.nn.utils.convert\_conv2d\_weight\_memory\_format](https://pytorch.org/docs/stable/generated/torch.nn.utils.convert_conv2d_weight_memory_format.html#torch-nn-utils-convert-conv2d-weight-memory-format) | - | 可新增,且框架底层有相关设计,成本低 | +| 662 | [torch.nn.utils.convert\_conv3d\_weight\_memory\_format](https://pytorch.org/docs/stable/generated/torch.nn.utils.convert_conv3d_weight_memory_format.html#torch-nn-utils-convert-conv3d-weight-memory-format) | - | 可新增,且框架底层有相关设计,成本低 | +| 663 | [torch.utils.tensorboard.writer.SummaryWriter](https://pytorch.org/docs/stable/tensorboard.html#torch.utils.tensorboard.writer.SummaryWriter) | - | 可新增,但框架底层无相关设计,成本高 | +| 664 | [torch.backends.cuda.can\_use\_flash\_attention](https://pytorch.org/docs/stable/backends.html#torch.backends.cuda.can_use_flash_attention) | - | 可新增,且框架底层有相关设计,成本低 | +| 665 | [torch.distributed.device_mesh.DeviceMesh](https://pytorch.org/docs/stable/distributed.html#torch.distributed.device_mesh.DeviceMesh) | - | 可新增,且框架底层有相关设计,成本低 | +| 666 | [torch.cuda.comm.scatter](https://pytorch.org/docs/stable/generated/torch.cuda.comm.scatter.html#torch-cuda-comm-scatter) | - | 可新增,且框架底层有相关设计,成本低 | +| 667 | [torch.cuda.comm.gather](https://pytorch.org/docs/stable/generated/torch.cuda.comm.gather.html#torch-cuda-comm-gather) | - | 可新增,且框架底层有相关设计,成本低 | +| 668 | [torch.autograd.Function.jvp](https://pytorch.org/docs/stable/generated/torch.autograd.Function.jvp.html#torch-autograd-function-jvp) | - | 可新增,且框架底层有相关设计,成本低 | diff --git a/docs/guides/model_convert/convert_from_pytorch/tools/.gitignore b/docs/guides/model_convert/convert_from_pytorch/tools/.gitignore index 4ddc4935890..0c071ca6492 100644 --- a/docs/guides/model_convert/convert_from_pytorch/tools/.gitignore +++ b/docs/guides/model_convert/convert_from_pytorch/tools/.gitignore @@ -3,6 +3,7 @@ alias_macro_lines.tmp.md generated.tmp.md tmp_check.md no_implement.md +download_files_from_paconvert.sh # files will be used in PaConvert docs_mappings.json diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.clone.md b/docs/guides/model_convert/convert_from_pytorch/tools/deprecated/torch.Tensor.clone.md similarity index 100% rename from docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.clone.md rename to docs/guides/model_convert/convert_from_pytorch/tools/deprecated/torch.Tensor.clone.md diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.contiguous.md b/docs/guides/model_convert/convert_from_pytorch/tools/deprecated/torch.Tensor.contiguous.md similarity index 100% rename from docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.contiguous.md rename to docs/guides/model_convert/convert_from_pytorch/tools/deprecated/torch.Tensor.contiguous.md diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.eq.md b/docs/guides/model_convert/convert_from_pytorch/tools/deprecated/torch.Tensor.eq.md similarity index 100% rename from docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.eq.md rename to docs/guides/model_convert/convert_from_pytorch/tools/deprecated/torch.Tensor.eq.md diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.is_contiguous.md b/docs/guides/model_convert/convert_from_pytorch/tools/deprecated/torch.Tensor.is_contiguous.md similarity index 100% rename from docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.Tensor.is_contiguous.md rename to docs/guides/model_convert/convert_from_pytorch/tools/deprecated/torch.Tensor.is_contiguous.md diff --git a/docs/guides/model_convert/convert_from_pytorch/tools/deprecated/torch.ge.md b/docs/guides/model_convert/convert_from_pytorch/tools/deprecated/torch.ge.md new file mode 100644 index 00000000000..3cac516b54d --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/tools/deprecated/torch.ge.md @@ -0,0 +1,15 @@ +## [仅 API 调用方式不一致]torch.ge + +### [torch.ge](https://pytorch.org/docs/stable/generated/torch.ge.html) + +```python +torch.ge(input, other, *, out) +``` + +### [paddle.greater\_equal](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/greater_equal_cn.html#greater-equal) + +```python +paddle.greater_equal(x, y) +``` + +PyTorch 相比 Paddle 支持更多其他参数,具体如下: diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.get_default_device.md b/docs/guides/model_convert/convert_from_pytorch/tools/deprecated/torch.get_default_device.md similarity index 86% rename from docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.get_default_device.md rename to docs/guides/model_convert/convert_from_pytorch/tools/deprecated/torch.get_default_device.md index 757a680e1c9..827399c609d 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_diff_only/torch.get_default_device.md +++ b/docs/guides/model_convert/convert_from_pytorch/tools/deprecated/torch.get_default_device.md @@ -1,4 +1,4 @@ -## [无参数]torch.get_default_device +## [仅 API 调用方式不一致]torch.get_default_device ### [torch.get_default_device](https://pytorch.org/docs/stable/generated/torch.get_default_device.html#torch-get-default-device) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.le.md b/docs/guides/model_convert/convert_from_pytorch/tools/deprecated/torch.le.md similarity index 100% rename from docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.le.md rename to docs/guides/model_convert/convert_from_pytorch/tools/deprecated/torch.le.md diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.lt.md b/docs/guides/model_convert/convert_from_pytorch/tools/deprecated/torch.lt.md similarity index 100% rename from docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.lt.md rename to docs/guides/model_convert/convert_from_pytorch/tools/deprecated/torch.lt.md diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.ne.md b/docs/guides/model_convert/convert_from_pytorch/tools/deprecated/torch.ne.md similarity index 100% rename from docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.ne.md rename to docs/guides/model_convert/convert_from_pytorch/tools/deprecated/torch.ne.md diff --git a/docs/guides/model_convert/convert_from_pytorch/tools/generate_pytorch_api_mapping.py b/docs/guides/model_convert/convert_from_pytorch/tools/generate_pytorch_api_mapping.py index 70a7560525c..44de3437093 100644 --- a/docs/guides/model_convert/convert_from_pytorch/tools/generate_pytorch_api_mapping.py +++ b/docs/guides/model_convert/convert_from_pytorch/tools/generate_pytorch_api_mapping.py @@ -6,6 +6,59 @@ from collections import defaultdict +def get_pytorch_url(torch_api: str) -> str: + """ + 根据PyTorch API名称生成其官方文档URL + + Args: + api_name: PyTorch API的全限定名(如'torch.add', 'torch.nn.Linear', 'torch.Tensor.add') + + Returns: + 对应API的官方文档URL字符串 + + Rules: + 1. Tensor相关API指向tensors.html + 2. 顶层函数(torch.xxx)指向torch.html + 3. 类/独立函数指向generated/[name].html + 4. 类方法指向父类页面#锚点 + 5. 特殊处理torchvision等子库的URL结构 + """ + base_url = "https://pytorch.org/docs/stable/" + api_name = torch_api.replace(r"\_", "_") + # 1. 处理Tensor相关API(特殊页面) + if api_name.startswith("torch.Tensor") or api_name == "torch.Tensor": + return f"{base_url}tensors.html#{api_name}" + + parts = api_name.split(".") + + # 2. 处理顶层函数(无子模块) + if len(parts) == 2 and parts[0] == "torch": + return f"{base_url}torch.html#{api_name}" + + # 3. 识别类名首字母大写的部分(PyTorch命名规范) + base_parts = [] + found_class = False + for part in parts: + if part and part[0].isupper(): # 检测类名(首字母大写) + found_class = True + base_parts.append(part) + if found_class: + break # 定位到最近的类名 + + # 4. 根据不同情况生成URL + if found_class: + base_name = ".".join(base_parts) + # 处理torchvision等子库 + if api_name.startswith("torchvision."): + return f"https://pytorch.org/vision/stable/generated/{base_name}.html#{api_name}" + return f"{base_url}generated/{base_name}.html#{api_name}" + else: + # 5. 处理独立函数 + if api_name.startswith("torchvision."): + return f"https://pytorch.org/vision/stable/generated/{api_name}.html#{api_name}" + return f"{base_url}generated/{api_name}.html#{api_name}" + + def escape_underscores_in_api(api_name): r""" 处理PyTorch API名称中的下划线转义。 @@ -125,7 +178,6 @@ def get_mapping_doc_url(torch_api, base_dir): # 定义两个可能的文档目录路径 api_difference_dirs = [ os.path.join(base_dir, "api_difference"), - # os.path.join(base_dir, "api_difference_third_party"), ] # 将torch_api中的特殊字符转换为下划线,并添加.md后缀,构成文件名 @@ -216,17 +268,7 @@ def generate_category1_table( """ 生成类别1(API完全一致)的Markdown表格 """ - white_list = [ - "torch.Tensor.imag", - "torch.Tensor.is_coalesced", - "torch.Tensor.is_sparse", - "torch.Tensor.is_sparse_csr", - "torch.Tensor.logical_not_", - "torch.Tensor.real", - "torch.iinfo", - "torch.nn.utils.clip_grad_norm_", - "torch.nn.utils.clip_grad_value_", - ] + white_list = [] no_need_convert_list = extract_no_need_convert_list( no_need_convert_file_path @@ -237,6 +279,7 @@ def generate_category1_table( # 处理no_need_convert_list中的每个Torch API for torch_api in no_need_convert_list: + existing_apis.add(torch_api) if "__" in torch_api: torch_api = torch_api.replace("_", r"\_") if torch_api in used_apis: @@ -245,53 +288,13 @@ def generate_category1_table( used_apis.add(torch_api) # 标记该API已处理 existing_apis.add(torch_api) - # 在docs_mapping中查找当前torch_api对应的信息 - mapping_info = docs_mapping.get(torch_api, {}) - src_url = mapping_info.get("src_api_url") if mapping_info else None - - # 查找对应的paddle_api映射信息(可能需要遍历所有值) + src_url = get_pytorch_url(torch_api) dst_url = None - for item in docs_mapping.values(): - if item.get("dst_api") == paddle_api: - dst_url = item.get("dst_api_url") - break - # 构建第二列和第三列的字符串内容,包含URL(如果存在) col2 = f"[{torch_api}]({src_url})" if src_url else torch_api col3 = f"[{paddle_api}]({dst_url})" if dst_url else paddle_api rows.append((torch_api, col2, col3, "-")) - # 遍历docs_mapping,查找满足条件的额外API对 - for src_api, item in docs_mapping.items(): - mapping_type = item.get("mapping_type", "") - dst_api = item.get("dst_api", "") - - # 检查条件:mapping_type为"无参数"或"参数完全一致",且src_api以"torch"开头,替换后与dst_api相同,且不在no_need_convert_list中 - if (mapping_type in ["无参数", "参数完全一致"]) and src_api.startswith( - "torch" - ): - expected_paddle_api = src_api.replace("torch", "paddle") - if "__" in src_api: - src_api = src_api.replace("_", r"\_") - dst_api = dst_api.replace("_", r"\_") - if ( - expected_paddle_api == dst_api - and src_api not in used_apis - and src_api not in white_list - ): - used_apis.add(src_api) # 标记该API已处理 - existing_apis.add(src_api) - - src_url = item.get("src_api_url") - dst_url = item.get("dst_api_url") - - src_api_display = escape_underscores_in_api(src_api) - dst_api_display = escape_underscores_in_api(dst_api) - - col2 = f"[{src_api_display}]({src_url})" if src_url else src_api - col3 = f"[{dst_api_display}]({dst_url})" if dst_url else dst_api - rows.append((src_api, col2, col3, "-")) - # 生成Markdown表格字符串 table_lines = [ "| 序号 | Pytorch 最新 release | Paddle develop | 备注 |", @@ -316,14 +319,13 @@ def generate_category2_table( 生成类别2(仅API调用方式不一致)的Markdown表格 """ whitelist_skip = [ - "torch.Tensor.numel", - "torch.Tensor.nelement", - "torch.Tensor.is_inference", - "torch.numel", - "torch.is_inference", - "torch.ge", - "torch.utils.data.WeightedRandomSampler", - "torch.utils.data.RandomSampler", + # "torch.Tensor.numel",# invoke_diff + # "torch.Tensor.nelement", + # "torch.Tensor.is_inference", # 不确定 + # "torch.numel", # 返回类型不一致 + # "torch.is_inference", + # "torch.utils.data.WeightedRandomSampler", + # "torch.utils.data.RandomSampler", ] no_need_convert_list = extract_no_need_convert_list( @@ -353,6 +355,8 @@ def generate_category2_table( "TensorFunc2PaddleFunc", "Func2Attribute", "Attribute2Func", + "NumelMatcher", + "Is_InferenceMatcher", ]: # 在docs_mapping中查找当前src_api对应的信息 docs_mapping_info = docs_mapping.get(src_api, {}) @@ -395,7 +399,7 @@ def generate_category2_table( ): continue # 检查条件:mapping_type为"无参数"或"参数完全一致",src_api包含"torch",替换后与dst_api不等 - if (mapping_type in ["无参数", "参数完全一致"]) and "torch" in src_api: + if mapping_type in ["无参数", "参数完全一致", "仅 API 调用方式不一致"]: expected_paddle_api = src_api.replace("torch", "paddle") if expected_paddle_api != dst_api: used_apis.add(src_api) # 标记该API已处理 diff --git a/docs/guides/model_convert/convert_from_pytorch/tools/get_api_difference_info.py b/docs/guides/model_convert/convert_from_pytorch/tools/get_api_difference_info.py index 852c41cf97e..06b90683c38 100644 --- a/docs/guides/model_convert/convert_from_pytorch/tools/get_api_difference_info.py +++ b/docs/guides/model_convert/convert_from_pytorch/tools/get_api_difference_info.py @@ -21,6 +21,7 @@ [ "无参数", "参数完全一致", + "仅 API 调用方式不一致", "仅参数名不一致", "paddle 参数更多", "参数默认值不一致", @@ -476,7 +477,7 @@ def get_meta_from_diff_file( ) # 允许没有参数映射列表 - if mapping_type in ["无参数", "组合替代实现"]: + if mapping_type in ["无参数", "组合替代实现", "仅 API 调用方式不一致"]: if state == ParserState.wait_for_args: state = ParserState.end # 必须有参数映射列表,但是可以随时停止 diff --git a/docs/guides/model_convert/convert_from_pytorch/tools/validate_api_difference.py b/docs/guides/model_convert/convert_from_pytorch/tools/validate_api_difference.py index e77afccacd3..218b6fb5af4 100644 --- a/docs/guides/model_convert/convert_from_pytorch/tools/validate_api_difference.py +++ b/docs/guides/model_convert/convert_from_pytorch/tools/validate_api_difference.py @@ -252,6 +252,59 @@ def check_links_exist(categories): return warnings +def extract_all_urls(categories): + """ + 从所有类别中提取所有URL及其上下文信息 + """ + urls_with_context = [] + + for category in categories: + for row_idx, row in enumerate(category["table"]): + # 提取Pytorch列链接 + pytorch_links = extract_links(row["pytorch"]) + for link_text, url in pytorch_links: + urls_with_context.append( + { + "url": url, + "category_id": category["id"], + "category_name": category["name"], + "row_index": row_idx + 1, + "column": "Pytorch", + "context": f"{link_text} (类别 {category['id']}.{category['name']} 第 {row_idx + 1} 行)", + } + ) + + # 提取Paddle列链接 + paddle_links = extract_links(row["paddle"]) + for link_text, url in paddle_links: + urls_with_context.append( + { + "url": url, + "category_id": category["id"], + "category_name": category["name"], + "row_index": row_idx + 1, + "column": "Paddle", + "context": f"{link_text} (类别 {category['id']}.{category['name']} 第 {row_idx + 1} 行)", + } + ) + + # 提取Note列链接 + note_links = extract_links(row["note"]) + for link_text, url in note_links: + urls_with_context.append( + { + "url": url, + "category_id": category["id"], + "category_name": category["name"], + "row_index": row_idx + 1, + "column": "Note", + "context": f"{link_text} (类别 {category['id']}.{category['name']} 第 {row_idx + 1} 行)", + } + ) + + return urls_with_context + + def main(): parser = argparse.ArgumentParser(description="Markdown 文件校验工具") parser.add_argument(