diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.fmod.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.fmod.md deleted file mode 100644 index 2ca09cc2654..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.fmod.md +++ /dev/null @@ -1,37 +0,0 @@ -## [ 输入参数类型一致 ]torch.Tensor.fmod -### [torch.Tensor.fmod](https://docs.pytorch.org/docs/stable/generated/torch.Tensor.fmod.html#torch.Tensor.fmod) -```python -torch.Tensor.fmod(other) -``` - -### [paddle.Tensor.fmod](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#fmod) -```python -paddle.Tensor.fmod(y, name=None) -``` - -PyTorch 与 Paddle 的 `other` 参数所支持类型一致,均支持 Tensor 和 Python Number 类型。 - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ----------------------------- | -| other | y | 多维 Tensor 或 Python Number,两者均支持。 | - -### 转写示例 -#### other 为 Tensor -```python -# PyTorch 写法 -result = x.fmod(other=y) - -# Paddle 写法 -result = x.fmod(y=y) -``` - -#### other 为标量 -```python -# PyTorch 写法 -result = x.fmod(other=2.) - -# Paddle 写法 -result = x.fmod(y=2.) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.fmod_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.fmod_.md deleted file mode 100644 index 338745e88c2..00000000000 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/input_args_type_diff/torch.Tensor.fmod_.md +++ /dev/null @@ -1,37 +0,0 @@ -## [ 输入参数类型一致 ]torch.Tensor.fmod_ -### [torch.Tensor.fmod\_](https://docs.pytorch.org/docs/stable/generated/torch.Tensor.fmod_.html#torch.Tensor.fmod_) -```python -torch.Tensor.fmod_(other) -``` - -### [paddle.Tensor.fmod\_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#fmod) -```python -paddle.Tensor.fmod_(y, name=None) -``` - -PyTorch 与 Paddle 的 `other` 参数所支持类型一致,均支持 Tensor 和 Python Number 类型。 - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------- | ------------ | ----------------------------- | -| other | y | 多维 Tensor 或 Python Number,两者均支持。 | - -### 转写示例 -#### other 为 Tensor -```python -# PyTorch 写法 -x.fmod_(other=y) - -# Paddle 写法 -x.fmod_(y=y) -``` - -#### other 为标量 -```python -# PyTorch 写法 -x.fmod_(other=2.) - -# Paddle 写法 -x.fmod_(y=2.) -``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_only_diff/torch.Tensor.imag.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_only_diff/torch.Tensor.imag.md index 76451682258..b62c103f114 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_only_diff/torch.Tensor.imag.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_only_diff/torch.Tensor.imag.md @@ -1,4 +1,4 @@ -## [ API 完全一致 ]torch.Tensor.imag +## [ 仅 API 调用方式不一致 ]torch.Tensor.imag ### [torch.Tensor.imag](https://docs.pytorch.org/docs/stable/generated/torch.Tensor.imag.html#torch.Tensor.imag) @@ -9,10 +9,10 @@ torch.Tensor.imag ### [paddle.Tensor.imag](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor__upper_cn.html#imag-name-none) ```python -paddle.Tensor.imag +paddle.Tensor.imag(name=None) ``` -两者功能一致,调用方式完全一致,无需转写。 +两者功能一致,但调用方式不一致,具体如下: ### 转写示例 @@ -21,5 +21,5 @@ paddle.Tensor.imag result = src.imag # Paddle 写法 -result = src.imag +result = src.imag() ``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_only_diff/torch.Tensor.real.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_only_diff/torch.Tensor.real.md index d6f3c036a42..63075a4e2d7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_only_diff/torch.Tensor.real.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/invok_only_diff/torch.Tensor.real.md @@ -1,4 +1,4 @@ -## [ API 完全一致 ]torch.Tensor.real +## [ 仅 API 调用方式不一致 ]torch.Tensor.real ### [torch.Tensor.real](https://docs.pytorch.org/docs/stable/generated/torch.Tensor.real.html#torch.Tensor.real) @@ -9,10 +9,10 @@ torch.Tensor.real ### [paddle.Tensor.real](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor__upper_cn.html#real-name-none) ```python -paddle.Tensor.real +paddle.Tensor.real(name=None) ``` -两者功能一致,调用方式完全一致,无需转写。 +两者功能一致,但调用方式不一致,具体如下: ### 转写示例 @@ -21,5 +21,5 @@ paddle.Tensor.real result = src.real # Paddle 写法 -result = src.real +result = src.real() ```