diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.arcsinh.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.arcsinh.md new file mode 100644 index 00000000000..3cf89877718 --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.arcsinh.md @@ -0,0 +1,15 @@ +## [ 无参数 ]torch.Tensor.arcsinh + +### [torch.Tensor.arcsinh](https://pytorch.org/docs/stable/generated/torch.Tensor.arcsinh) + +```python +torch.Tensor.arcsinh() +``` + +### [paddle.Tensor.asinh]() + +```python +paddle.Tensor.asinh() +``` + +两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.asinh.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.asinh.md new file mode 100644 index 00000000000..f8c9859ff6a --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.asinh.md @@ -0,0 +1,15 @@ +## [ 无参数 ]torch.Tensor.asinh + +### [torch.Tensor.asinh](https://pytorch.org/docs/stable/generated/torch.Tensor.asinh) + +```python +torch.Tensor.asinh() +``` + +### [paddle.Tensor.asinh]() + +```python +paddle.Tensor.asinh() +``` + +两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.rsqrt.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.rsqrt.md new file mode 100644 index 00000000000..a40ca35c389 --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.rsqrt.md @@ -0,0 +1,15 @@ +## [ 无参数 ] torch.Tensor.rsqrt + +### [ torch.Tensor.rsqrt](https://pytorch.org/docs/stable/generated/torch.Tensor.rsqrt) + +```python +torch.Tensor.rsqrt() +``` + +### [paddle.Tensor.rsqrt](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#rsqrt-name-none) + +```python +paddle.Tensor.rsqrt() +``` + +两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.rsqrt_.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.rsqrt_.md new file mode 100644 index 00000000000..7e6c5ca8e31 --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.rsqrt_.md @@ -0,0 +1,15 @@ +## [ 无参数 ]torch.Tensor.rsqrt_ + +### [torch.Tensor.rsqrt_](https://pytorch.org/docs/stable/generated/torch.Tensor.rsqrt_) + +```python +torch.Tensor.rsqrt_() +``` + +### [paddle.Tensor.rsqrt_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#id15) + +```python +paddle.Tensor.rsqrt_() +``` + +两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.select.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.select.md new file mode 100644 index 00000000000..5a65f9638df --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.select.md @@ -0,0 +1,22 @@ +## [ 仅参数名不一致 ]torch.Tensor.select + +### [torch.Tensor.select](https://pytorch.org/docs/stable/generated/torch.Tensor.select.html?highlight=select#torch.Tensor.select) + +```python +torch.Tensor.select(dim, index) +``` + +### [paddle.index_select](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#index-select-index-axis-0-name-none) + +```python +paddle.Tensor.index_select(index, axis=0, name=None) +``` + +两者功能一致且参数用法一致,仅参数名不一致,具体如下: + +### 参数映射 + +| PyTorch | PaddlePaddle | 备注 | +| ------------- | ------------ | ------------------------------------------------------ | +| dim | axis | 指定进行运算的轴,仅参数名不同。 | +| index | index | 包含索引下标的 1-D Tensor | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sigmoid.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sigmoid.md index 59519b6cdef..a2df16cc2c2 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sigmoid.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sigmoid.md @@ -1,24 +1,15 @@ -## torch.Tensor.sigmoid -### [torch.Tensor.sigmoid](https://pytorch.org/docs/stable/generated/torch.Tensor.sigmoid.html?highlight=torch+sigmoid#torch.Tensor.sigmoid) +## [ 无参数 ]torch.Tensor.sigmoid + +### [torch.Tensor.sigmoid](https://pytorch.org/docs/stable/generated/torch.Tensor.sigmoid) ```python torch.Tensor.sigmoid() ``` -### [paddle.nn.functional.sigmoid](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/functional/sigmoid_cn.html) +### [paddle.Tensor.sigmoid]() ```python -paddle.nn.functional.sigmoid(x, name=None) +paddle.Tensor.sigmoid() ``` -两者功能一致,参数一致,但 torch 是类成员方式,paddle 是 funtion 调用方式。 - -### 转写示例 - -```python -# torch 写法 -x.sigmoid() - -# paddle 写法 -paddle.nn.functional.sigmoid(x) -``` +两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sign.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sign.md new file mode 100644 index 00000000000..dfda02114eb --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sign.md @@ -0,0 +1,15 @@ +## [ 无参数 ]torch.Tensor.sign + +### [torch.Tensor.sign](https://pytorch.org/docs/stable/generated/torch.Tensor.sign) + +```python +torch.Tensor.sign() +``` + +### [paddle.Tensor.sign](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#sign-name-none) + +```python +paddle.Tensor.sign() +``` + +两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sin.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sin.md new file mode 100644 index 00000000000..085dac59dc9 --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sin.md @@ -0,0 +1,15 @@ +## [ 无参数 ]torch.Tensor.sin + +### [torch.Tensor.sin](https://pytorch.org/docs/stable/generated/torch.Tensor.sin) + +```python +torch.Tensor.sin() +``` + +### [paddle.Tensor.sin](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#sin-name-none) + +```python +paddle.Tensor.sin() +``` + +两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sinh.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sinh.md new file mode 100644 index 00000000000..634c33bfd5e --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sinh.md @@ -0,0 +1,15 @@ +## [ 无参数 ]torch.Tensor.sinh + +### [torch.Tensor.sinh](https://pytorch.org/docs/1.13/generated/torch.Tensor.sinh.html?highlight=torch+tensor+sinh#torch.Tensor.sinh) + +```python +torch.Tensor.sinh() +``` + +### [paddle.Tensor.sinh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#sinh-name-none) + +```python +paddle.Tensor.sinh() +``` + +两者功能一致,均无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.slogdet.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.slogdet.md new file mode 100644 index 00000000000..33b2591974f --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.slogdet.md @@ -0,0 +1,15 @@ +## [ 无参数 ]torch.Tensor.slogdet + +### [torch.Tensor.slogdet](https://pytorch.org/docs/stable/generated/torch.Tensor.slogdet.html?highlight=torch+tensor+slogdet#torch.Tensor.slogdet) + +```python +torch.Tensor.slogdet() +``` + +### [paddle.linalg.slogdet](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/slogdet_cn.html) + +```python +paddle.linalg.slogdet(x) +``` + +两者功能一致,均无参数。