diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.all.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.all.md index df49484a5af..e8aa80a3bc1 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.all.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.all.md @@ -17,6 +17,7 @@ paddle.Tensor.all(axis=None, 其中 Paddle 与 PyTorch 运算 Tensor 所支持的类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | 运算 Tensor | 运算 Tensor | PyTorch 支持布尔和数值类型的输入,Paddle 仅支持布尔类型,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.any.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.any.md index bb7a3bf9e8f..23928793ee6 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.any.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.any.md @@ -17,6 +17,7 @@ paddle.Tensor.any(axis=None, 其中 Paddle 与 PyTorch 运算 Tensor 所支持的类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | 运算 Tensor | 运算 Tensor | PyTorch 支持布尔和数值类型的输入,Paddle 仅支持布尔类型,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.apply_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.apply_.md index 1c00f686951..204bf4266c2 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.apply_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.apply_.md @@ -15,6 +15,7 @@ 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/Tensor/torch.Tensor.argwhere.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.argwhere.md index 361f1e8bf9d..668dc9236df 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.argwhere.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.argwhere.md @@ -14,6 +14,7 @@ paddle.Tensor.nonzero(as_tuple=False) 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | - | as_tuple | 返回格式。是否以 1-D Tensor 构成的元组格式返回。 PyTorch 无此参数, Paddle 保持默认即可。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.as_strided.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.as_strided.md index 179d35b313a..4993959e973 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.as_strided.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.as_strided.md @@ -18,6 +18,7 @@ paddle.Tensor.as_strided(shape, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | size | shape | 表示输出 Tensor 的维度, 仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.cholesky_solve.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.cholesky_solve.md index 9109163d60e..e84e60e32ed 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.cholesky_solve.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.cholesky_solve.md @@ -15,6 +15,7 @@ paddle.Tensor.cholesky_solve(y, upper=False, name=None) 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------- | ------------ | -------------------------------------------------------------------------- | | input2 | y | 表示线性方程中 A 矩阵的 Cholesky 分解矩阵 u。仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.chunk.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.chunk.md index fef895078cb..b863d198058 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.chunk.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.chunk.md @@ -14,6 +14,7 @@ paddle.Tensor.chunk(chunks, axis=0, name=None) 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |------------| ------------ | ------------------------------------------------------ | | chunks | chunks | 表示将输入 Tensor 划分成多少个相同大小的子 Tensor。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.clamp.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.clamp.md index fed0f19570d..4208b04e294 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.clamp.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.clamp.md @@ -14,6 +14,7 @@ paddle.Tensor.clip(min=None, max=None, name=None) 两者功能一致,参数完全一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |---------|--------------| -------------------------------------------------- | | min | min | 裁剪的最小值,输入中小于该值的元素将由该元素代替。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.clamp_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.clamp_.md index 71fead88750..aa17b4657b5 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.clamp_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.clamp_.md @@ -14,6 +14,7 @@ paddle.Tensor.clip_(min=None, max=None, name=None) 两者功能一致,参数完全一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |---------|--------------|---------------------------| | min | min | 裁剪的最小值,输入中小于该值的元素将由该元素代替。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.clip.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.clip.md index 4e92caad308..d4d5dd45fbd 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.clip.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.clip.md @@ -14,6 +14,7 @@ paddle.Tensor.clip(min=None, max=None, name=None) 两者功能一致,参数完全一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |---------|--------------| -------------------------------------------------- | | min | min | 裁剪的最小值,输入中小于该值的元素将由该元素代替。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.clip_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.clip_.md index 92bf7eb9434..3ccde9df1e8 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.clip_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.clip_.md @@ -14,6 +14,7 @@ paddle.Tensor.clip_(min=None, max=None, name=None) 两者功能一致,参数完全一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |---------|--------------|---------------------------| | min | min | 裁剪的最小值,输入中小于该值的元素将由该元素代替。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.count_nonzero.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.count_nonzero.md index 8262041a099..24df4729f2c 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.count_nonzero.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.count_nonzero.md @@ -14,6 +14,7 @@ paddle.Tensor.count_nonzero(axis=None, keepdim=False, name=None) 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | dim | axis | 表示进行运算的轴,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.eq_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.eq_.md index c5a2a0294c1..ca92cf9ad5b 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.eq_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.eq_.md @@ -15,6 +15,7 @@ paddle.Tensor.equal_(y) 其中,PyTorch 与 Paddle 的 `other` 参数所支持类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |----------------------------------|------------------------------| ------------------------------------------------------ | | other | y | 表示输入的 Tensor ,PyTorch 支持 Python Number 和 Tensor 类型, Paddle 仅支持 Tensor 类型。当输入为 Python Number 类型时,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.gcd.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.gcd.md index 51b4c16b007..1fc3cab92bc 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.gcd.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.gcd.md @@ -14,6 +14,7 @@ paddle.Tensor.gcd(y, name=None) 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |----------------------------------|------------------------------| ------------------------------------------------------ | | other | y | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.gcd_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.gcd_.md index 8f1934f1aa6..05f22e4f10a 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.gcd_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.gcd_.md @@ -14,6 +14,7 @@ paddle.Tensor.gcd_(y) 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |----------------------------------|------------------------------| ------------------------------------------------------ | | other | y | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ge.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ge.md index 3995dcfa701..4c429dd5f83 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ge.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ge.md @@ -15,6 +15,7 @@ paddle.Tensor.greater_equal(y, name=None) 其中,PyTorch 与 Paddle 的 `other` 参数所支持类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |----------------------------------|------------------------------| ------------------------------------------------------ | | other | y | 输入的 Tensor ,PyTorch 支持 Tensor 和 Python Number,Paddle 仅支持 Tensor,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ge_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ge_.md index a3473f43521..82706618deb 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ge_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ge_.md @@ -15,6 +15,7 @@ paddle.Tensor.greater_equal_(y) 其中,PyTorch 与 Paddle 的 `other` 参数所支持类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |----------------------------------|------------------------------| ------------------------------------------------------ | | other | y | 输入的 Tensor ,PyTorch 支持 Tensor 和 Python Number,Paddle 仅支持 Tensor,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ger.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ger.md index e4f98e87ce1..bfe64f31a49 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ger.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ger.md @@ -14,6 +14,7 @@ paddle.Tensor.outer(y, name=None) 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |--------------------------------|------------------------------| ------------------------------------------------------ | | vec2 | y | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.greater.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.greater.md index 493241139f8..cce4bcc28b4 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.greater.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.greater.md @@ -14,6 +14,7 @@ paddle.Tensor.greater_than(y, name=None) 其中 Paddle 和 PyTorch 的 `other` 参数所支持的数据类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |----------------------------------|------------------------------| ------------------------------------------------------ | | other | y | 表示输入的 Tensor ,PyTorch 支持 Python Number 和 Tensor 类型, Paddle 仅支持 Tensor 类型。当输入为 Python Number 类型时,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.greater_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.greater_.md index cc52daf66fa..2541946f0a8 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.greater_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.greater_.md @@ -14,6 +14,7 @@ paddle.Tensor.greater_than_(y) 其中 Paddle 和 PyTorch 的 `other` 参数所支持的数据类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |----------------------------------|------------------------------| ------------------------------------------------------ | | other | y | 表示输入的 Tensor ,PyTorch 支持 Python Number 和 Tensor 类型, Paddle 仅支持 Tensor 类型。当输入为 Python Number 类型时,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.greater_equal.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.greater_equal.md index 6b4da672fe1..13f6087f7bd 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.greater_equal.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.greater_equal.md @@ -15,6 +15,7 @@ paddle.Tensor.greater_equal(y, name=None) 其中,PyTorch 与 Paddle 的 `other` 参数所支持类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |----------------------------------|------------------------------| ------------------------------------------------------ | | other | y | 输入的 Tensor ,PyTorch 支持 Tensor 和 Python Number,Paddle 仅支持 Tensor,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.greater_equal_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.greater_equal_.md index 0740c1d1451..8a4da98ea9c 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.greater_equal_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.greater_equal_.md @@ -15,6 +15,7 @@ paddle.Tensor.greater_equal_(y) 其中,PyTorch 与 Paddle 的 `other` 参数所支持类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |----------------------------------|------------------------------| ------------------------------------------------------ | | other | y | 输入的 Tensor ,PyTorch 支持 Tensor 和 Python Number,Paddle 仅支持 Tensor,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.gt.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.gt.md index 05c919dad9b..ae207c82dd7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.gt.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.gt.md @@ -14,6 +14,7 @@ paddle.Tensor.greater_than(y, name=None) 其中 Paddle 和 PyTorch 的 `other` 参数所支持的数据类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |----------------------------------|------------------------------| ------------------------------------------------------ | | other | y | 表示输入的 Tensor ,PyTorch 支持 Python Number 和 Tensor 类型, Paddle 仅支持 Tensor 类型。当输入为 Python Number 类型时,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.gt_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.gt_.md index ee4b6c7f673..b86ca1cc88d 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.gt_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.gt_.md @@ -14,6 +14,7 @@ paddle.Tensor.greater_than_(y) 其中 Paddle 和 PyTorch 的 `other` 参数所支持的数据类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |----------------------------------|------------------------------| ------------------------------------------------------ | | other | y | 表示输入的 Tensor ,PyTorch 支持 Python Number 和 Tensor 类型, Paddle 仅支持 Tensor 类型。当输入为 Python Number 类型时,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.heaviside.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.heaviside.md index 6edda772fb1..ad36120a311 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.heaviside.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.heaviside.md @@ -14,6 +14,7 @@ paddle.Tensor.heaviside(y, name=None) 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |-----------------------------------|------------------------------| ------------------------------------------------------ | | values | y | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.index_add.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.index_add.md index d77e9db1a65..ea6ad3dfdb8 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.index_add.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.index_add.md @@ -13,6 +13,7 @@ paddle.Tensor.index_add(index, axis, value, name=None) 其中 PyTorch 与 Paddle 参数有差异,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | dim | axis | 表示进行运算的轴,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.index_add_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.index_add_.md index 551aba0dd89..0a6541cbefc 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.index_add_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.index_add_.md @@ -14,6 +14,7 @@ paddle.Tensor.index_add_(index, axis, value) 其中 PyTorch 与 Paddle 参数有差异,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | dim | axis | 表示进行运算的轴,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.item.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.item.md index e8230236bfe..27f021023d7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.item.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.item.md @@ -16,6 +16,7 @@ paddle.Tensor.item(*args) ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | - | *args | Tensor 的指定位置,保持默认即可。| diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.le.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.le.md index 3eefe5620bb..620ba89137a 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.le.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.le.md @@ -14,6 +14,7 @@ paddle.Tensor.less_equal(y, name=None) 其中 Paddle 和 PyTorch 的 `other` 参数所支持的数据类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |----------------------------------|------------------------------| ------------------------------------------------------ | | other | y | 表示输入的 Tensor ,PyTorch 支持 Python Number 和 Tensor 类型, Paddle 仅支持 Tensor 类型。当输入为 Python Number 类型时,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.le_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.le_.md index a8e1d209078..bd49ecaa4ea 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.le_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.le_.md @@ -14,6 +14,7 @@ paddle.Tensor.less_equal_(y) 其中 Paddle 和 PyTorch 的 `other` 参数所支持的数据类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |----------------------------------|------------------------------| ------------------------------------------------------ | | other | y | 表示输入的 Tensor ,PyTorch 支持 Python Number 和 Tensor 类型, Paddle 仅支持 Tensor 类型。当输入为 Python Number 类型时,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.less.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.less.md index 9aa23efa1c0..6b0c3e4b22f 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.less.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.less.md @@ -14,6 +14,7 @@ paddle.Tensor.less_than(y, name=None) 其中 Paddle 和 PyTorch 的 `other` 参数所支持的数据类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |----------------------------------|------------------------------| ------------------------------------------------------ | | other | y | 表示输入的 Tensor ,PyTorch 支持 Python Number 和 Tensor 类型, Paddle 仅支持 Tensor 类型。当输入为 Python Number 类型时,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.less_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.less_.md index 598c7853535..1f0a2d49fa9 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.less_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.less_.md @@ -14,6 +14,7 @@ paddle.Tensor.less_than_(y) 其中 Paddle 和 PyTorch 的 `other` 参数所支持的数据类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |----------------------------------|------------------------------| ------------------------------------------------------ | | other | y | 表示输入的 Tensor ,PyTorch 支持 Python Number 和 Tensor 类型, Paddle 仅支持 Tensor 类型。当输入为 Python Number 类型时,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.less_equal.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.less_equal.md index 389f603631e..2e345ee6451 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.less_equal.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.less_equal.md @@ -14,6 +14,7 @@ paddle.Tensor.less_equal(y, name=None) 其中 Paddle 和 PyTorch 的 `other` 参数所支持的数据类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |----------------------------------|------------------------------| ------------------------------------------------------ | | other | y | 表示输入的 Tensor ,PyTorch 支持 Python Number 和 Tensor 类型, Paddle 仅支持 Tensor 类型。当输入为 Python Number 类型时,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.less_equal_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.less_equal_.md index ff6b7f4614e..606a674454a 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.less_equal_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.less_equal_.md @@ -14,6 +14,7 @@ paddle.Tensor.less_equal_(y) 其中 Paddle 和 PyTorch 的 `other` 参数所支持的数据类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |----------------------------------|------------------------------| ------------------------------------------------------ | | other | y | 表示输入的 Tensor ,PyTorch 支持 Python Number 和 Tensor 类型, Paddle 仅支持 Tensor 类型。当输入为 Python Number 类型时,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.lt.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.lt.md index e468028d150..6ba59ba8c22 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.lt.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.lt.md @@ -14,6 +14,7 @@ paddle.Tensor.less_than(y, name=None) 其中 Paddle 和 PyTorch 的 `other` 参数所支持的数据类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |----------------------------------|------------------------------| ------------------------------------------------------ | | other | y | 表示输入的 Tensor ,PyTorch 支持 Python Number 和 Tensor 类型, Paddle 仅支持 Tensor 类型。当输入为 Python Number 类型时,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.lt_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.lt_.md index c3428a71fc1..f28ef384c88 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.lt_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.lt_.md @@ -14,6 +14,7 @@ paddle.Tensor.less_than_(y) 其中 Paddle 和 PyTorch 的 `other` 参数所支持的数据类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |----------------------------------|------------------------------| ------------------------------------------------------ | | other | y | 表示输入的 Tensor ,PyTorch 支持 Python Number 和 Tensor 类型, Paddle 仅支持 Tensor 类型。当输入为 Python Number 类型时,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.mul.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.mul.md index ed93d0b1fb7..05654002a91 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.mul.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.mul.md @@ -17,6 +17,7 @@ paddle.Tensor.multiply(y, 其中,Paddle 与 PyTorch 的 `other` 参数所支持类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ----------------------------------------------- | | other | y | 相乘的元素,PyTorch 支持 Tensor 和 Python Number,Paddle 仅支持 Tensor,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.multiply.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.multiply.md index 46f15d964b9..a493dbaa2a2 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.multiply.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.multiply.md @@ -17,6 +17,7 @@ paddle.Tensor.multiply(y, 其中,Paddle 与 PyTorch 的 `other` 参数所支持类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ----------------------------------------------- | | other | y | 相乘的元素,PyTorch 支持 Tensor 和 Python Number,Paddle 仅支持 Tensor,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.mv.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.mv.md index 10b297f6be1..b226ebeb0f3 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.mv.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.mv.md @@ -14,6 +14,7 @@ paddle.Tensor.mv(vec) 两者功能一致,且参数一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | vec | vec | 相乘的向量。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.nanmean.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.nanmean.md index b7203210db8..c9abeede8e1 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.nanmean.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.nanmean.md @@ -19,6 +19,7 @@ paddle.Tensor.nanmean(axis=None, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | dim | axis | 表示进行运算的轴,可选项,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.nansum.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.nansum.md index 1b07d3301ec..24f1b469f5e 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.nansum.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.nansum.md @@ -18,6 +18,7 @@ paddle.Tensor.nansum(axis=None, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | dim | axis | 需要求和的维度,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.narrow.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.narrow.md index 1a8d11e28bc..c533b5765de 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.narrow.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.narrow.md @@ -15,6 +15,7 @@ paddle.slice(input, 其中 PyTorch 的 length 与 Paddle 的 ends 用法不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | - | input | 表示输入的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ne.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ne.md index 3bf74107d35..82e50bbdb27 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ne.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ne.md @@ -14,6 +14,7 @@ paddle.Tensor.not_equal(y) 其中,Paddle 与 PyTorch 的 `other` 参数所支持类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ----------------------------------------------- | | other | y | 比较的元素,PyTorch 支持 Tensor 和 Python Number,Paddle 仅支持 Tensor,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ne_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ne_.md index 745619a1297..89d6043dca4 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ne_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ne_.md @@ -14,6 +14,7 @@ paddle.Tensor.not_equal_(y) 其中,Paddle 与 PyTorch 的 `other` 参数所支持类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ----------------------------------------------- | | other | y | 比较的元素,PyTorch 支持 Tensor 和 Python Number,Paddle 仅支持 Tensor,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.not_equal.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.not_equal.md index f53968a423f..0f30356ddba 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.not_equal.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.not_equal.md @@ -14,6 +14,7 @@ paddle.Tensor.not_equal(y) 其中,Paddle 与 PyTorch 的 `other` 参数所支持类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ----------------------------------------------- | | other | y | 比较的元素,PyTorch 支持 Tensor 和 Python Number,Paddle 仅支持 Tensor,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.not_equal_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.not_equal_.md index 04ad12dd845..72aa0ab9b86 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.not_equal_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.not_equal_.md @@ -14,6 +14,7 @@ paddle.Tensor.not_equal_(y) 其中,Paddle 与 PyTorch 的 `other` 参数所支持类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ----------------------------------------------- | | other | y | 比较的元素,PyTorch 支持 Tensor 和 Python Number,Paddle 仅支持 Tensor,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.permute.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.permute.md index 96964dbfd3c..2a2ce0fcf0c 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.permute.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.permute.md @@ -14,6 +14,7 @@ paddle.Tensor.transpose(perm, name=None) PyTorch 的 `*dims` 相比于 paddle 的 `perm` 额外支持可变参数的用法,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | *dims | perm | torch 支持可变参数或 list/tuple,paddle 仅支持 list/tuple。对于可变参数的用法,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.quantile.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.quantile.md index a394d8c0797..bff524225fe 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.quantile.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.quantile.md @@ -15,6 +15,7 @@ paddle.Tensor.quantile(q, axis=None, keepdim=False, interpolation='linear', name PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------- | ------------ | ------------------------ | | q | q |待计算的分位数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ravel.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ravel.md index 3f0afda20b6..d2567859c92 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ravel.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ravel.md @@ -13,6 +13,7 @@ paddle.Tensor.flatten(start_axis=0, stop_axis=- 1, name=None) 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | - | start_axis | 表示 flatten 展开的起始维度, PyTorch 无此参数, Paddle 保持默认即可。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.register_hook.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.register_hook.md index 9b7ab415fba..d695169c696 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.register_hook.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.register_hook.md @@ -15,6 +15,7 @@ paddle.Tensor.register_hook(hook) 两者功能一致,且参数一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | hook | hook | 一个需要注册到 Tensor.grad 上的 hook 函数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.remainder.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.remainder.md index 09b8434c8f7..f334ffc5fd7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.remainder.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.remainder.md @@ -14,6 +14,7 @@ paddle.Tensor.remainder(y, name=None) 其中 Paddle 与 PyTorch 运算除数参数所支持的类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | divisor | y | 除数,PyTorch 可为 Tensor or Scalar,Paddle 仅可为 Tensor, 需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.remainder_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.remainder_.md index f27c33d3837..b7ee69c3fce 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.remainder_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.remainder_.md @@ -14,6 +14,7 @@ paddle.Tensor.remainder_(, name=None) 其中 Paddle 与 PyTorch 运算除数参数所支持的类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | divisor | y | 除数,PyTorch 可为 Tensor or Scalar,Paddle 仅可为 Tensor,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.repeat.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.repeat.md index fe981e9f1c4..d083aac695b 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.repeat.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.repeat.md @@ -14,6 +14,7 @@ paddle.Tensor.tile(repeat_times, name=None) PyTorch 的 `*sizes` 相比于 Paddle 的 `repeat_times` 额外支持可变参数的用法,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | *sizes | repeat_times | torch 支持可变参数或 list/tuple,paddle 仅支持 list/tuple。对于可变参数的用法,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.repeat_interleave.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.repeat_interleave.md index 6438c0b7509..fad3a795ff7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.repeat_interleave.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.repeat_interleave.md @@ -15,6 +15,7 @@ paddle.Tensor.repeat_interleave(repeats, axis=None, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------- | ------------ | --------------------------------------------------- | | repeats | repeats | 表示指定复制次数的 1-D Tensor 或指定的复制次数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.reshape.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.reshape.md index a27f3578139..5a31cfb8a86 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.reshape.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.reshape.md @@ -14,6 +14,7 @@ paddle.Tensor.reshape(shape, name=None) PyTorch 的 `*shape` 相比于 Paddle 的 `shape` 额外支持可变参数的用法,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | *shape | shape | torch 支持可变参数或 list/tuple,paddle 仅支持 list/tuple。对于可变参数的用法,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.rot90.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.rot90.md index c67ec39bb1f..844f3de32b5 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.rot90.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.rot90.md @@ -15,6 +15,7 @@ paddle.Tensor.rot90(k=1, axes=[0, 1]) 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | k | k | 旋转方向和次数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.round.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.round.md index 4ca7ae207d0..7ca3ed10a7c 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.round.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.round.md @@ -15,6 +15,7 @@ paddle.Tensor.round(name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | -------- | ------- | ------- | | decimals | - | 舍入小数位数 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.round_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.round_.md index 8e87c2c2a5b..117a65edb6b 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.round_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.round_.md @@ -15,6 +15,7 @@ paddle.Tensor.round_(name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | -------- | ------- | ------- | | decimals | - | 舍入小数位数 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.scatter.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.scatter.md index 3a0b3197474..f6d58e7065e 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.scatter.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.scatter.md @@ -15,6 +15,7 @@ paddle.Tensor.put_along_axis(indices, values, axis, reduce="assign", include_sel 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------- | ------------ | ------- | | dim | axis | 表示在哪一个维度 scatter ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.scatter_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.scatter_.md index af8d055b1f8..af51c6d3315 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.scatter_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.scatter_.md @@ -15,6 +15,7 @@ paddle.Tensor.put_along_axis_(index, value, axis, reduce="assign", include_self= 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------- | ------------ | ------- | | dim | axis | 表示在哪一个维度 scatter ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.size.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.size.md index 839bfa7e335..b0171744136 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.size.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.size.md @@ -15,6 +15,7 @@ paddle.Tensor.shape PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------- | ------------ | ------- | | dim | - | 表示获取大小的轴,Paddle 无此参数,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.slogdet.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.slogdet.md index 138987fdb07..1e9dc6d77b4 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.slogdet.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.slogdet.md @@ -15,6 +15,7 @@ paddle.linalg.slogdet(x) 两者功能一致,返回参数的个数不同,PyTorch 返回两个 Tesnor,Paddle 返回一个 Tensor,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | self | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sort.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sort.md index 3ba02d1199f..bd8fd70b3a9 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sort.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sort.md @@ -15,6 +15,7 @@ paddle.sort(x, axis=- 1, descending=False) 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | dim | axis | 指定对输入 Tensor 进行运算的轴。默认值为-1, 仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.split.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.split.md index b7339ab7642..bd0fb33c85f 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.split.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.split.md @@ -14,6 +14,7 @@ paddle.Tensor.split(num_or_sections, axis=0, name=None) PyTorch 的 `split_size_or_sections` 与 Paddle 的 `num_or_sections` 用法不同,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | dim | axis | 表示需要分割的维度,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.squeeze.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.squeeze.md index 3920ac3951f..59d4ba597da 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.squeeze.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.squeeze.md @@ -14,6 +14,7 @@ paddle.Tensor.squeeze(axis=None) 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | dim | axis | 输入一个或一列整数,代表要压缩的轴,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.squeeze_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.squeeze_.md index c00b61fee25..e5d11ed48be 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.squeeze_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.squeeze_.md @@ -14,6 +14,7 @@ paddle.Tensor.squeeze_(axis=None) 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | dim | axis | 输入一个或一列整数,代表要压缩的轴,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.std.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.std.md index 02a37e0e28c..254e5b6003f 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.std.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.std.md @@ -15,6 +15,7 @@ paddle.Tensor.std(axis=None, unbiased=True, keepdim=False, name=None) 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ---------- | ------------ | ------- | | dim | axis | 指定对 Tensor 进行计算的轴,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.stft.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.stft.md index 198012f2916..636f6d81eeb 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.stft.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.stft.md @@ -15,6 +15,7 @@ paddle.signal.stft(x, n_fft, hop_length=None, win_length=None, window=None, cent PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ---------- | ------------ | ------- | | n_fft | n_fft | 离散傅里叶变换的样本点个数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sub.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sub.md index d75b0ee47d2..7598c5db34b 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sub.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sub.md @@ -14,6 +14,7 @@ paddle.Tensor.subtract(y, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | other | y | 表示减数的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sub_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sub_.md index e1fd1e8bb34..3b2b5996e1a 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sub_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sub_.md @@ -13,6 +13,7 @@ paddle.Tensor.subtract_(y) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | other | y | 表示减数的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.subtract.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.subtract.md index e02cf180ac3..0d169bafdc3 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.subtract.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.subtract.md @@ -14,6 +14,7 @@ paddle.Tensor.subtract(y, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | other | y | 表示减数的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sum.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sum.md index d16e883243b..f8d00535b0c 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sum.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sum.md @@ -14,6 +14,7 @@ paddle.Tensor.sum(axis=None, dtype=None, keepdim=False, name=None) 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------| | dim | axis | 求和运算的维度,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.svd.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.svd.md index 59d06d1e576..be4e2dfb440 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.svd.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.svd.md @@ -14,6 +14,7 @@ paddle.linalg.svd(x, full_matrics=False, name=None) 两者参数用法不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | some | full_matrics | 是否计算完整的 U 和 V 矩阵,两者参数功能相反,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.swapaxes.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.swapaxes.md index b28decefa96..c469eb5ef6d 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.swapaxes.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.swapaxes.md @@ -17,6 +17,7 @@ paddle.transpose(x, 其中 PyTorch 的 `axis0、axis1` 与 Paddle 用法不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | _ | x | 输入 Tensor。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.swapdims.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.swapdims.md index 5d6b531392f..3d52eeb473a 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.swapdims.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.swapdims.md @@ -17,6 +17,7 @@ paddle.transpose(x, 其中 PyTorch 的 `dim0、dim1` 与 Paddle 用法不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | _ | x | 输入 Tensor。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.take_along_dim.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.take_along_dim.md index 4524a42d8b1..91e6e8f9de9 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.take_along_dim.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.take_along_dim.md @@ -16,6 +16,7 @@ paddle.Tensor.take_along_axis(indices, 两者功能一致,参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | indices | indices | 索引矩阵,包含沿轴提取 1d 切片的下标,必须和 arr 矩阵有相同的维度,需要能够 broadcast 与 arr 矩阵对齐,数据类型为:int、int64。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.transpose.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.transpose.md index 16dd1125058..bde793a0e97 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.transpose.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.transpose.md @@ -14,6 +14,7 @@ paddle.Tensor.transpose(perm, name=None) PyTorch 的 `dim0, dim1` 与 Paddle 的 `perm` 用法不同,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | dim0, dim1 | perm | torch 的 dim0 与 dim1 表示要交换的两个维度, 为整数。 paddle 的 perm 表示重排的维度序列,为 list/tuple 。需要转写。| diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.current_stream.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.current_stream.md index 1bdf93760c1..2882e14c31f 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.current_stream.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.current_stream.md @@ -14,6 +14,7 @@ paddle.device.cuda.current_stream(device=None) 功能一致,参数完全一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | device | device | 表示希望获取 stream 的设备或者设备 ID。如果为 None,则为当前的设备。默认值为 None。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.get_device_capability.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.get_device_capability.md index db971e81f49..c680eec25de 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.get_device_capability.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.get_device_capability.md @@ -14,6 +14,7 @@ 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/cuda/torch.cuda.get_device_properties.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.get_device_properties.md index 7858543143c..b67e7672cf2 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.get_device_properties.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.get_device_properties.md @@ -14,6 +14,7 @@ paddle.device.cuda.get_device_properties(device) 功能一致,参数完全一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | device | device | 表示设备、设备 ID 和类似于 gpu:x 的设备名称。如果 device 为空,则 device 为当前的设备。默认值为 None。| diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.manual_seed_all.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.manual_seed_all.md index f629c458533..2afb6757076 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.manual_seed_all.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.manual_seed_all.md @@ -14,6 +14,7 @@ paddle.seed(seed) 功能一致,参数完全一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | seed | seed | 表示设置的的随机种子。| diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.max_memory_allocated.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.max_memory_allocated.md index 1e7ab54a449..042b6adaea7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.max_memory_allocated.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.max_memory_allocated.md @@ -14,6 +14,7 @@ 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/cuda/torch.cuda.max_memory_reserved.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.max_memory_reserved.md index 2c757047d85..d57c7be1907 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.max_memory_reserved.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.max_memory_reserved.md @@ -14,6 +14,7 @@ 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/cuda/torch.cuda.memory_allocated.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.memory_allocated.md index 827a65fe1f4..ad8afff485d 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.memory_allocated.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.memory_allocated.md @@ -14,6 +14,7 @@ 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/cuda/torch.cuda.memory_reserved.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.memory_reserved.md index e9c0f08853f..90b20b29705 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.memory_reserved.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.memory_reserved.md @@ -14,6 +14,7 @@ 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/cuda/torch.cuda.set_device.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.set_device.md index 4e6c5aeed97..a5debb826c8 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.set_device.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.set_device.md @@ -14,6 +14,7 @@ paddle.device.set_device(device) 功能一致,参数类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ |------------------------------------------------| | device | device | PyTorch 支持 torch.device 或 int。PaddlePaddle 支持 str。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.stream.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.stream.md index a63431947f8..20eb5a8d268 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.stream.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.stream.md @@ -14,6 +14,7 @@ paddle.device.cuda.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/cuda/torch.cuda.synchronize.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.synchronize.md index d457b148448..9bd33ebd7d0 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.synchronize.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.synchronize.md @@ -14,6 +14,7 @@ paddle.device.cuda.synchronize(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/distributed/torch.distributed.init_process_group.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/distributed/torch.distributed.init_process_group.md index a195c037019..4acdd13c9f3 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/distributed/torch.distributed.init_process_group.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/distributed/torch.distributed.init_process_group.md @@ -14,6 +14,7 @@ paddle.distributed.init_parallel_env() PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | backend | - | backend 配置,paddle 无此参数,暂无转写方式。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/distributions/torch.distributions.kl.kl_divergence.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/distributions/torch.distributions.kl.kl_divergence.md index e8329e7a907..cfed77b7d36 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/distributions/torch.distributions.kl.kl_divergence.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/distributions/torch.distributions.kl.kl_divergence.md @@ -14,6 +14,7 @@ paddle.distribution.kl_divergence(p, q) 功能一致,参数完全一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | p | p | 概率分布实例,继承于 Distribution 基类。| diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/distributions/torch.distributions.kl.register_kl.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/distributions/torch.distributions.kl.register_kl.md index df7f06bd671..a82b2c0c179 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/distributions/torch.distributions.kl.register_kl.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/distributions/torch.distributions.kl.register_kl.md @@ -14,6 +14,7 @@ paddle.distribution.register_kl(cls_p, cls_q) 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | type_p | cls_p | 实例 p 的分布类型,继承于 Distribution 基类,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.fft.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.fft.md index 45258a8164a..87a74599d44 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.fft.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.fft.md @@ -14,6 +14,7 @@ paddle.fft.fft(x, n=None, axis=- 1, norm='backward', name=None) 其中,PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.fft2.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.fft2.md index 5e7c6bdf816..fff366ede03 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.fft2.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.fft2.md @@ -14,6 +14,7 @@ paddle.fft.fft2(x, s=None, axes=None, norm='backward', name=None) 其中,PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.fftfreq.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.fftfreq.md index dce42953bfc..094a2ba0f56 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.fftfreq.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.fftfreq.md @@ -24,6 +24,7 @@ paddle.fft.fftfreq(n, 其中,PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | n | n | 窗长度(傅里叶变换点数)。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.fftn.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.fftn.md index ced0bce702a..f9c9fc60661 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.fftn.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.fftn.md @@ -14,6 +14,7 @@ paddle.fft.fftn(x, s=None, axes=None, norm='backward', name=None) 其中,PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.fftshift.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.fftshift.md index eb07822d4e5..87f45af527f 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.fftshift.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.fftshift.md @@ -14,6 +14,7 @@ paddle.fft.fftshift(x, axes=None, name=None) 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.hfft.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.hfft.md index eff8592397c..63482bac481 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.hfft.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.hfft.md @@ -23,6 +23,7 @@ paddle.fft.hfft(x, 其中,PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.ifft.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.ifft.md index 4b0a899ff45..7e6d6d1b94d 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.ifft.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.ifft.md @@ -14,6 +14,7 @@ paddle.fft.ifft(x, n=None, axis=- 1, norm='backward', name=None) 其中,PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x |输入 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.ifft2.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.ifft2.md index ae90e45df8b..37d800e29ad 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.ifft2.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.ifft2.md @@ -23,6 +23,7 @@ paddle.fft.ifft2(x, 其中,PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x |输入 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.ifftn.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.ifftn.md index 9aeea13b833..31f5564dd86 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.ifftn.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.ifftn.md @@ -23,6 +23,7 @@ paddle.fft.ifftn(x, 其中,PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x |输入 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.ifftshift.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.ifftshift.md index 759f954afe9..ead0ebdce3d 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.ifftshift.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.ifftshift.md @@ -14,6 +14,7 @@ paddle.fft.ifftshift(x, axes=None, name=None) 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.ihfft.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.ihfft.md index 6455ed041fd..8c04291c397 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.ihfft.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.ihfft.md @@ -23,6 +23,7 @@ paddle.fft.ihfft(x, 其中,PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x |输入 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.irfftn.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.irfftn.md index 8a30971478e..3871946d179 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.irfftn.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.irfftn.md @@ -23,6 +23,7 @@ paddle.fft.irfftn(x, 其中,PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x |输入 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.rfftfreq.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.rfftfreq.md index ae494bff56c..7a5b8c7cff1 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.rfftfreq.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/fft/torch.fft.rfftfreq.md @@ -24,6 +24,7 @@ paddle.fft.rfftfreq(n, 其中,PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | n |n | 窗长度(傅里叶变换点数)。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.adaptive_avg_pool1d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.adaptive_avg_pool1d.md index a0587c259a4..591e548083d 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.adaptive_avg_pool1d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.adaptive_avg_pool1d.md @@ -14,6 +14,7 @@ paddle.nn.functional.adaptive_avg_pool1d(x, output_size, name=None) 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.adaptive_avg_pool2d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.adaptive_avg_pool2d.md index dbbceba7a4d..e8061fac2de 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.adaptive_avg_pool2d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.adaptive_avg_pool2d.md @@ -17,6 +17,7 @@ paddle.nn.functional.adaptive_avg_pool2d(x, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.adaptive_avg_pool3d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.adaptive_avg_pool3d.md index bdea3af482f..16419fd9b23 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.adaptive_avg_pool3d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.adaptive_avg_pool3d.md @@ -18,6 +18,7 @@ paddle.nn.functional.adaptive_avg_pool3d(x, 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.adaptive_max_pool1d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.adaptive_max_pool1d.md index be9bc506cad..40cccf68416 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.adaptive_max_pool1d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.adaptive_max_pool1d.md @@ -20,6 +20,7 @@ paddle.nn.functional.adaptive_max_pool1d(x, 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.adaptive_max_pool2d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.adaptive_max_pool2d.md index 49c63464db6..1171902520a 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.adaptive_max_pool2d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.adaptive_max_pool2d.md @@ -19,6 +19,7 @@ paddle.nn.functional.adaptive_max_pool2d(x, 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.adaptive_max_pool3d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.adaptive_max_pool3d.md index 2d18426af70..dbd6a7a690c 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.adaptive_max_pool3d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.adaptive_max_pool3d.md @@ -19,6 +19,7 @@ paddle.nn.functional.adaptive_max_pool3d(x, 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.affine_grid.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.affine_grid.md index a7d605c0ef4..a42b3879704 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.affine_grid.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.affine_grid.md @@ -19,6 +19,7 @@ paddle.nn.functional.affine_grid(theta, 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | theta | theta | 指定仿射变换矩阵 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.avg_pool1d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.avg_pool1d.md index 9ff76655e00..b8085bd1b53 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.avg_pool1d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.avg_pool1d.md @@ -13,6 +13,7 @@ paddle.nn.functional.avg_pool1d(x, kernel_size, stride=None, padding=0, exclusiv 其中 PyTorch 与 Paddle 参数不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.avg_pool2d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.avg_pool2d.md index 669844baaa9..e210504bf88 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.avg_pool2d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.avg_pool2d.md @@ -13,6 +13,7 @@ paddle.nn.functional.avg_pool2d(x, kernel_size, stride=None, padding=0, ceil_mod 其中 PyTorch 与 Paddle 参数不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.avg_pool3d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.avg_pool3d.md index 9a473e4d049..d8a7151595a 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.avg_pool3d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.avg_pool3d.md @@ -13,6 +13,7 @@ paddle.nn.functional.avg_pool3d(x, kernel_size, stride=None, padding=0, ceil_mod 其中 PyTorch 与 Paddle 参数不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.batch_norm.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.batch_norm.md index 1967686dc4d..8224032c8c1 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.batch_norm.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.batch_norm.md @@ -13,6 +13,7 @@ paddle.nn.functional.batch_norm(x, running_mean, running_var, weight, bias, trai 其中 PyTorch 与 Paddle 参数不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.bilinear.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.bilinear.md index d273e37513b..c5c45bb037a 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.bilinear.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.bilinear.md @@ -21,6 +21,7 @@ paddle.nn.functional.bilinear(x1, 两者功能一致,参数 `bias` 的 `shape` 不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input1 | x1 | 表示第一个输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.binary_cross_entropy_with_logits.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.binary_cross_entropy_with_logits.md index 8d40b30444d..808caa2f9b2 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.binary_cross_entropy_with_logits.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.binary_cross_entropy_with_logits.md @@ -15,6 +15,7 @@ paddle.nn.functional.binary_cross_entropy_with_logits(logit, label, weight=None, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | logit | 表示输入的 Tensor。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.conv1d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.conv1d.md index ee3ad59c79f..2f3ac62bc06 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.conv1d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.conv1d.md @@ -28,6 +28,7 @@ paddle.nn.functional.conv1d(x, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.conv2d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.conv2d.md index 5ec3b32cb67..4a60c6dc23e 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.conv2d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.conv2d.md @@ -28,6 +28,7 @@ paddle.nn.functional.conv2d(x, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.conv3d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.conv3d.md index a09995409f1..afc7b8c5dfa 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.conv3d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.conv3d.md @@ -28,6 +28,7 @@ paddle.nn.functional.conv3d(x, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.conv_transpose1d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.conv_transpose1d.md index 93ef42dba41..5cdc2efbbd0 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.conv_transpose1d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.conv_transpose1d.md @@ -31,6 +31,7 @@ paddle.nn.functional.conv1d_transpose(x, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.conv_transpose2d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.conv_transpose2d.md index 2861f1cf993..00d54843f41 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.conv_transpose2d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.conv_transpose2d.md @@ -31,6 +31,7 @@ paddle.nn.functional.conv2d_transpose(x, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.conv_transpose3d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.conv_transpose3d.md index 2652cd332c0..32db4e735e6 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.conv_transpose3d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.conv_transpose3d.md @@ -31,6 +31,7 @@ paddle.nn.functional.conv3d_transpose(x, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.cosine_similarity.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.cosine_similarity.md index 0066183c386..89648dc3cd9 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.cosine_similarity.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.cosine_similarity.md @@ -20,6 +20,7 @@ paddle.nn.functional.cosine_similarity(x1, 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | x1 | x1 | 表示第一个输入的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.cross_entropy.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.cross_entropy.md index 7d0074b3400..34285204d3c 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.cross_entropy.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.cross_entropy.md @@ -27,6 +27,7 @@ paddle.nn.functional.cross_entropy(input, ``` 两者功能一致,torch 参数更多,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | input | 表示预测的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.dropout1d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.dropout1d.md index 6a21439b20d..ff17f73492b 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.dropout1d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.dropout1d.md @@ -15,6 +15,7 @@ paddle.nn.functional.dropout(x, p=0.5, axis=None, training=True, mode='upscale_i PyTorch 对于 dropout1d/dropout2d/dropout3d,是将某个 Channel 以一定概率全部置 0,Paddle 是所有元素以一定概率置 0,但该差异一般不影响网络训练效果。 其中 PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | -------- | ------------ | --------------------------------------------------------------------------------------------------------------- | | input | x | 输入的多维 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.dropout2d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.dropout2d.md index 987e60c616d..5f23ba933f8 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.dropout2d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.dropout2d.md @@ -15,6 +15,7 @@ paddle.nn.functional.dropout2d(x, p=0.5, training=True, data_format='NCHW', name PyTorch 对于 dropout1d/dropout2d/dropout3d,是将某个 Channel 以一定概率全部置 0,Paddle 是所有元素以一定概率置 0,但该差异一般不影响网络训练效果。 其中 PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | -------- | ------------ | --------------------------------------------------------------------------------------------------------------- | | input | x | 输入的多维 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.dropout3d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.dropout3d.md index 260e3c4dfd3..805fc096ff7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.dropout3d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.dropout3d.md @@ -15,6 +15,7 @@ paddle.nn.functional.dropout3d(x, p=0.5, training=True, name=None) PyTorch 对于 dropout1d/dropout2d/dropout3d,是将某个 Channel 以一定概率全部置 0,Paddle 是所有元素以一定概率置 0,但该差异一般不影响网络训练效果。 其中 PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | -------- | ------------ | --------------------------------------------------------------------------------------------------------------- | | input | x | 输入的多维 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.elu_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.elu_.md index b5bf8985931..314c5879b71 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.elu_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.elu_.md @@ -15,6 +15,7 @@ paddle.nn.functional.elu_(x, alpha=1.0, name=None) 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.fold.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.fold.md index 142a13dcc35..4690903b8fc 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.fold.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.fold.md @@ -25,6 +25,7 @@ paddle.nn.functional.fold(x, 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.glu.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.glu.md index 4f3837344bb..553e65baa75 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.glu.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.glu.md @@ -14,6 +14,7 @@ paddle.nn.functional.glu(x, axis=- 1, name=None) 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.grid_sample.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.grid_sample.md index 031edbaa6cd..2eab8453def 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.grid_sample.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.grid_sample.md @@ -23,6 +23,7 @@ paddle.nn.functional.grid_sample(x, 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.group_norm.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.group_norm.md index 952d71a60a1..04e40cc61e3 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.group_norm.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.group_norm.md @@ -14,6 +14,7 @@ paddle.nn.functional.group_norm(x, num_groups, epsilon=1e-05, weight=None, bias= Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.hardshrink.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.hardshrink.md index 786873bb618..433bbc696ba 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.hardshrink.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.hardshrink.md @@ -17,6 +17,7 @@ paddle.nn.functional.hardshrink(x, 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.instance_norm.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.instance_norm.md index 7a7a0ce1531..52a56946aa8 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.instance_norm.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.instance_norm.md @@ -13,6 +13,7 @@ paddle.nn.functional.instance_norm(x, running_mean=None, running_var=None, weigh 其中 PyTorch 与 Paddle 参数不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.l1_loss.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.l1_loss.md index 4f489e08a4f..e16f3f68c63 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.l1_loss.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.l1_loss.md @@ -15,6 +15,7 @@ paddle.nn.functional.l1_loss(input, label, reduction='mean', name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | input | 表示输入的 Tensor。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.layer_norm.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.layer_norm.md index 5bc22f11003..53c5113fd00 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.layer_norm.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.layer_norm.md @@ -13,6 +13,7 @@ paddle.nn.functional.layer_norm(x, normalized_shape, weight=None, bias=None, eps 两者功能相同,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.linear.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.linear.md index 635fbd5dfdf..2a5bc04005b 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.linear.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.linear.md @@ -19,6 +19,7 @@ paddle.nn.functional.linear(x, 两者功能一致,`weight` 参数的 `shape` 不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.local_response_norm.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.local_response_norm.md index 7e826ce1df4..d85cb1034da 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.local_response_norm.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.local_response_norm.md @@ -24,6 +24,7 @@ paddle.nn.functional.local_response_norm(x, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.log_sigmoid.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.log_sigmoid.md index 895ca184e3d..2e54f69452b 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.log_sigmoid.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.log_sigmoid.md @@ -14,6 +14,7 @@ paddle.nn.functional.log_sigmoid(x, name=None) 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.margin_ranking_loss.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.margin_ranking_loss.md index 36d8694eb26..4ee83010b42 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.margin_ranking_loss.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.margin_ranking_loss.md @@ -25,6 +25,7 @@ paddle.nn.functional.margin_ranking_loss(input, 其中 PyTorch 相⽐ Paddle ⽀持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input1 | input | 表示第一个输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.max_unpool1d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.max_unpool1d.md index 36d92cf58a8..595207f82a6 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.max_unpool1d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.max_unpool1d.md @@ -26,6 +26,7 @@ paddle.nn.functional.max_unpool1d(x, 其中 Paddle 和 PyTorch 的`indices`参数类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.max_unpool2d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.max_unpool2d.md index 102c886e11a..dd0e11882c2 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.max_unpool2d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.max_unpool2d.md @@ -26,6 +26,7 @@ paddle.nn.functional.max_unpool2d(x, 其中 Paddle 和 PyTorch 的`indices`参数类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.max_unpool3d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.max_unpool3d.md index d89d5568e4a..f4e7d086ac9 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.max_unpool3d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.max_unpool3d.md @@ -26,6 +26,7 @@ paddle.nn.functional.max_unpool3d(x, 其中 Paddle 和 PyTorch 的`indices`参数类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.mish.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.mish.md index ef23fe0c63a..8029a7cc3c7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.mish.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.mish.md @@ -16,6 +16,7 @@ paddle.nn.functional.mish(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.mse_loss.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.mse_loss.md index 821b0bec525..4b5351ba1d7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.mse_loss.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.mse_loss.md @@ -21,6 +21,7 @@ paddle.nn.functional.mse_loss(input, 其中 PyTorch 相⽐ Paddle ⽀持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | input | 表示预测的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.nll_loss.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.nll_loss.md index cc252cfc16c..eb4b63288bc 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.nll_loss.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.nll_loss.md @@ -25,6 +25,7 @@ paddle.nn.functional.nll_loss(input, 其中 PyTorch 相⽐ Paddle ⽀持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | input | 输入 Tensor | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.normalize.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.normalize.md index e9baeeb7d3c..968daae3797 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.normalize.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.normalize.md @@ -22,6 +22,7 @@ paddle.nn.functional.normalize(x, 其中 PyTorch 相⽐ Paddle ⽀持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输出 Tensor 的 size 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.one_hot.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.one_hot.md index 3fcbf4b3ba2..1c014cd8025 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.one_hot.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.one_hot.md @@ -18,6 +18,7 @@ paddle.nn.functional.one_hot(x, 两者功能一致,但 Paddle 的 num_classes 没有指定默认值,需要手动指定,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | tensor | x | 表示输入的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.pad.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.pad.md index ba6041606e0..e7ba14f81a5 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.pad.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.pad.md @@ -23,6 +23,7 @@ paddle.nn.functional.pad(x, 两者功能一致,其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.pixel_shuffle.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.pixel_shuffle.md index cd83f4bed4c..84d15682857 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.pixel_shuffle.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.pixel_shuffle.md @@ -14,6 +14,7 @@ paddle.nn.functional.pixel_shuffle(x, upscale_factor, data_format='NCHW', name=N 两者功能一致,其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.pixel_unshuffle.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.pixel_unshuffle.md index 9ad5f247dfa..b85ba90f11f 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.pixel_unshuffle.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.pixel_unshuffle.md @@ -15,6 +15,7 @@ paddle.nn.functional.pixel_unshuffle(x, downscale_factor, data_format='NCHW', na 两者功能一致,其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.prelu.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.prelu.md index a0a242fb716..fae6eebce60 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.prelu.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.prelu.md @@ -19,6 +19,7 @@ paddle.nn.functional.prelu(x, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.relu6.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.relu6.md index d27f0ecc52d..496c7d1f081 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.relu6.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.relu6.md @@ -14,6 +14,7 @@ paddle.nn.functional.relu6(x, name=None) 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.relu_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.relu_.md index e7af7d323f1..153f1b9eea4 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.relu_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.relu_.md @@ -14,6 +14,7 @@ paddle.nn.functional.relu_(x, name=None) 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.sigmoid.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.sigmoid.md index 3c4ae895854..5dd63b94199 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.sigmoid.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.sigmoid.md @@ -14,6 +14,7 @@ paddle.nn.functional.sigmoid(x, name=None) 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.smooth_l1_loss.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.smooth_l1_loss.md index 8fd854a1470..8a699aac659 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.smooth_l1_loss.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.smooth_l1_loss.md @@ -24,6 +24,7 @@ paddle.nn.functional.smooth_l1_loss(input, 两者功能一致,但 Paddle 的 `delta` 和 PyTorch 的 `beta` 参数在公式中用法不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | input | 输入 Tensor | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.soft_margin_loss.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.soft_margin_loss.md index 72f87679ed5..5b6d182bfd8 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.soft_margin_loss.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.soft_margin_loss.md @@ -21,6 +21,7 @@ paddle.nn.functional.soft_margin_loss(input, 其中 PyTorch 相⽐ Paddle ⽀持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | input | 输入 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.softmax.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.softmax.md index 93dc590c151..3474cf8d9e4 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.softmax.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.softmax.md @@ -19,6 +19,7 @@ paddle.nn.functional.softmax(x, 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.softplus.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.softplus.md index 05abd73984e..784e9453eca 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.softplus.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.softplus.md @@ -19,6 +19,7 @@ paddle.nn.functional.softplus(x, 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示 Softplus 激活计算公式中的 beta 值 ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.softshrink.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.softshrink.md index 21368e4e221..583beb56e99 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.softshrink.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.softshrink.md @@ -17,6 +17,7 @@ paddle.nn.functional.softshrink(x, 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.softsign.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.softsign.md index 2dab039acb2..26e3052ad69 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.softsign.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.softsign.md @@ -15,6 +15,7 @@ paddle.nn.functional.softsign(x, 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.tanhshrink.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.tanhshrink.md index b05ad50806a..27b54b0c2a7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.tanhshrink.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.tanhshrink.md @@ -15,6 +15,7 @@ paddle.nn.functional.tanhshrink(x, 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.triplet_margin_loss.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.triplet_margin_loss.md index 076ba240750..e6a4cdec85f 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.triplet_margin_loss.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.triplet_margin_loss.md @@ -31,6 +31,7 @@ paddle.nn.functional.triplet_margin_loss(input, 其中 PyTorch 相⽐ Paddle ⽀持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | anchor | input | 输入 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.triplet_margin_with_distance_loss.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.triplet_margin_with_distance_loss.md index 861c47c71b0..c5ef362acd3 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.triplet_margin_with_distance_loss.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.triplet_margin_with_distance_loss.md @@ -27,6 +27,7 @@ paddle.nn.functional.triplet_margin_with_distance_loss(input, 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | anchor | input | 输入 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.upsample.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.upsample.md index e665cfc7c4c..baa35710d3e 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.upsample.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.upsample.md @@ -25,6 +25,7 @@ paddle.nn.functional.upsample(x, 两者功能一致,其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.upsample_bilinear.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.upsample_bilinear.md index 348e2994062..d95c317ef36 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.upsample_bilinear.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.upsample_bilinear.md @@ -14,6 +14,7 @@ paddle.nn.functional.upsample(x, size=None, scale_factor=None, mode='nearest', a Paddle 参数更多,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.upsample_nearest.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.upsample_nearest.md index a72c8ea41d9..ecdb1e6ca81 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.upsample_nearest.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.upsample_nearest.md @@ -14,6 +14,7 @@ paddle.nn.functional.upsample(x, size=None, scale_factor=None, mode='nearest', a 仅 paddle 参数更多,具体区别如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/hub/torch.hub.help.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/hub/torch.hub.help.md index d568e316c02..b8ec32c0378 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/hub/torch.hub.help.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/hub/torch.hub.help.md @@ -22,6 +22,7 @@ paddle.hub.help(repo_dir, 其中,PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | github | repo_dir |repo 地址,支持 git 地址形式和 local 地址,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/hub/torch.hub.list.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/hub/torch.hub.list.md index f14d1be9754..84941d9d5ba 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/hub/torch.hub.list.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/hub/torch.hub.list.md @@ -21,6 +21,7 @@ paddle.hub.list(repo_dir, 其中,PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | github | repo_dir |repo 地址,支持 git 地址形式和 local 地址,仅参数名不一致。| diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/hub/torch.hub.load.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/hub/torch.hub.load.md index 7a7c522a46d..1bb749b0274 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/hub/torch.hub.load.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/hub/torch.hub.load.md @@ -26,6 +26,7 @@ paddle.hub.load(repo_dir, 其中,PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | repo_or_dir |repo_dir |repo 地址,支持 git 地址形式和 local 地址,仅参数名不同。| diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.calculate_gain.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.calculate_gain.md index da528b2b56e..caf41fc41ca 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.calculate_gain.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.calculate_gain.md @@ -15,6 +15,7 @@ paddle.nn.initializer.calculate_gain(nonlinearity, param=None) 两者参数和用法完全一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | nonlinearity | nonlinearity | 非线性激活函数的名称,两者参数和用法完全一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.constant_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.constant_.md index bc1c3f5cba1..0aab387a278 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.constant_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.constant_.md @@ -16,6 +16,7 @@ paddle.nn.initializer.Constant(value=0.0) 两者用法不同:torch 是 inplace 的用法,paddle 是类设置的。PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | tensor | - | n 维 tensor。Paddle 无此参数,因为是通过调用类的 __call__ 函数来进行 tensor 的初始化。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.dirac_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.dirac_.md index a7f5b794416..d30d2b24394 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.dirac_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.dirac_.md @@ -17,6 +17,7 @@ paddle.nn.initializer.Dirac(groups=1, 两者用法不同:torch 是 inplace 的用法,paddle 是类设置的。PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | tensor | - | n 维 tensor。Paddle 无此参数,因为是通过调用类的 __call__ 函数来进行 tensor 的初始化。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.eye_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.eye_.md index 394294fb961..fbb69e6d09c 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.eye_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.eye_.md @@ -16,6 +16,7 @@ paddle.nn.initializer.Assign(value, 两者用法不同:torch 是 inplace 的用法,paddle 是类设置的,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | tensor | - | n 维 tensor。Paddle 无此参数,因为是通过调用类的 __call__ 函数来进行 tensor 的初始化。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.kaiming_normal_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.kaiming_normal_.md index 486c89da8f3..4b7784effb8 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.kaiming_normal_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.kaiming_normal_.md @@ -20,6 +20,7 @@ paddle.nn.initializer.KaimingNormal(fan_in=None, 两者用法不同:torch 是 inplace 的用法,paddle 是类设置的,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | tensor | - | n 维 tensor。Paddle 无此参数,因为是通过调用类的 __call__ 函数来进行 tensor 的初始化。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.kaiming_uniform_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.kaiming_uniform_.md index b5af1d4f7b1..c54aeba60ee 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.kaiming_uniform_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.kaiming_uniform_.md @@ -20,6 +20,7 @@ paddle.nn.initializer.KaimingUniform(fan_in=None, 两者用法不同:torch 是 inplace 的用法,paddle 是类设置的,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | tensor | - | n 维 tensor。Paddle 无此参数,因为是通过调用类的 __call__ 函数来进行 tensor 的初始化。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.normal_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.normal_.md index d5d81578165..f3f87da19b0 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.normal_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.normal_.md @@ -19,6 +19,7 @@ paddle.nn.initializer.Normal(mean=0.0, 两者用法不同:torch 是 inplace 的用法,paddle 是类设置的。PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | tensor | - | n 维 tensor。Paddle 无此参数,因为是通过调用类的 __call__ 函数来进行 tensor 的初始化。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.ones_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.ones_.md index c69a82ef652..88cebca42bc 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.ones_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.ones_.md @@ -15,6 +15,7 @@ paddle.nn.initializer.Constant(value=0.0) 两者用法不同:torch 是 inplace 的用法,paddle 是类设置的,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | tensor | - | n 维 tensor。Paddle 无此参数,因为是通过调用类的 __call__ 函数来进行 tensor 的初始化。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.orthogonal_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.orthogonal_.md index 0a15f38be90..becbfd8c431 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.orthogonal_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.orthogonal_.md @@ -17,6 +17,7 @@ paddle.nn.initializer.Orthogonal(gain=1.0, 两者用法不同:torch 是 inplace 的用法,paddle 是类设置的。PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | tensor | - | n 维 tensor。Paddle 无此参数,因为是通过调用类的 __call__ 函数来进行 tensor 的初始化。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.uniform_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.uniform_.md index b6025e931e4..b86874f2f3e 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.uniform_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.uniform_.md @@ -19,6 +19,7 @@ paddle.nn.initializer.Uniform(low=-1.0, 两者用法不同:torch 是 inplace 的用法,paddle 是类设置的。PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | tensor | - | n 维 tensor。Paddle 无此参数,因为是通过调用类的 __call__ 函数来进行 tensor 的初始化。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.xavier_normal_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.xavier_normal_.md index 661569c7554..f0da7128a31 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.xavier_normal_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.xavier_normal_.md @@ -18,6 +18,7 @@ paddle.nn.initializer.XavierNormal(fan_in=None, 两者用法不同:torch 是 inplace 的用法,paddle 是类设置的,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | tensor | - | n 维 tensor。Paddle 无此参数,因为是通过调用类的 __call__ 函数来进行 tensor 的初始化。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.xavier_uniform_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.xavier_uniform_.md index 44c18c45c89..787f65c0274 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.xavier_uniform_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.xavier_uniform_.md @@ -18,6 +18,7 @@ paddle.nn.initializer.XavierUniform(fan_in=None, 两者用法不同:torch 是 inplace 的用法,paddle 是类设置的,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | tensor | - | n 维 tensor。Paddle 无此参数,因为是通过调用类的 __call__ 函数来进行 tensor 的初始化。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.zeros_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.zeros_.md index 4803cb0d1d8..010ebace8b5 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.zeros_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/init/torch.nn.init.zeros_.md @@ -15,6 +15,7 @@ paddle.nn.initializer.Constant(value=0.0) 两者用法不同:torch 是 inplace 的用法,paddle 是类设置的,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | tensor | - | n 维 tensor。Paddle 无此参数,因为是通过调用类的 __call__ 函数来进行 tensor 的初始化。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.cholesky.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.cholesky.md index 226a7aada47..50d19b46018 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.cholesky.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.cholesky.md @@ -15,6 +15,7 @@ paddle.linalg.cholesky(x,upper=False,name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------- | ------- | ------- | | A | x | 表示输入参数为多维 Tensor,它的维度应该为 [*, M, N],其中*为零或更大的批次尺寸,并且最里面的两个维度上的矩阵都应为对称的正定矩阵,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.det.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.det.md index bb5e9106189..6d559257ad1 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.det.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.det.md @@ -13,6 +13,7 @@ paddle.linalg.det(x) torch 参数更多,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | A | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.diagonal.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.diagonal.md index 9f03475ec9a..349fb450188 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.diagonal.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.diagonal.md @@ -18,6 +18,7 @@ paddle.diagonal(x, 两者功能一致且参数用法一致,仅参数默认值不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | A | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.eig.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.eig.md index 430e6b695ec..36eb3e90005 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.eig.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.eig.md @@ -14,6 +14,7 @@ paddle.linalg.eig(x, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------- | ------------ | ----------------------------------------------- | | input | x | 表示输入的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.eigvals.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.eigvals.md index 79a983d0a65..fcef69daee7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.eigvals.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.eigvals.md @@ -16,6 +16,7 @@ paddle.linalg.eigvals(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------- | ------------ | ---------------------------------------------------- | | A | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.lstsq.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.lstsq.md index 56de2c6cbba..bd1120c5304 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.lstsq.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.lstsq.md @@ -13,6 +13,7 @@ paddle.linalg.lstsq(x, y, rcond=None, driver=None, name=None) 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | A | x | 表示输入的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.matrix_power.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.matrix_power.md index 5330811e56e..456240161ea 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.matrix_power.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.matrix_power.md @@ -18,6 +18,7 @@ paddle.linalg.matrix_power(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | A | x | 输入的欲进行 n 次幂运算的一个或一批方阵,类型为 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.matrix_rank.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.matrix_rank.md index f18d3a14162..89d03a72381 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.matrix_rank.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.matrix_rank.md @@ -11,6 +11,7 @@ paddle.linalg.matrix_rank(x, tol=None, hermitian=False, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | A | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.multi_dot.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.multi_dot.md index 58c7113b2cc..ab723dc0633 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.multi_dot.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.multi_dot.md @@ -16,6 +16,7 @@ paddle.linalg.multi_dot(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | tensors | x | 表示输入的一个 tensor 列表 ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.norm.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.norm.md index 5e5914b7593..5721eaa3f3d 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.norm.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.norm.md @@ -14,6 +14,7 @@ paddle.linalg.norm(x, p='fro', axis=None, keepdim=False, name=None) PyTorch 支持更多的参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的一个 tensor 列表 ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.slogdet.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.slogdet.md index dcea664c117..7c38073ba43 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.slogdet.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.slogdet.md @@ -14,6 +14,7 @@ paddle.linalg.slogdet(x) 两者功能一致,返回参数个数不同,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | A | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.svd.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.svd.md index 034e049e352..591fb5a9e06 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.svd.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.svd.md @@ -15,6 +15,7 @@ paddle.linalg.svd(x, full_matrices=False, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------- | ---------------------------------------------------------------------------------------------- | | A | x | 输入 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AdaptiveAvgPool2d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AdaptiveAvgPool2d.md index 079f86de7f3..b59d7637594 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AdaptiveAvgPool2d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AdaptiveAvgPool2d.md @@ -14,6 +14,7 @@ paddle.nn.AdaptiveAvgPool2D(output_size, data_format='NCHW', name=None) 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | output_size | output_size | 表示输出 Tensor 的 size 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AdaptiveAvgPool3d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AdaptiveAvgPool3d.md index 80131c0ab80..f0c012e9ee5 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AdaptiveAvgPool3d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AdaptiveAvgPool3d.md @@ -14,6 +14,7 @@ paddle.nn.AdaptiveAvgPool3D(output_size, data_format='NCDHW', name=None) 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | output_size | output_size | 表示输出 Tensor 的 size 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AdaptiveMaxPool1d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AdaptiveMaxPool1d.md index 5b6b35f7850..06ebda32596 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AdaptiveMaxPool1d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AdaptiveMaxPool1d.md @@ -16,6 +16,7 @@ paddle.nn.AdaptiveMaxPool1D(output_size, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | output_size | output_size | 表示输出 Tensor 的大小。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AdaptiveMaxPool2d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AdaptiveMaxPool2d.md index 70a2e74d658..1fd40b4fbf1 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AdaptiveMaxPool2d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AdaptiveMaxPool2d.md @@ -16,6 +16,7 @@ paddle.nn.AdaptiveMaxPool2D(output_size, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | output_size | output_size | 表示输出 Tensor 的大小。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AdaptiveMaxPool3d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AdaptiveMaxPool3d.md index 4f6e2c4dfdf..3e81f24a6d3 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AdaptiveMaxPool3d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AdaptiveMaxPool3d.md @@ -16,6 +16,7 @@ paddle.nn.AdaptiveMaxPool3D(output_size, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | output_size | output_size | 表示输出 Tensor 的大小。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AvgPool1d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AvgPool1d.md index 7989c16c8c2..3d36659f015 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AvgPool1d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AvgPool1d.md @@ -22,6 +22,7 @@ paddle.nn.AvgPool1D(kernel_size, 其中 PyTorch 的 count_include_pad 与 Paddle 的 exclusive 用法不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | kernel_size | kernel_size | 表示池化核的尺寸大小 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AvgPool2d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AvgPool2d.md index 6841349ef13..b921da13117 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AvgPool2d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AvgPool2d.md @@ -25,6 +25,7 @@ paddle.nn.AvgPool2D(kernel_size, 其中 PyTorch 的 count_include_pad 与 Paddle 的 exclusive 用法不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | kernel_size | kernel_size | 表示池化核的尺寸大小 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AvgPool3d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AvgPool3d.md index 7145d7f44e6..334035eb893 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AvgPool3d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.AvgPool3d.md @@ -25,6 +25,7 @@ paddle.nn.AvgPool3D(kernel_size, 其中 PyTorch 的 count_include_pad 与 Paddle 的 exclusive 用法不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | kernel_size | kernel_size | 表示池化核的尺寸大小 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.BCELoss.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.BCELoss.md index a79a175e155..b9dad3236b5 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.BCELoss.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.BCELoss.md @@ -18,6 +18,7 @@ paddle.nn.BCELoss(weight=None, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | weight | weight | 表示每个 batch 二值交叉熵的权重。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.BCEWithLogitsLoss.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.BCEWithLogitsLoss.md index c1a5527a3e5..b79e5fdfa26 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.BCEWithLogitsLoss.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.BCEWithLogitsLoss.md @@ -20,6 +20,7 @@ paddle.nn.BCEWithLogitsLoss(weight=None, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | weight | weight | 表示每个 batch 二值交叉熵的权重。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.BatchNorm1d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.BatchNorm1d.md index dbfc52ef617..3b8bf8fe0f1 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.BatchNorm1d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.BatchNorm1d.md @@ -24,6 +24,7 @@ paddle.nn.BatchNorm1D(num_features, 两者功能一致但参数不一致,部分参数名不同,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ |-----------------------------------------------------------------------------------------------------------------------------| | num_features | num_features | 表示输入 Tensor 通道数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.BatchNorm3d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.BatchNorm3d.md index 80bc25dff02..6e30b4c9354 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.BatchNorm3d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.BatchNorm3d.md @@ -24,6 +24,7 @@ paddle.nn.BatchNorm3D(num_features, 两者功能一致但参数不一致,部分参数名不同,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | num_features | num_features | 表示输入 Tensor 通道数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ChannelShuffle.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ChannelShuffle.md index 37d0d70d932..288689366d6 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ChannelShuffle.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ChannelShuffle.md @@ -14,6 +14,7 @@ paddle.nn.ChannelShuffle(groups, data_format='NCHW', name=None) 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | groups | groups | 表示要把通道分成的组数 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ConstantPad1d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ConstantPad1d.md index 4e800c3ea30..2bf6c4540e5 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ConstantPad1d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ConstantPad1d.md @@ -18,6 +18,7 @@ paddle.nn.Pad1D(padding, 其中 Paddle 和 PyTorch 的 padding 参数所支持的类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | padding | padding | 填充大小,PyTorch 和 Paddle 的 padding 参数的类型分别为 (int/tuple) 和 (int/Tensor/list)。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ConstantPad2d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ConstantPad2d.md index 78e7317cdcc..38da3a0fc1f 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ConstantPad2d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ConstantPad2d.md @@ -16,6 +16,7 @@ paddle.nn.Pad2D(padding, 其中 Paddle 和 PyTorch 的 padding 参数所支持的类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | padding | padding | 填充大小,PyTorch 和 Paddle 的 padding 参数的类型分别为 (int/tuple) 和 (int/Tensor/list)。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ConstantPad3d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ConstantPad3d.md index 1ebc838d6a0..1f529aff1d1 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ConstantPad3d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ConstantPad3d.md @@ -16,6 +16,7 @@ paddle.nn.Pad3D(padding, 其中 Paddle 和 PyTorch 的 padding 参数所支持的类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | padding | padding | 填充大小,PyTorch 和 Paddle 的 padding 参数的类型分别为 (int/tuple) 和 (int/Tensor/list)。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Conv1d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Conv1d.md index e0ad95d84f8..59a23497a62 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Conv1d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Conv1d.md @@ -33,6 +33,7 @@ paddle.nn.Conv1D(in_channels, 其中 PyTorch 的 `bias` 与 Paddle 的 `bias_attr` 用法不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | in_channels | in_channels | 表示输入 Tensor 通道数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Conv2d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Conv2d.md index fdd3fab712e..a02fda3aece 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Conv2d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Conv2d.md @@ -33,6 +33,7 @@ paddle.nn.Conv2D(in_channels, 其中 PyTorch 的 `bias` 与 Paddle 的 `bias_attr` 用法不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | in_channels | in_channels | 表示输入 Tensor 通道数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Conv3d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Conv3d.md index 60bbc2cbd88..801cfaf2d38 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Conv3d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Conv3d.md @@ -34,6 +34,7 @@ paddle.nn.Conv3D(in_channels, 其中 PyTorch 的 `bias` 与 Paddle 的 `bias_attr` 用法不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | in_channels | in_channels | 表示输入 Tensor 通道数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ConvTranspose1d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ConvTranspose1d.md index 257fe53a31e..9c1fda904bb 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ConvTranspose1d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ConvTranspose1d.md @@ -32,6 +32,7 @@ paddle.nn.Conv1DTranspose(in_channels, 其中 PyTorch 的 `bias` 与 Paddle 的 `bias_attr` 用法不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | in_channels | in_channels | 表示输入 Tensor 通道数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ConvTranspose2d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ConvTranspose2d.md index 98c2228de6a..c34c41dba40 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ConvTranspose2d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ConvTranspose2d.md @@ -30,6 +30,7 @@ paddle.nn.Conv2DTranspose(in_channels, 其中 PyTorch 的 `bias` 与 Paddle 的 `bias_attr` 用法不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | in_channels | in_channels | 表示输入 Tensor 通道数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ConvTranspose3d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ConvTranspose3d.md index 0343fc37de3..a33c7b93b2b 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ConvTranspose3d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ConvTranspose3d.md @@ -31,6 +31,7 @@ paddle.nn.Conv3DTranspose(in_channels, 其中 PyTorch 的 `bias` 与 Paddle 的 `bias_attr` 用法不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | in_channels | in_channels | 表示输入 Tensor 通道数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.CosineSimilarity.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.CosineSimilarity.md index 73fbb7b368c..987a49d45c2 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.CosineSimilarity.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.CosineSimilarity.md @@ -15,6 +15,7 @@ paddle.nn.CosineSimilarity(axis=1, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | dim | axis | 指定计算的维度,会在该维度上计算余弦相似度,默认值为 1。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.CrossEntropyLoss.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.CrossEntropyLoss.md index 2b4b4514fbf..9defe9873a0 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.CrossEntropyLoss.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.CrossEntropyLoss.md @@ -23,6 +23,7 @@ paddle.nn.CrossEntropyLoss(weight=None, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | weight | weight | 表示每个类别的权重。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.DataParallel.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.DataParallel.md index 16ac0b66cd8..d99352dc8a7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.DataParallel.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.DataParallel.md @@ -20,6 +20,7 @@ paddle.DataParallel(layers, 两者功能一致但参数不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | module | layers | 需要通过数据并行方式执行的模型。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Dropout.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Dropout.md index 13ad9417fea..fb8b79c425f 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Dropout.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Dropout.md @@ -15,6 +15,7 @@ paddle.nn.Dropout(p=0.5, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | p | p | 表示丢弃概率。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Dropout2d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Dropout2d.md index 53211da1902..17517ea24ac 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Dropout2d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Dropout2d.md @@ -15,6 +15,7 @@ paddle.nn.Dropout2D(p=0.5, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | p | p | 表示丢弃概率。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Dropout3d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Dropout3d.md index 0b37b36a550..d8fa53768a1 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Dropout3d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Dropout3d.md @@ -15,6 +15,7 @@ paddle.nn.Dropout3D(p=0.5, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | p | p | 表示丢弃概率。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ELU.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ELU.md index e08122aac2f..52ee45bb8dc 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ELU.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ELU.md @@ -15,6 +15,7 @@ paddle.nn.ELU(alpha=1.0, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | alpha | alpha | 表示公式中的超参数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Embedding.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Embedding.md index abca6b44c0b..35c994ae034 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Embedding.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Embedding.md @@ -23,6 +23,7 @@ paddle.nn.Embedding(num_embeddings, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | num_embeddings | num_embeddings | 表示嵌入字典的大小。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Flatten.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Flatten.md index a7ac75e2dd8..174f177c46f 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Flatten.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Flatten.md @@ -15,6 +15,7 @@ paddle.nn.Flatten(start_axis=1, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | start_dim | start_axis | 展开的起始维度,默认值为 1。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Fold.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Fold.md index 09780f36af8..970d40819a7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Fold.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Fold.md @@ -22,6 +22,7 @@ paddle.nn.Fold(output_sizes, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | output_size | output_sizes | 输出尺寸,整数或者整型列表。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.GRU.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.GRU.md index 0b676cf5f14..0b709d36414 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.GRU.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.GRU.md @@ -26,6 +26,7 @@ paddle.nn.GRU(input_size, 两者功能一致但参数不一致,部分参数名不同,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input_size | input_size | 表示输入 x 的大小。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.GRUCell.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.GRUCell.md index 3d19ee67660..fce44973abe 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.GRUCell.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.GRUCell.md @@ -11,6 +11,7 @@ paddle.nn.GRUCell(input_size, hidden_size, weight_ih_attr=None, weight_hh_attr=N 两者功能一致但参数不一,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input_size | input_size | 表示输入 x 的大小。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.GroupNorm.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.GroupNorm.md index 3a52a1267dc..075ceaf6da8 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.GroupNorm.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.GroupNorm.md @@ -25,6 +25,7 @@ paddle.nn.GroupNorm(num_groups, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | eps | epsilon | 为了数值稳定加在分母上的值。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Hardshrink.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Hardshrink.md index 84eefc520de..d34da516022 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Hardshrink.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Hardshrink.md @@ -14,6 +14,7 @@ paddle.nn.Hardshrink(threshold=0.5, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | lambd | threshold | Hardshrink 激活计算公式中的阈值,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Hardsigmoid.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Hardsigmoid.md index ee8f0cfbceb..f1bf94a23ab 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Hardsigmoid.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Hardsigmoid.md @@ -13,6 +13,7 @@ paddle.nn.Hardsigmoid(name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | inplace | - | 在不更改变量的内存地址的情况下,直接修改变量的值,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.InstanceNorm1d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.InstanceNorm1d.md index cd1bf190190..9c7b147e2fe 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.InstanceNorm1d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.InstanceNorm1d.md @@ -13,6 +13,7 @@ paddle.nn.InstanceNorm1D(num_features, epsilon=1e-05, momentum=0.9, weight_attr= PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | num_features | num_features | 指明输入的通道数量 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.InstanceNorm2d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.InstanceNorm2d.md index 936708cdcec..c2018600613 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.InstanceNorm2d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.InstanceNorm2d.md @@ -13,6 +13,7 @@ paddle.nn.InstanceNorm2D(num_features, epsilon=1e-05, momentum=0.9, weight_attr= PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | num_features | num_features | 指明输入的通道数量。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.L1Loss.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.L1Loss.md index 966809608ca..5bc5f9ce4df 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.L1Loss.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.L1Loss.md @@ -16,6 +16,7 @@ paddle.nn.L1Loss(reduction='mean', PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | size_average | - | 已弃用。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.LSTM.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.LSTM.md index 4cfc226a495..156e322e8b3 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.LSTM.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.LSTM.md @@ -29,6 +29,7 @@ paddle.nn.LSTM(input_size, 两者功能一致但参数不一致,部分参数名不同,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input_size | input_size | 表示输入 x 的大小。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.LSTMCell.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.LSTMCell.md index 4e63e85fb60..787c5a06f83 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.LSTMCell.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.LSTMCell.md @@ -11,6 +11,7 @@ paddle.nn.LSTMCell(input_size, hidden_size, weight_ih_attr=None, weight_hh_attr= 两者功能一致但参数不一,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input_size | input_size | 表示输入 x 的大小。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.LeakyReLU.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.LeakyReLU.md index 18767748003..fba19fde2b4 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.LeakyReLU.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.LeakyReLU.md @@ -15,6 +15,7 @@ paddle.nn.LeakyReLU(negative_slope=0.01, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | negative_slope | negative_slope | 表示 x<0 时的斜率。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Linear.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Linear.md index 2dff5a989a8..20c7d865ae9 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Linear.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Linear.md @@ -19,6 +19,7 @@ paddle.nn.Linear(in_features, 其中 PyTorch 的 `bias` 与 Paddle 的 `bias_attr` 用法不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | in_features | in_features | 表示线性变换层输入单元的数目。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.LocalResponseNorm.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.LocalResponseNorm.md index e30a7e68b6d..0feff098e4f 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.LocalResponseNorm.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.LocalResponseNorm.md @@ -21,6 +21,7 @@ paddle.nn.LocalResponseNorm(size, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | size | size | 表示累加的通道数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.LogSoftmax.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.LogSoftmax.md index c8e04cbf59e..6748fd4e989 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.LogSoftmax.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.LogSoftmax.md @@ -12,6 +12,7 @@ paddle.nn.LogSoftmax(axis=- 1, name=None) ``` 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | dim | axis | 指定对输入 Tensor 进行运算的轴,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MSELoss.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MSELoss.md index 280f7e9c9b6..8f8904c4ede 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MSELoss.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MSELoss.md @@ -15,6 +15,7 @@ paddle.nn.MSELoss(reduction='mean') PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | size_average | - | 已弃用。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MaxPool1d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MaxPool1d.md index a0ebd25e085..a544b55feae 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MaxPool1d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MaxPool1d.md @@ -23,6 +23,7 @@ paddle.nn.MaxPool1D(kernel_size, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | kernel_size | kernel_size | 表示池化核大小。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MaxPool2d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MaxPool2d.md index 3d1634bc38f..377616b2a51 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MaxPool2d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MaxPool2d.md @@ -23,6 +23,7 @@ paddle.nn.MaxPool2D(kernel_size, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | kernel_size | kernel_size | 表示池化核大小。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MaxUnpool1d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MaxUnpool1d.md index e99f6747b13..202430242ab 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MaxUnpool1d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MaxUnpool1d.md @@ -20,6 +20,7 @@ paddle.nn.MaxUnPool1D(kernel_size, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | kernel_size | kernel_size | 表示反池化核大小。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MaxUnpool2d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MaxUnpool2d.md index 599ef613332..64aea998ad7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MaxUnpool2d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MaxUnpool2d.md @@ -20,6 +20,7 @@ paddle.nn.MaxUnPool2D(kernel_size, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | kernel_size | kernel_size | 表示反池化核大小。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MaxUnpool3d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MaxUnpool3d.md index b63334255da..1f6f7f885bc 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MaxUnpool3d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MaxUnpool3d.md @@ -20,6 +20,7 @@ paddle.nn.MaxUnPool3D(kernel_size, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | kernel_size | kernel_size | 表示反池化核大小。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Mish.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Mish.md index 41b8e86fee1..8b7e0e054cf 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Mish.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Mish.md @@ -14,6 +14,7 @@ paddle.nn.Mish(name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | inplace | - | 表示在不更改变量的内存地址的情况下,直接修改变量的值,主要功能为节省显存,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Module.buffers.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Module.buffers.md index eddad0490f6..d2be39058e6 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Module.buffers.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Module.buffers.md @@ -15,6 +15,7 @@ paddle.nn.Layer.buffers(include_sublayers=True) 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | recurse | include_sublayers | 表示是否返回子层的 buffers ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Module.load_state_dict.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Module.load_state_dict.md index de71b5f3995..1680dd085c8 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Module.load_state_dict.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Module.load_state_dict.md @@ -14,6 +14,7 @@ paddle.nn.Layer.set_state_dict(state_dict, use_structured_name=True) 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | state_dict | state_dict | 包含所有参数和可持久性 buffers 的 dict。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Module.state_dict.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Module.state_dict.md index fcc62fed9ec..932e6370b83 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Module.state_dict.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Module.state_dict.md @@ -14,6 +14,7 @@ paddle.nn.Layer.state_dict(destination=None, include_sublayers=True, use_hook=Tr PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | destination | destination | 所有参数和可持久性 buffers 都将存放在 destination 中 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.NLLLoss.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.NLLLoss.md index 3cbfb0407ab..a47d772c848 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.NLLLoss.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.NLLLoss.md @@ -22,6 +22,7 @@ paddle.nn.NLLLoss(weight=None, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | Paddle | 备注 | | ------------ | ------------ | -------------------------------------------- | | weight | weight | 表示每个类别的权重。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.PReLU.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.PReLU.md index e40d295c9f6..9ac477b425f 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.PReLU.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.PReLU.md @@ -20,6 +20,7 @@ paddle.nn.PReLU(num_parameters=1, 其中 PyTorch 与 Paddle 均支持更多其它参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | num_parameters | num_parameters | 表示可训练 `weight` 的数量。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.PairwiseDistance.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.PairwiseDistance.md index 5746200037c..37a341b7d4e 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.PairwiseDistance.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.PairwiseDistance.md @@ -19,6 +19,7 @@ paddle.nn.PairwiseDistance(p=2., 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | p | p | 指定 p 阶的范数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.PixelShuffle.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.PixelShuffle.md index dc2ac84e1e1..fea4614aeb7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.PixelShuffle.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.PixelShuffle.md @@ -15,6 +15,7 @@ paddle.nn.PixelShuffle(upscale_factor, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | upscale_factor | upscale_factor | 表示增大空间分辨率的增大因子。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.PixelUnshuffle.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.PixelUnshuffle.md index 78c0c458854..4ca18c43d81 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.PixelUnshuffle.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.PixelUnshuffle.md @@ -15,6 +15,7 @@ paddle.nn.PixelUnshuffle(downscale_factor, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | downscale_factor | downscale_factor | 表示减小空间分辨率的减小因子。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.RNN.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.RNN.md index 87c77d9fd3d..a2e96f47c23 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.RNN.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.RNN.md @@ -18,6 +18,7 @@ paddle.nn.SimpleRNN(input_size, hidden_size, num_layers=1, activation='tanh', di 两者功能一致但参数不一致,部分参数名不同,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input_size | input_size | 表示输入 x 的大小。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.RNNBase.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.RNNBase.md index c8805ab1116..51687f3e2f0 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.RNNBase.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.RNNBase.md @@ -17,6 +17,7 @@ paddle.nn.layer.rnn.RNNBase(mode, input_size, hidden_size, 两者功能一致但参数不一致,部分参数名不同,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | mode | mode | 表示 `RNN` 模型的类型,torch 取值为 `'LSTM', 'GRU', 'RNN_TANH', 'RNN_RELU`,paddle 取值为 `'LSTM', 'GRU'`,需要转写。| diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.RNNCell.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.RNNCell.md index b84cfee19d7..3c6534a4ec7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.RNNCell.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.RNNCell.md @@ -11,6 +11,7 @@ paddle.nn.SimpleRNNCell(input_size, hidden_size, activation='tanh', weight_ih_at 两者功能一致但参数不一致,部分参数名不同,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input_size | input_size | 表示输入 x 的大小。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ReLU.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ReLU.md index 4dfb2a749d0..e5269402202 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ReLU.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ReLU.md @@ -13,6 +13,7 @@ paddle.nn.ReLU(name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | inplace | - | 在不更改变量的内存地址的情况下,直接修改变量的值,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ReflectionPad1d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ReflectionPad1d.md index dc52166b1c5..a016d7bbd8d 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ReflectionPad1d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ReflectionPad1d.md @@ -17,6 +17,7 @@ paddle.nn.Pad1D(padding, 其中 Paddle 与 PyTorch 的 padding 所支持的参数类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | padding | padding | 填充大小,PyTorch 和 Paddle 的 padding 参数的类型分别为 (int/tuple) 和 (int/Tensor/list),需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ReflectionPad2d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ReflectionPad2d.md index 536bd80a8e1..0fbd97e31f8 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ReflectionPad2d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ReflectionPad2d.md @@ -17,6 +17,7 @@ paddle.nn.Pad2D(padding, 其中 Paddle 与 PyTorch 的 padding 所支持的参数类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | padding | padding | 填充大小,PyTorch 和 Paddle 的 padding 参数的类型分别为 (int/tuple) 和 (int/Tensor/list)。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ReflectionPad3d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ReflectionPad3d.md index ffc6fe11ff2..f6e50177ebd 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ReflectionPad3d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ReflectionPad3d.md @@ -17,6 +17,7 @@ paddle.nn.Pad3D(padding, 其中 Paddle 与 PyTorch 的 padding 所支持的参数类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | padding | padding | 填充大小,PyTorch 和 Paddle 的 padding 参数的类型分别为 (int/tuple) 和 (int/Tensor/list)。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ReplicationPad2d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ReplicationPad2d.md index 181a75ba541..92d7febf3ba 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ReplicationPad2d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ReplicationPad2d.md @@ -17,6 +17,7 @@ paddle.nn.Pad2D(padding, 其中 Paddle 与 PyTorch 的 padding 所支持的参数类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | padding | padding | 填充大小,PyTorch 和 Paddle 的 padding 参数的类型分别为 (int/tuple) 和 (int/Tensor/list) ,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.SmoothL1Loss.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.SmoothL1Loss.md index 0fd6925b53e..6dab2d8da77 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.SmoothL1Loss.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.SmoothL1Loss.md @@ -18,6 +18,7 @@ paddle.nn.SmoothL1Loss(reduction='mean', PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | size_average | - | PyTorch 已弃用, Paddle 无此参数,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Softmax.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Softmax.md index 0d916682cd6..c2f1e199169 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Softmax.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Softmax.md @@ -14,6 +14,7 @@ paddle.nn.Softmax(axis=- 1, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | dim | axis | 指定对输入 Tensor 进行运算的轴,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Softshrink.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Softshrink.md index 1c7ea3eed38..28bf71cd5ee 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Softshrink.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Softshrink.md @@ -14,6 +14,7 @@ paddle.nn.Softshrink(threshold=0.5, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | lambd | threshold | Softshrink 激活计算公式中的阈值,必须大于等于零,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.SyncBatchNorm.convert_sync_batchnorm.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.SyncBatchNorm.convert_sync_batchnorm.md index 91fc3054801..4a04a7da378 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.SyncBatchNorm.convert_sync_batchnorm.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.SyncBatchNorm.convert_sync_batchnorm.md @@ -13,6 +13,7 @@ paddle.nn.SyncBatchNorm.convert_sync_batchnorm(layer) PyTorch 参数更多,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | module | layer | 需要转换的模型层, 仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.SyncBatchNorm.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.SyncBatchNorm.md index f761ed9d6dc..ea6db0200ca 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.SyncBatchNorm.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.SyncBatchNorm.md @@ -13,6 +13,7 @@ paddle.nn.SyncBatchNorm(num_features, epsilon=1e-5, momentum=0.9, weight_attr=No 两者功能一致但参数不一致,部分参数名不同,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | num_features | num_features | 表示输入 Tensor 通道数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.TransformerDecoderLayer.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.TransformerDecoderLayer.md index 75d3086b44f..01a879d962d 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.TransformerDecoderLayer.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.TransformerDecoderLayer.md @@ -31,6 +31,7 @@ paddle.nn.TransformerDecoderLayer(d_model, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | d_model | d_model | 表示输入的维度。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Unflatten.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Unflatten.md index 8dd44528d91..9ae6319af6a 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Unflatten.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Unflatten.md @@ -13,6 +13,7 @@ paddle.nn.Unflatten(axis, shape, name=None) 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | dim | axis | 指定对输入 Tensor 进行运算的轴,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Unfold.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Unfold.md index f7864bb2a50..5fbd073cf23 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Unfold.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Unfold.md @@ -19,6 +19,7 @@ paddle.nn.Unfold(kernel_size=[3, 3], ``` 其中 Paddle 与 PyTorch 前四个参数所支持的参数类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | kernel_size | kernel_sizes | 卷积核大小, PyTorch 参数类型为 int、tuple(int) 或者 list(int), Paddle 参数类型为 int 或者 list(int)。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Upsample.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Upsample.md index aad39441175..caf64dd6666 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Upsample.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Upsample.md @@ -22,6 +22,7 @@ paddle.nn.Upsample(size=None, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | size | size | 表示输出 Tensor 的大小。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.UpsamplingBilinear2D.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.UpsamplingBilinear2D.md index a504bf8ec49..f2101d7e030 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.UpsamplingBilinear2D.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.UpsamplingBilinear2D.md @@ -14,6 +14,7 @@ paddle.nn.UpsamplingBilinear2D(size=None,scale_factor=None, data_format='NCHW',n 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | size | size | 表示输出 Tensor 的 size 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.UpsamplingNearest2d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.UpsamplingNearest2d.md index 9cfb62519a4..0d888f78631 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.UpsamplingNearest2d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.UpsamplingNearest2d.md @@ -14,6 +14,7 @@ paddle.nn.UpsamplingNearest2D(size=None, scale_factor=None, data_format='NCHW',n 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | size | size | 表示输出 Tensor 的 size 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ZeroPad2d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ZeroPad2d.md index 33cc6f5d769..e3a99280fc7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ZeroPad2d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.ZeroPad2d.md @@ -15,6 +15,7 @@ paddle.nn.ZeroPad2D(padding, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | padding | padding | 表示填充大小。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.functional.softmax.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.functional.softmax.md index 5507d2767a6..5411ae94848 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.functional.softmax.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.functional.softmax.md @@ -15,6 +15,7 @@ paddle.nn.functional.softmax(x, axis=-1, dtype=None, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | |:-------:|:------------:| :---------------------------------------------------: | | input | x | 表示输入张量,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.abs.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.abs.md index f35392816ea..00560828059 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.abs.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.abs.md @@ -18,6 +18,7 @@ paddle.abs(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.abs_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.abs_.md index 6b32cff76ca..78b072c0078 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.abs_.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.abs_.md @@ -15,6 +15,7 @@ paddle.abs_(x) 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.addmm.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.addmm.md index fb86e091f19..da5dd88cc3a 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.addmm.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.addmm.md @@ -15,6 +15,7 @@ paddle.addmm(input,x,y,alpha=1.0,beta=1.0,name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------- | ------- | ------- | | input | input | 表示输入的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.all.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.all.md index 18d908be6d1..2a6eec47a01 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.all.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.all.md @@ -18,6 +18,7 @@ paddle.all(x, 其中 Paddle 与 PyTorch 的 `input` 参数所支持的类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的多维 Tensor ,PyTorch 支持布尔和数值类型的输入,Paddle 仅支持布尔类型,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.allclose.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.allclose.md index 8030068765f..6ece6ca3253 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.allclose.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.allclose.md @@ -24,6 +24,7 @@ paddle.allclose(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.any.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.any.md index 3b9c2a03433..dae4cdad475 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.any.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.any.md @@ -18,6 +18,7 @@ paddle.any(x, 其中 Paddle 与 PyTorch 的 `input` 参数所支持的类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的多维 Tensor ,PyTorch 支持布尔和数值类型的输入,Paddle 仅支持布尔类型,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.arcsin.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.arcsin.md index 2118c51e285..36506f54408 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.arcsin.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.arcsin.md @@ -18,6 +18,7 @@ paddle.asin(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.arcsinh.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.arcsinh.md index a237688f125..89cb680f4d8 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.arcsinh.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.arcsinh.md @@ -18,6 +18,7 @@ paddle.asinh(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.arctan.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.arctan.md index 9c45bb85ad5..1acba9baa44 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.arctan.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.arctan.md @@ -18,6 +18,7 @@ paddle.atan(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.arctan2.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.arctan2.md index c232afa9c5c..eb70c86d9f3 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.arctan2.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.arctan2.md @@ -19,6 +19,7 @@ paddle.atan2(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.arctanh.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.arctanh.md index c0df0dc5c6e..3a3cf84b44b 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.arctanh.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.arctanh.md @@ -17,6 +17,7 @@ paddle.atanh(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.argmax.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.argmax.md index 46167baf9bc..2c22ef2a44c 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.argmax.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.argmax.md @@ -20,6 +20,7 @@ paddle.argmax(x, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的多维 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.argmin.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.argmin.md index 4d5074e19aa..399fa110ab5 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.argmin.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.argmin.md @@ -20,6 +20,7 @@ paddle.argmin(x, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的多维 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.argsort.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.argsort.md index bd6ce6d3208..0936465c2ad 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.argsort.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.argsort.md @@ -14,6 +14,7 @@ paddle.argsort(x, axis=- 1, descending=False, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的多维 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.argwhere.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.argwhere.md index efbde2dede1..f172fdd5685 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.argwhere.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.argwhere.md @@ -14,6 +14,7 @@ paddle.nonzero(x, as_tuple=False) 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.as_strided.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.as_strided.md index 4a12e07122d..83fa5a288b5 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.as_strided.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.as_strided.md @@ -20,6 +20,7 @@ paddle.as_strided(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor, 仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.as_tensor.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.as_tensor.md index 95f041ccc2b..e7697477f99 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.as_tensor.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.as_tensor.md @@ -18,6 +18,7 @@ paddle.to_tensor(data, 两者功能一致,性能某些用法下比 PyTorch 差(比如如果输入一个 Tensor , PyTorch 会直接返回, Paddle 会复制后返回)。此外, Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | data | data | 表示输入的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.asin.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.asin.md index 0135bdaad26..c7134ea904e 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.asin.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.asin.md @@ -16,6 +16,7 @@ paddle.asin(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.asinh.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.asinh.md index d47e1efe79e..b0245921ffd 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.asinh.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.asinh.md @@ -16,6 +16,7 @@ paddle.asinh(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.atan.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.atan.md index 7ad77c89db5..973bf93c745 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.atan.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.atan.md @@ -17,6 +17,7 @@ paddle.atan(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.atan2.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.atan2.md index 1743d6c502a..f8abef48d5f 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.atan2.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.atan2.md @@ -19,6 +19,7 @@ paddle.atan2(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.atanh.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.atanh.md index 3bddeef72e6..d4db65457b1 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.atanh.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.atanh.md @@ -17,6 +17,7 @@ paddle.atanh(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.atleast_1d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.atleast_1d.md index a3b60021613..942d83985c7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.atleast_1d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.atleast_1d.md @@ -15,6 +15,7 @@ paddle.atleast_1d(*inputs, name=None) PyTorch 与 Paddle 参数不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | tensors | inputs | 输入的 Tensor,仅当 torch 输入为 tuple(Tensor)时,两者处理方式不一致,需要转写。其他情形下均一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.atleast_2d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.atleast_2d.md index ce8fae5c93c..16699cf896a 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.atleast_2d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.atleast_2d.md @@ -15,6 +15,7 @@ paddle.atleast_2d(*inputs, name=None) PyTorch 与 Paddle 参数不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | tensors | inputs | 输入的 Tensor,仅当 torch 输入为 tuple(Tensor)时,两者处理方式不一致,需要转写。其他情形下均一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.atleast_3d.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.atleast_3d.md index 82e618447a0..537dfddb743 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.atleast_3d.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.atleast_3d.md @@ -15,6 +15,7 @@ paddle.atleast_3d(*inputs, name=None) PyTorch 与 Paddle 参数不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | tensors | inputs | 输入的 Tensor,仅当 torch 输入为 tuple(Tensor)时,两者处理方式不一致,需要转写。其他情形下均一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bernoulli.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bernoulli.md index 1fb52733701..7c5e1ed4167 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bernoulli.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bernoulli.md @@ -19,6 +19,7 @@ paddle.bernoulli(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bincount.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bincount.md index 26f13ef08f4..204dc11f1ba 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bincount.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bincount.md @@ -19,6 +19,7 @@ paddle.bincount(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input| x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bitwise_and.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bitwise_and.md index a81b9ebf929..0a08bf649b8 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bitwise_and.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bitwise_and.md @@ -20,6 +20,7 @@ paddle.bitwise_and(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bitwise_not.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bitwise_not.md index a7120ee9a8f..8f600d81f6b 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bitwise_not.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bitwise_not.md @@ -19,6 +19,7 @@ paddle.bitwise_not(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bitwise_or.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bitwise_or.md index bb61a8e3ce1..4321096b8b5 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bitwise_or.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bitwise_or.md @@ -20,6 +20,7 @@ paddle.bitwise_or(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bitwise_xor.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bitwise_xor.md index 2b07a93e595..a025bf021c8 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bitwise_xor.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bitwise_xor.md @@ -20,6 +20,7 @@ paddle.bitwise_xor(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bmm.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bmm.md index 108b395d4bc..a4a8723ad0d 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bmm.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bmm.md @@ -15,6 +15,7 @@ paddle.bmm(x,y,name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------- | ------- | ------- | | input | x | 表示输入的第一个 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.broadcast_tensors.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.broadcast_tensors.md index d251528780a..1ba96d447df 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.broadcast_tensors.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.broadcast_tensors.md @@ -15,6 +15,7 @@ paddle.broadcast_tensors(inputs, 两者功能一致但参数类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | *tensors | inputs | 一组输入 Tensor , PyTorch 参数 tensors 为可变参, Paddle 参数 inputs 为 list(Tensor) 或 tuple(Tensor) 的形式。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.broadcast_to.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.broadcast_to.md index c0bc301de6f..447dc65883f 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.broadcast_to.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.broadcast_to.md @@ -17,6 +17,7 @@ paddle.broadcast_to(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input| x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bucketize.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bucketize.md index d66903e70db..b9d018fbce3 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bucketize.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.bucketize.md @@ -13,6 +13,7 @@ paddle.bucketize(x, sorted_sequence, out_int32=False, right=False, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input| x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cat.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cat.md index 6d9980eaa53..9ec55b7e3e9 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cat.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cat.md @@ -16,6 +16,7 @@ paddle.concat(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input| x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cdist.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cdist.md index 9ad7aa32431..b33e72c7099 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cdist.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cdist.md @@ -14,6 +14,7 @@ paddle.cdist(x, y, p=2.0, compute_mode='use_mm_for_euclid_dist_if_necessary', na 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | x1 | x | 表示第一个输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.ceil.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.ceil.md index d40e74880ec..012434f13e6 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.ceil.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.ceil.md @@ -17,6 +17,7 @@ paddle.ceil(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cholesky.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cholesky.md index a627bc02dd3..d5ed69506f4 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cholesky.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cholesky.md @@ -15,6 +15,7 @@ paddle.linalg.cholesky(x,upper=False,name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------- | ------- | ------- | | input | x | 表示输入参数为多维 Tensor ,它的维度应该为 [*, M, N],其中*为零或更大的批次尺寸,并且最里面的两个维度上的矩阵都应为对称的正定矩阵,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cholesky_solve.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cholesky_solve.md index 26b346910ad..cf97679b907 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cholesky_solve.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cholesky_solve.md @@ -15,6 +15,7 @@ paddle.linalg.cholesky_solve(x, y, upper=False, name=None) 两者功能一致且参数用法一致,仅参数名不一致,具体如下:: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------- | ------------ | ---------------------------------------------------------------------------------- | | input | x | 表示线性方程中的 B 矩阵。仅参数名不一致 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.chunk.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.chunk.md index f0eb042fca3..69ac5214d5b 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.chunk.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.chunk.md @@ -18,6 +18,7 @@ paddle.chunk(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.clamp.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.clamp.md index 6ca02d0b2fd..afedaf16dbe 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.clamp.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.clamp.md @@ -20,6 +20,7 @@ paddle.clip(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.clamp_max.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.clamp_max.md index 8c0c33ffdfd..9fd7f9b07f9 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.clamp_max.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.clamp_max.md @@ -19,6 +19,7 @@ paddle.clip(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.clamp_min.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.clamp_min.md index 2af364697d3..ec4594608b5 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.clamp_min.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.clamp_min.md @@ -19,6 +19,7 @@ paddle.clip(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.clip.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.clip.md index 62ca74aa022..993ab3ed2e2 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.clip.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.clip.md @@ -20,6 +20,7 @@ paddle.clip(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input| | x | 表示输入的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.clone.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.clone.md index 81a1ad1653d..2001d177b65 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.clone.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.clone.md @@ -18,6 +18,7 @@ paddle.clone(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.conj.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.conj.md index ab1b846560f..0a0b33ca757 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.conj.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.conj.md @@ -14,6 +14,7 @@ paddle.conj(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.conj_physical.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.conj_physical.md index d8cf7a077c8..9f0f39ee680 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.conj_physical.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.conj_physical.md @@ -14,6 +14,7 @@ paddle.conj(x, PyTorch 参数更多,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.corrcoef.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.corrcoef.md index c062d15a1cc..569c65d91bc 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.corrcoef.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.corrcoef.md @@ -15,6 +15,7 @@ paddle.linalg.corrcoef(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 一个 N(N<=2) 维矩阵,包含多个变量。默认矩阵的每行是一个观测变量,由参数 rowvar 设置。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cos.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cos.md index f338565a5af..d8ab7b7caf3 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cos.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cos.md @@ -16,6 +16,7 @@ paddle.cos(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cosh.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cosh.md index d423f602e19..84cb7000349 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cosh.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cosh.md @@ -16,6 +16,7 @@ paddle.cosh(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cosine_similarity.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cosine_similarity.md index db2335a8c40..cf334122a72 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cosine_similarity.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cosine_similarity.md @@ -13,6 +13,7 @@ paddle.nn.functional.cosine_similarity(x1, x2, axis=1, eps=1e-8) 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | x1 | x1 | 表示第一个输入的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.count_nonzero.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.count_nonzero.md index b46568f692b..c00b583ceb1 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.count_nonzero.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.count_nonzero.md @@ -17,6 +17,7 @@ paddle.count_nonzero(x, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cov.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cov.md index e08d167b528..26ac533e75c 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cov.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cov.md @@ -21,6 +21,7 @@ paddle.linalg.cov(x, 仅 paddle 参数更多,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cross.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cross.md index 9308ba7b37d..d899de4fde6 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cross.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cross.md @@ -22,6 +22,7 @@ paddle.cross(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummax.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummax.md index e946e1374aa..eaec3b541ad 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummax.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummax.md @@ -21,6 +21,7 @@ paddle.cummax(x, 两者功能一致,torch 参数更多,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md index 7431c442616..0542cb71299 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md @@ -21,6 +21,7 @@ paddle.cummin(x, 两者功能一致,torch 参数更多,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cumprod.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cumprod.md index adcb0f2a157..915e24c0649 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cumprod.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cumprod.md @@ -22,6 +22,7 @@ paddle.cumprod(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------| | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cumsum.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cumsum.md index 803d8d4f1d0..1f20d5cef23 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cumsum.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cumsum.md @@ -22,6 +22,7 @@ paddle.cumsum(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.deg2rad.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.deg2rad.md index bde62bcd654..82a15bb8ff9 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.deg2rad.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.deg2rad.md @@ -16,6 +16,7 @@ paddle.deg2rad(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.det.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.det.md index 28bad04f1f7..a9552a7db5b 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.det.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.det.md @@ -13,6 +13,7 @@ paddle.linalg.det(x) 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.diag.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.diag.md index 793af0173fa..a46de2b69ba 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.diag.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.diag.md @@ -20,6 +20,7 @@ paddle.diag(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.diagflat.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.diagflat.md index d741be6b09d..8faa700bfa4 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.diagflat.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.diagflat.md @@ -16,6 +16,7 @@ paddle.diagflat(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.diagonal.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.diagonal.md index c5c13b80628..ce639ad1b07 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.diagonal.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.diagonal.md @@ -20,6 +20,7 @@ paddle.diagonal(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.digamma.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.digamma.md index 7887902cbc6..bf00bb1fb61 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.digamma.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.digamma.md @@ -14,6 +14,7 @@ paddle.digamma(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.dist.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.dist.md index 311a6d3795b..885727efd85 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.dist.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.dist.md @@ -17,6 +17,7 @@ paddle.dist(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.div.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.div.md index 128b7b06171..2b9088273a4 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.div.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.div.md @@ -17,6 +17,7 @@ paddle.divide(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.divide.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.divide.md index d731724b7ed..9e7f4f08b55 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.divide.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.divide.md @@ -17,6 +17,7 @@ paddle.divide(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.dot.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.dot.md index 29977971e58..33fdcf74d01 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.dot.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.dot.md @@ -15,6 +15,7 @@ paddle.dot(x, y, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.equal.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.equal.md index ca343483b80..4f13355ce14 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.equal.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.equal.md @@ -16,6 +16,7 @@ paddle.equal_all(x, 两者功能一致但返回参数类型不同,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.erf.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.erf.md index 62b3e38619d..ad70fbc8d54 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.erf.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.erf.md @@ -16,6 +16,7 @@ paddle.erf(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.erfinv.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.erfinv.md index 2bd58660572..3b08b08d763 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.erfinv.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.erfinv.md @@ -16,6 +16,7 @@ paddle.erfinv(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.exp.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.exp.md index 024c14deb0f..bf03c952356 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.exp.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.exp.md @@ -16,6 +16,7 @@ paddle.exp(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.expm1.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.expm1.md index 618381ac958..4517617c929 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.expm1.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.expm1.md @@ -16,6 +16,7 @@ paddle.expm1(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.fix.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.fix.md index a21848dc519..fab95417560 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.fix.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.fix.md @@ -16,6 +16,7 @@ paddle.trunc(input, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | input | 表示输入的 Tensor。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.flatten.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.flatten.md index d9d2f840b4c..74c04b30245 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.flatten.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.flatten.md @@ -18,6 +18,7 @@ paddle.flatten(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.flip.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.flip.md index 4ee686ae1a9..a64e69e7b6c 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.flip.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.flip.md @@ -16,6 +16,7 @@ paddle.flip(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.fliplr.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.fliplr.md index 859f0ecb1cd..a910b63a3ac 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.fliplr.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.fliplr.md @@ -15,6 +15,7 @@ paddle.flip(x, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.flipud.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.flipud.md index 1d5e9a266f2..79c8730303c 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.flipud.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.flipud.md @@ -13,6 +13,7 @@ paddle.flip(x, axis, name=None) 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.floor.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.floor.md index ac68c1e04c5..95e856ed929 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.floor.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.floor.md @@ -16,6 +16,7 @@ paddle.floor(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.floor_divide.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.floor_divide.md index b1320f24ad5..428a22a0df7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.floor_divide.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.floor_divide.md @@ -18,6 +18,7 @@ paddle.floor_divide(x, 其中 PyTorch 和 Paddle 的 `other` 参数支持类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的被除数 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.fmax.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.fmax.md index 653dbba9ae8..2e080159e43 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.fmax.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.fmax.md @@ -14,6 +14,7 @@ paddle.fmax(x, y, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.fmin.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.fmin.md index c9e0b325b9e..9cc6820ee98 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.fmin.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.fmin.md @@ -14,6 +14,7 @@ paddle.fmin(x, y, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.fmod.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.fmod.md index f721a87d3f7..48d4e207d60 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.fmod.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.fmod.md @@ -18,6 +18,7 @@ paddle.mod(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的被除数 ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.frexp.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.frexp.md index 868dd40387d..39589736647 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.frexp.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.frexp.md @@ -16,6 +16,7 @@ paddle.frexp(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.from_dlpack.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.from_dlpack.md index 81b6ac0a09b..a1c33d81db8 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.from_dlpack.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.from_dlpack.md @@ -14,6 +14,7 @@ paddle.utils.dlpack.from_dlpack(dlpack) 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | ext_tensor | dlpack | 表示输入的带有 dltensor 的 PyCapsule 对象,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.from_numpy.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.from_numpy.md index 001aab88e4e..5599cc65a7d 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.from_numpy.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.from_numpy.md @@ -16,6 +16,7 @@ paddle.to_tensor(data, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | ndarray | data | 表示需要转换的数据, PyTorch 只能传入 numpy.ndarray , Paddle 可以传入 scalar 、 list 、 tuple 、 numpy.ndarray 、 paddle.Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.full_like.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.full_like.md index 9a73e63a343..47957302b30 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.full_like.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.full_like.md @@ -23,6 +23,7 @@ paddle.full_like(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.gather.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.gather.md index 3d5a7b60eed..5b176068bc1 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.gather.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.gather.md @@ -21,6 +21,7 @@ paddle.take_along_axis(arr, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.ger.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.ger.md index 392762ff635..2a40331b2b2 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.ger.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.ger.md @@ -15,6 +15,7 @@ paddle.outer(x, y, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.get_rng_state.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.get_rng_state.md index 3e52f4a1901..e0e150db6a1 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.get_rng_state.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.get_rng_state.md @@ -15,6 +15,7 @@ paddle.get_rng_state() 其中 PyTorch 与 Paddle 的返回参数类型不一致 ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | Tensor | GeneratorState | 返回类型不一致 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.greater.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.greater.md index a5fb20fdbf2..c4eecfc49a9 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.greater.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.greater.md @@ -14,6 +14,7 @@ paddle.greater_than(x, y, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.gt.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.gt.md index a53ee07f735..2f1eee179a9 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.gt.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.gt.md @@ -14,6 +14,7 @@ paddle.greater_than(x, y, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.heaviside.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.heaviside.md index 75e36ad5ed8..733490e205c 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.heaviside.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.heaviside.md @@ -13,6 +13,7 @@ paddle.heaviside(x, y, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.i0.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.i0.md index bc9c10b4c18..34af7623110 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.i0.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.i0.md @@ -17,6 +17,7 @@ paddle.i0(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.imag.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.imag.md index 82e2517cb54..d4783c1eda6 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.imag.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.imag.md @@ -15,6 +15,7 @@ paddle.imag(x) 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.index_add.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.index_add.md index 0fa0b4e0604..6882dace103 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.index_add.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.index_add.md @@ -13,6 +13,7 @@ paddle.index_add(x, index, axis, value, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.index_select.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.index_select.md index 60ba9d035f5..1e79c48e659 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.index_select.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.index_select.md @@ -20,6 +20,7 @@ paddle.index_select(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.inner.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.inner.md index 2d0a4f6ca8c..30e307fc0fc 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.inner.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.inner.md @@ -15,6 +15,7 @@ paddle.inner(x, y, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.inverse.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.inverse.md index 28f40941475..2d5bc7b5a17 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.inverse.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.inverse.md @@ -15,6 +15,7 @@ paddle.linalg.inv(x, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.is_complex.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.is_complex.md index 1b030760109..e25afeb8ea0 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.is_complex.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.is_complex.md @@ -13,6 +13,7 @@ paddle.is_complex(x) 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.is_floating_point.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.is_floating_point.md index 5225f89e9d7..b02175f55d0 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.is_floating_point.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.is_floating_point.md @@ -14,6 +14,7 @@ paddle.is_floating_point(x) 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.isclose.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.isclose.md index 1018ea1ba7d..fd8c4a087cf 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.isclose.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.isclose.md @@ -22,6 +22,7 @@ paddle.isclose(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.isfinite.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.isfinite.md index 96ae06c480b..1cf4900ae42 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.isfinite.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.isfinite.md @@ -14,6 +14,7 @@ paddle.isfinite(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.isinf.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.isinf.md index 6b1888d9138..76af28b5b60 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.isinf.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.isinf.md @@ -14,6 +14,7 @@ paddle.isinf(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.isnan.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.isnan.md index 44987e58bf5..0febaec1e1d 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.isnan.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.isnan.md @@ -14,6 +14,7 @@ paddle.isnan(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.istft.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.istft.md index 3a14b0820e7..fed6c2e81b4 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.istft.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.istft.md @@ -32,6 +32,7 @@ paddle.signal.istft(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.kron.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.kron.md index be4f85e8728..7bea3473a3f 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.kron.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.kron.md @@ -15,6 +15,7 @@ paddle.kron(x, y, out=None, name=None) 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------- | ------------ | --------------------------------------------------- | | input | x | 表示 Kron OP 输入的第一个 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.kthvalue.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.kthvalue.md index 4b4418e68aa..14bbf388606 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.kthvalue.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.kthvalue.md @@ -23,6 +23,7 @@ paddle.kthvalue(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.le.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.le.md index 61754bae2fd..082626e04bf 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.le.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.le.md @@ -14,6 +14,7 @@ paddle.less_equal(x, y, name=None) 其中 Paddle 和 PyTorch 的 `other` 参数所支持的数据类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.less.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.less.md index 6e0e5c808a0..e06938c4ec9 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.less.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.less.md @@ -14,6 +14,7 @@ paddle.less_than(x, y, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.less_equal.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.less_equal.md index a88c68248a1..c85700cb285 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.less_equal.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.less_equal.md @@ -14,6 +14,7 @@ paddle.less_equal(x, y, name=None) 其中 Paddle 和 PyTorch 的 `other` 参数所支持的数据类型不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.log.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.log.md index fad4e385366..266db807ce1 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.log.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.log.md @@ -16,6 +16,7 @@ paddle.log(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.log1p.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.log1p.md index 10f3a5a6ef0..8b052cefbfd 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.log1p.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.log1p.md @@ -16,6 +16,7 @@ paddle.log1p(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.log2.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.log2.md index 1c17a49d1f2..a3073387fc9 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.log2.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.log2.md @@ -16,6 +16,7 @@ paddle.log2(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.logical_and.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.logical_and.md index d89d0e70b7e..38e226bb9ad 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.logical_and.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.logical_and.md @@ -19,6 +19,7 @@ paddle.logical_and(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.logical_not.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.logical_not.md index 01b024eb367..ce8acacfd46 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.logical_not.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.logical_not.md @@ -17,6 +17,7 @@ paddle.logical_not(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.logical_or.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.logical_or.md index a6ff943d40d..424f77110aa 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.logical_or.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.logical_or.md @@ -19,6 +19,7 @@ paddle.logical_or(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.lt.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.lt.md index c36b3d6f2da..b8454f8ea53 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.lt.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.lt.md @@ -14,6 +14,7 @@ paddle.less_than(x, y, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.lu.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.lu.md index 62835fa4037..89c92f4dacb 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.lu.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.lu.md @@ -15,6 +15,7 @@ paddle.linalg.lu(x, pivot=True, get_infos=False, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | A | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.lu_unpack.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.lu_unpack.md index 995d0d2dc6a..f814e345476 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.lu_unpack.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.lu_unpack.md @@ -14,6 +14,7 @@ paddle.linalg.lu_unpack(x, y, unpack_ludata=True, unpack_pivots=True, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | LU_data | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.masked_select.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.masked_select.md index cc5828fc338..987e09f5119 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.masked_select.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.masked_select.md @@ -18,6 +18,7 @@ paddle.masked_select(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.matmul.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.matmul.md index d7bc6f592f2..0d7b3c99805 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.matmul.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.matmul.md @@ -17,6 +17,7 @@ paddle.matmul(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的第一个 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.matrix_power.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.matrix_power.md index b4b90eca838..c453f7f089e 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.matrix_power.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.matrix_power.md @@ -11,6 +11,7 @@ paddle.linalg.matrix_power(x, n, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.max.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.max.md index 18530cb1a0a..aba99bdbabc 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.max.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.max.md @@ -23,6 +23,7 @@ paddle.max(x, 其中 PyTorch 与 Paddle 指定 `dim` 后返回值不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | @@ -74,6 +75,7 @@ paddle.maximum(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.maximum.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.maximum.md index b8cbf8964d5..f6b55f6e95d 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.maximum.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.maximum.md @@ -14,6 +14,7 @@ paddle.maximum(x, y, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.min.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.min.md index 984185fec7e..76d0b0cf9aa 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.min.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.min.md @@ -23,6 +23,7 @@ paddle.min(x, 其中 PyTorch 与 Paddle 指定 `dim` 后返回值不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | @@ -73,6 +74,7 @@ paddle.minimum(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.minimum.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.minimum.md index e10c7bdbacf..e7bd305b8f2 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.minimum.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.minimum.md @@ -14,6 +14,7 @@ paddle.minimum(x, y, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.moveaxis.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.moveaxis.md index bc10d91cfdc..791f704323c 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.moveaxis.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.moveaxis.md @@ -18,6 +18,7 @@ paddle.moveaxis(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.msort.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.msort.md index fb7299b7914..e65bb4a681e 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.msort.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.msort.md @@ -15,6 +15,7 @@ paddle.sort(x, axis=-1, descending=False, name=None) 其中 PyTorch 与 Paddle 有不同的参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.multinomial.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.multinomial.md index e8ee03e941c..c9a408c702d 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.multinomial.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.multinomial.md @@ -18,6 +18,7 @@ paddle.multinomial(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.mv.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.mv.md index dfd1c7a62be..1a809fa7c45 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.mv.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.mv.md @@ -13,6 +13,7 @@ paddle.mv(x, vec, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.nan_to_num.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.nan_to_num.md index 1f8968db426..86e8f62177e 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.nan_to_num.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.nan_to_num.md @@ -14,6 +14,7 @@ paddle.nan_to_num(x, nan=0.0, posinf=None, neginf=None, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.nanmean.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.nanmean.md index e96611cce54..0937e182189 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.nanmean.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.nanmean.md @@ -21,6 +21,7 @@ paddle.nanmean(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.nanquantile.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.nanquantile.md index bb603ad857b..db718fdabae 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.nanquantile.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.nanquantile.md @@ -25,6 +25,7 @@ paddle.nanquantile(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.narrow.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.narrow.md index ff9bcca9d08..19c27e8b933 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.narrow.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.narrow.md @@ -18,6 +18,7 @@ paddle.slice(input, 其中 PyTorch 的 length 与 Paddle 的 ends 用法不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | input | 表示输入的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.ne.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.ne.md index 0389e4512e4..3282e52d20a 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.ne.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.ne.md @@ -20,6 +20,7 @@ paddle.not_equal(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.nextafter.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.nextafter.md index cb32ed50f13..a88acf5dea6 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.nextafter.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.nextafter.md @@ -19,6 +19,7 @@ paddle.nextafter(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.nonzero.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.nonzero.md index b08870970ae..8ec6bbb90e6 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.nonzero.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.nonzero.md @@ -17,6 +17,7 @@ paddle.nonzero(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.normal.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.normal.md index ea5051666fe..97c1d4e7d8c 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.normal.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.normal.md @@ -17,6 +17,7 @@ paddle.normal(mean=0.0, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | mean | mean | 表示正态分布的均值。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.not_equal.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.not_equal.md index fba1c654265..97b0782b98e 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.not_equal.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.not_equal.md @@ -20,6 +20,7 @@ paddle.not_equal(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------| | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.outer.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.outer.md index 0d7e1c2698d..0cd90043034 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.outer.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.outer.md @@ -15,6 +15,7 @@ paddle.outer(x, y, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.permute.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.permute.md index 1981a57fd95..ad8e3d19a26 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.permute.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.permute.md @@ -16,6 +16,7 @@ paddle.transpose(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的多维 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.pinverse.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.pinverse.md index fb98217c496..473b63e3c44 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.pinverse.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.pinverse.md @@ -17,6 +17,7 @@ paddle.linalg.pinv(x, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.poisson.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.poisson.md index aaa41411203..b8a577520a7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.poisson.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.poisson.md @@ -13,6 +13,7 @@ paddle.poisson(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.polygamma.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.polygamma.md index 88d5303f086..4a3acd224bb 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.polygamma.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.polygamma.md @@ -19,6 +19,7 @@ paddle.polygamma(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | n | n | 指定需要求解 n 阶多伽马函数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.pow.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.pow.md index 76f98e8309d..6872c23d5bb 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.pow.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.pow.md @@ -19,6 +19,7 @@ paddle.pow(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.prod.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.prod.md index 99a3ff3bcf6..a8536cff8ab 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.prod.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.prod.md @@ -21,6 +21,7 @@ paddle.prod(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.qr.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.qr.md index 6ddc5bf627e..c848145b57c 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.qr.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.qr.md @@ -15,6 +15,7 @@ paddle.linalg.qr(x, mode='reduced', name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.quantile.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.quantile.md index bae0a83331e..9e00dfce92a 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.quantile.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.quantile.md @@ -25,6 +25,7 @@ paddle.quantile(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.rad2deg.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.rad2deg.md index 58e6346cbf6..59d7c6df202 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.rad2deg.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.rad2deg.md @@ -14,6 +14,7 @@ paddle.rad2deg(x, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.rand.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.rand.md index 6bbb8d654ca..e827e1d4b8c 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.rand.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.rand.md @@ -22,6 +22,7 @@ paddle.rand(shape, 其中 torch 的 `size` 和 paddle 的 `shape` 用法不一致,torch 还支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | *size | shape | 表示输出形状大小,PyTorch 以可变参数方式传入,Paddle 以 list 或 tuple 的方式传入。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.randint.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.randint.md index e961abce29b..a8939aedef8 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.randint.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.randint.md @@ -24,6 +24,7 @@ paddle.randint(low=0, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | low | low | 表示生成的随机值范围的下限(区间一般包含)。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.randn.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.randn.md index 21d3555f101..e925c9dd6be 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.randn.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.randn.md @@ -22,6 +22,7 @@ paddle.randn(shape, 其中 torch 的 `size` 和 paddle 的 `shape` 用法不一致,torch 还支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | *size | shape | 表示输出形状大小,PyTorch 以可变参数方式传入,Paddle 以 list 或 tuple 的方式传入。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.ravel.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.ravel.md index 7fe82778e0a..e74dca60eae 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.ravel.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.ravel.md @@ -13,6 +13,7 @@ paddle.flatten(x, start_axis=0, stop_axis=- 1, name=None) 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.real.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.real.md index a5cddfe6e82..5389f88543f 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.real.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.real.md @@ -13,6 +13,7 @@ paddle.real(x) 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor , 仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.reciprocal.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.reciprocal.md index ee52d60ea80..5e749f06326 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.reciprocal.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.reciprocal.md @@ -17,6 +17,7 @@ paddle.reciprocal(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.relu.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.relu.md index a25e6c9b894..82cbd174c86 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.relu.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.relu.md @@ -14,6 +14,7 @@ paddle.nn.functional.relu(x, name=None) 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.remainder.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.remainder.md index f18135f22fb..901431a29f7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.remainder.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.remainder.md @@ -18,6 +18,7 @@ paddle.remainder(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 被除数,PyTorch 可为 Tensor or Scalar,Paddle 仅可为 Tensor。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.repeat_interleave.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.repeat_interleave.md index 53b1ec2394e..920346fecfe 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.repeat_interleave.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.repeat_interleave.md @@ -15,6 +15,7 @@ paddle.repeat_interleave(x, repeats, axis=None, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------- | ------------ | --------------------------------------------------- | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.reshape.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.reshape.md index 1336e0132ef..983fcede165 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.reshape.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.reshape.md @@ -16,6 +16,7 @@ paddle.reshape(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 N-D Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.rot90.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.rot90.md index 9ba6302c639..5ea88710035 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.rot90.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.rot90.md @@ -18,6 +18,7 @@ paddle.rot90(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.round.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.round.md index c6e3a1a7584..7ed8ad72678 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.round.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.round.md @@ -17,6 +17,7 @@ paddle.round(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.rsqrt.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.rsqrt.md index b6786105a0c..50038ac5863 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.rsqrt.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.rsqrt.md @@ -16,6 +16,7 @@ paddle.rsqrt(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.save.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.save.md index 42a2c35948f..1ad263bf855 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.save.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.save.md @@ -19,6 +19,7 @@ paddle.save(obj, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | obj | obj | 要保存的对象实例,torch 支持 io.BytesIO、io.StringIO、文件,paddle 只支持文件,暂无转写方式。| diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.scalar_tensor.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.scalar_tensor.md index dbe7fe7e313..76f8c310c53 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.scalar_tensor.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.scalar_tensor.md @@ -21,6 +21,7 @@ paddle.to_tensor(data, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | s | data | 表示输入的数据。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.scatter.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.scatter.md index fb4ba91af63..91ca1c61dd3 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.scatter.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.scatter.md @@ -15,6 +15,7 @@ paddle.put_along_axis(arr,indices, values, axis, reduce="assign", include_self=T 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------- | ------------ | ------- | | input | arr | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.searchsorted.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.searchsorted.md index 74dfeec1505..586e5c4ba68 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.searchsorted.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.searchsorted.md @@ -26,6 +26,7 @@ paddle.searchsorted(sorted_sequence, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------- | ------------ | --------------------------------------------------- | | sorted_sequence | sorted_sequence | 表示待查找的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.set_rng_state.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.set_rng_state.md index 916a3de27c1..3ddb6998f3e 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.set_rng_state.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.set_rng_state.md @@ -15,6 +15,7 @@ paddle.set_rng_state(state_list) 其中 PyTorch 与 Paddle 的输入参数类型不一致 ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | new_state | state_list | 表示需要设置的新状态,PyTorch 输入类型为 torch.ByteTensor, Paddle 为 list[GeneratorState] | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sgn.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sgn.md index e6700859790..a57bd8f2d5d 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sgn.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sgn.md @@ -16,6 +16,7 @@ paddle.sgn(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sign.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sign.md index 8352d3edc7b..283559b6b50 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sign.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sign.md @@ -16,6 +16,7 @@ paddle.sign(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sin.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sin.md index ff8a4be57be..d3f0fe321ae 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sin.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sin.md @@ -16,6 +16,7 @@ paddle.sin(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sinh.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sinh.md index d034a0a27f7..967f1dd383c 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sinh.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sinh.md @@ -16,6 +16,7 @@ paddle.sinh(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.slogdet.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.slogdet.md index b2d8eeb262b..706345b5616 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.slogdet.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.slogdet.md @@ -14,6 +14,7 @@ paddle.linalg.slogdet(x) 两者功能一致,返回参数的个数不同,PyTorch 返回两个 Tesnor,Paddle 返回一个 Tensor,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sort.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sort.md index 0a36fd1c2b7..0f9311303a5 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sort.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sort.md @@ -23,6 +23,7 @@ paddle.sort(x, PyTorch 相比 Paddle 支持更多其他参数,同时两个 api 的返回参数类型不同,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.split.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.split.md index 6bed58452dd..fa5c4d041ce 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.split.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.split.md @@ -18,6 +18,7 @@ paddle.split(x, 其中 PyTorch 的 `split_size_or_sections` 与 Paddle 的 `num_or_sections` 用法不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | tensor | x | 表示输入 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sqrt.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sqrt.md index ea3dda23e78..c307d01d869 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sqrt.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sqrt.md @@ -16,6 +16,7 @@ paddle.sqrt(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.square.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.square.md index a0aa19290db..8aa7cb862c8 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.square.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.square.md @@ -16,6 +16,7 @@ paddle.square(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.squeeze.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.squeeze.md index f9aad63b300..136d10b5ec8 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.squeeze.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.squeeze.md @@ -16,6 +16,7 @@ paddle.squeeze(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.stack.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.stack.md index d40c0267af1..3d089ffccff 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.stack.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.stack.md @@ -19,6 +19,7 @@ paddle.stack(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | tensors | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.stft.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.stft.md index 23d3e647cce..96d5dfe2185 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.stft.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.stft.md @@ -33,6 +33,7 @@ paddle.signal.stft(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的数据,是维度为 1D 或者 2D 的 Tensor, 数据类型可为复数(复信号),仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sub.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sub.md index 2ca2c56c529..0ed9caab2a3 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sub.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sub.md @@ -19,6 +19,7 @@ paddle.subtract(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示被减数的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.subtract.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.subtract.md index b7c440598a9..4894b73bd27 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.subtract.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.subtract.md @@ -19,6 +19,7 @@ paddle.subtract(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示被减数的 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sum.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sum.md index be6dc0130fb..7c74c462403 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sum.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.sum.md @@ -20,6 +20,7 @@ paddle.sum(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.svd.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.svd.md index 4e0bc3408a3..2ad83a1803e 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.svd.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.svd.md @@ -15,6 +15,7 @@ paddle.linalg.svd(x, full_matrics=False, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.svd_lowrank.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.svd_lowrank.md index aeaf62d44c8..541a43b14d6 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.svd_lowrank.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.svd_lowrank.md @@ -15,6 +15,7 @@ paddle.linalg.svd(x, full_matrics=False, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | A | x | 表示输入 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.swapaxes.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.swapaxes.md index e9d8f5494e8..6a0161daab3 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.swapaxes.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.swapaxes.md @@ -17,6 +17,7 @@ paddle.transpose(x, 其中 PyTorch 的 `axis0、axis1` 与 Paddle 用法不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入 Tensor。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.swapdims.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.swapdims.md index 41436bffe39..afc9ec803f1 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.swapdims.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.swapdims.md @@ -19,6 +19,7 @@ paddle.transpose(x, 其中 PyTorch 的 `dim0、dim1` 与 Paddle 用法不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入 Tensor。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.symeig.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.symeig.md index 70430ae80ed..be21a82e648 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.symeig.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.symeig.md @@ -20,6 +20,7 @@ paddle.linalg.eigvalsh(x, UPLO='L', name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的对称 Tensor,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.take.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.take.md index e8b19463a5c..6f46e216fa2 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.take.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.take.md @@ -13,6 +13,7 @@ paddle.take(x, index, mode='raise', name=None) 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.take_along_dim.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.take_along_dim.md index 99041bb4333..90e1c243749 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.take_along_dim.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.take_along_dim.md @@ -20,6 +20,7 @@ paddle.take_along_axis(arr, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | arr | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.tensordot.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.tensordot.md index 3c8c4fd9bcd..9bead5429bd 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.tensordot.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.tensordot.md @@ -15,6 +15,7 @@ paddle.tensordot(x,y,axes=2,name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------- | ------- | ------- | | a | x | 表示缩并运算的左张量,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.tile.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.tile.md index 957d9200cdd..371c27ba0ae 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.tile.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.tile.md @@ -16,6 +16,7 @@ paddle.tile(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.topk.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.topk.md index a86b1c56933..5f133aa7b86 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.topk.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.topk.md @@ -26,6 +26,7 @@ paddle.topk(x, PyTorch 相比 Paddle 支持更多其他参数,同时两个 api 的返回参数类型不同,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.trace.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.trace.md index de3b1e5701e..62bdd95b779 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.trace.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.trace.md @@ -16,6 +16,7 @@ paddle.trace(x, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.transpose.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.transpose.md index ccdbaa8f9a7..b0574cde58e 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.transpose.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.transpose.md @@ -19,6 +19,7 @@ paddle.transpose(x, 其中 PyTorch 的 `dim0、dim1` 与 Paddle 用法不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入 Tensor。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.tril.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.tril.md index e773d1ec2b1..a4be1c6f229 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.tril.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.tril.md @@ -15,6 +15,7 @@ paddle.tril(input,diagonal=0,name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------- | ------- | ------- | | input | input | 表示输入的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.tril_indices.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.tril_indices.md index 4122b5ce765..fb7879fe56b 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.tril_indices.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.tril_indices.md @@ -15,6 +15,7 @@ paddle.tril_indices(row,col,offset=0,dtype='int64') PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------- | ------- | ------- | | row | row | 表示输入 Tensor 的行数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.triu.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.triu.md index 743beffa7a7..59265cf5b77 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.triu.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.triu.md @@ -15,6 +15,7 @@ paddle.triu(input,diagonal=0,name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------- | ------- | ------- | | input | input | 表示输入的 Tensor 。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.triu_indices.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.triu_indices.md index 12196eb73ab..86e56575eb7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.triu_indices.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.triu_indices.md @@ -15,6 +15,7 @@ paddle.triu_indices(row,col=None,offset=0,dtype='int64') PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------- | ------- | ------- | | row | row | 表示输入 Tensor 的行数。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.trunc.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.trunc.md index ed5c01eb782..ad822ea73a8 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.trunc.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.trunc.md @@ -16,6 +16,7 @@ paddle.trunc(input, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | input | 表示输入的 Tensor。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.unbind.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.unbind.md index d9edc336eb3..2294786cc84 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.unbind.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.unbind.md @@ -16,6 +16,7 @@ paddle.unbind(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的多维 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.unique_consecutive.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.unique_consecutive.md index 9034aaa3f3c..5862eac61b8 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.unique_consecutive.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.unique_consecutive.md @@ -21,6 +21,7 @@ paddle.unique_consecutive(x, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.unsqueeze.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.unsqueeze.md index 847e2930405..fbf71695b05 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.unsqueeze.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.unsqueeze.md @@ -16,6 +16,7 @@ paddle.unsqueeze(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.vander.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.vander.md index 941c4ce98ba..e4cef2ccad3 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.vander.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.vander.md @@ -19,6 +19,7 @@ paddle.vander(x, 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | x | x | 表示输入的 Tensor。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.view_as_complex.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.view_as_complex.md index 479a8de2144..7f516c30beb 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.view_as_complex.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.view_as_complex.md @@ -15,6 +15,7 @@ paddle.as_complex(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.view_as_real.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.view_as_real.md index 03a33077eef..49cf32d6f25 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.view_as_real.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.view_as_real.md @@ -14,6 +14,7 @@ paddle.as_real(x, 两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.zeros.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.zeros.md index 386511e1fa4..4ff5673cb9d 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.zeros.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.zeros.md @@ -21,6 +21,7 @@ paddle.zeros(shape, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | *size | shape | 表示输出形状大小,PyTorch 以可变参数方式传入,Paddle 以 list 或 tuple 的方式传入,需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.manual_seed.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.manual_seed.md index 4f9882d9a72..2d81cba98bc 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.manual_seed.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.manual_seed.md @@ -15,6 +15,7 @@ paddle.seed(seed) 两者参数和用法完全一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | seed | seed | 要设置的的随机种子,两者参数和用法完全一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.random.get_rng_state.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.random.get_rng_state.md index c6457254159..342213ff97f 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.random.get_rng_state.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.random.get_rng_state.md @@ -15,6 +15,7 @@ paddle.get_rng_state() 其中 PyTorch 与 Paddle 的返回参数类型不一致 ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | Tensor | GeneratorState | 返回类型不一致, PyTorch 返回 torch.ByteTensor,Paddle 返回 GeneratorState 对象。需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.random.manual_seed.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.random.manual_seed.md index e5da96ab18b..c480e500781 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.random.manual_seed.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.random.manual_seed.md @@ -15,6 +15,7 @@ paddle.seed(seed) 两者参数和用法完全一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | seed | seed | 要设置的的随机种子,两者参数和用法完全一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.random.set_rng_state.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.random.set_rng_state.md index 9232b30e75e..f80c3610e77 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.random.set_rng_state.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.random.set_rng_state.md @@ -15,6 +15,7 @@ paddle.set_rng_state(state_list) 其中 PyTorch 与 Paddle 的输入参数类型不一致 ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | new_state | state_list | 表示需要设置的新状态,PyTorch 输入类型为 torch.ByteTensor, Paddle 为 list[GeneratorState], 需要转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.digamma.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.digamma.md index db962d5f031..7fc7d887e27 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.digamma.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.digamma.md @@ -14,6 +14,7 @@ paddle.digamma(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.erf.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.erf.md index 63635f3b8de..51ca2f6998e 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.erf.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.erf.md @@ -16,6 +16,7 @@ paddle.erf(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.expm1.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.expm1.md index cab4198dc54..141e1364b92 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.expm1.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.expm1.md @@ -16,6 +16,7 @@ paddle.expm1(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 该 OP 的输入为多维 Tensor。数据类型为:float16、float32、float64,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.log1p.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.log1p.md index f67cc8308c8..2c05add048b 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.log1p.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.log1p.md @@ -16,6 +16,7 @@ paddle.log1p(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.logsumexp.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.logsumexp.md index 1846e68e294..b5693594802 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.logsumexp.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.logsumexp.md @@ -13,6 +13,7 @@ paddle.logsumexp(x, axis=None, keepdim=False, name=None) PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入的 Tensor.仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.psi.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.psi.md index 8e9a40ca0c6..daf40a4b757 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.psi.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.psi.md @@ -14,6 +14,7 @@ paddle.digamma(x, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.softmax.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.softmax.md index 7434040b85a..383466744fa 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.softmax.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.special.softmax.md @@ -14,6 +14,7 @@ paddle.nn.functional.softmax(x, axis=- 1, dtype=None, name=None) 两者功能一致,仅参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------- | ------------ | --------------------------------------------- | | input | x | 表示输入 Tensor ,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/pytorch_api_mapping_format_cn.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/pytorch_api_mapping_format_cn.md index 1b94cc54305..59d655e373f 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/pytorch_api_mapping_format_cn.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/pytorch_api_mapping_format_cn.md @@ -441,6 +441,7 @@ paddle.nn.ClipGradByValue(max, 其中 PyTorch 与 Paddle 对该 API 的设计思路与⽤法不同,需要分析上下⽂并联动修改: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------- | ------------ | ---- | | parameters | - | 表示要操作的 Tensor, PyTorch 属于原位操作, PaddlePaddle ⽆此参数,需要实例化之后在 optimizer 中设置才可以使⽤。需要上下⽂分析与联动修改。| diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.nn.utils.remove_weight_norm.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.nn.utils.remove_weight_norm.md index a2a55634c3f..f072155dfce 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.nn.utils.remove_weight_norm.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.nn.utils.remove_weight_norm.md @@ -14,6 +14,7 @@ paddle.nn.utils.remove_weight_norm(layer, ``` 两者功能一致,参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | module | layer | 要添加权重归一化的层,参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.nn.utils.spectral_norm.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.nn.utils.spectral_norm.md index 8b8f7c24fe3..8fe5d7bc42a 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.nn.utils.spectral_norm.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.nn.utils.spectral_norm.md @@ -20,6 +20,7 @@ paddle.nn.utils.spectral_norm(layer, ``` 两者功能一致,参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | module | layer | 要添加权重谱归一化的层,参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.nn.utils.weight_norm.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.nn.utils.weight_norm.md index 25e6d8b3c0a..16bf324a62c 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.nn.utils.weight_norm.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.nn.utils.weight_norm.md @@ -16,6 +16,7 @@ paddle.nn.utils.weight_norm(layer, ``` 两者功能一致,参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | module | layer | 要添加权重归一化的层,参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.cpp_extension.BuildExtension.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.cpp_extension.BuildExtension.md index 91fe4643d6a..f73da7b8aab 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.cpp_extension.BuildExtension.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.cpp_extension.BuildExtension.md @@ -13,6 +13,7 @@ paddle.utils.cpp_extension.BuildExtension(*args, **kwargs) 参数完全一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | |*args | *args | 用于指定 BuildExtension 的其他参数,支持的参数与 setuptools.command.build_ext 一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.cpp_extension.BuildExtension.with_options.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.cpp_extension.BuildExtension.with_options.md index c1571b2ef2c..326d360a0af 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.cpp_extension.BuildExtension.with_options.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.cpp_extension.BuildExtension.with_options.md @@ -12,6 +12,7 @@ paddle.utils.cpp_extension.BuildExtension.with_options(**options) 参数完全一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | **options | **options | 用户自定义的选项 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.cpp_extension.CUDAExtension.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.cpp_extension.CUDAExtension.md index 0a5925dc0dd..3019617f8ef 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.cpp_extension.CUDAExtension.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.cpp_extension.CUDAExtension.md @@ -18,6 +18,7 @@ paddle.utils.cpp_extension.CUDAExtension(sources, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | name | - | 参数 name,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.cpp_extension.CppExtension.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.cpp_extension.CppExtension.md index b450ceaf125..17f204a7e97 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.cpp_extension.CppExtension.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.cpp_extension.CppExtension.md @@ -18,6 +18,7 @@ paddle.utils.cpp_extension.CppExtension(sources, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | name | - | 参数 name,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.cpp_extension.load.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.cpp_extension.load.md index 1c35c687498..349505f2d97 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.cpp_extension.load.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.cpp_extension.load.md @@ -31,6 +31,7 @@ paddle.utils.cpp_extension.load(name, PyTorch 相比 Paddle 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | name | name | 用于指定编译自定义 OP 时,生成的动态链接库的名字。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.data.BatchSampler.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.data.BatchSampler.md index ba5b57cc5e6..5e83743bcc2 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.data.BatchSampler.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.data.BatchSampler.md @@ -19,6 +19,7 @@ paddle.io.BatchSampler(dataset=None, 其中 Paddle 相比 PyTorch 支持更多其他参数,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | --------- | -------------| ---------- | | sampler | sampler | 底层取样器,PyTorch 可为 Sampler 或 Iterable 数据类型,Paddle 可为 Sampler 数据类型。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.data._utils.collate.default_collate.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.data._utils.collate.default_collate.md index 40034c1add0..723afbf9ecd 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.data._utils.collate.default_collate.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.data._utils.collate.default_collate.md @@ -13,6 +13,7 @@ paddle.io.dataloader.collate.default_collate_fn(batch) 返回参数类型不一致,需要转写。具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | batch | batch | 输入的用于组 batch 的数据。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.data.dataloader.default_collate.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.data.dataloader.default_collate.md index 338f59c08fc..aa3ec3ddc31 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.data.dataloader.default_collate.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.data.dataloader.default_collate.md @@ -13,6 +13,7 @@ paddle.io.dataloader.collate.default_collate_fn(batch) 返回参数类型不一致,需要转写。具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | batch | batch | 输入的用于组 batch 的数据。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.data.default_collate.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.data.default_collate.md index 8213550390d..59849d92b35 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.data.default_collate.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.data.default_collate.md @@ -13,6 +13,7 @@ paddle.io.dataloader.collate.default_collate_fn(batch) 返回参数类型不一致,需要转写。具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | batch | batch | 输入的用于组 batch 的数据。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.dlpack.from_dlpack.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.dlpack.from_dlpack.md index f11807e803b..6058d9b2dd8 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.dlpack.from_dlpack.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.dlpack.from_dlpack.md @@ -13,6 +13,7 @@ paddle.utils.dlpack.from_dlpack(dlpack) 两者功能一致,参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | ext_tensor | dlpack | DLPack,即带有 dltensor 的 PyCapsule 对象,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.dlpack.to_dlpack.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.dlpack.to_dlpack.md index ddafb757479..70798832ea5 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.dlpack.to_dlpack.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/utils/torch.utils.dlpack.to_dlpack.md @@ -13,6 +13,7 @@ paddle.utils.dlpack.to_dlpack(x) 两者功能一致,参数名不一致,具体如下: ### 参数映射 + | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | tensor | x | Paddle Tensor,仅参数名不一致。 |