From 7800705bf0db17aa6ea993ba6f94b01125fc495f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8F=E5=9B=BE=E5=A3=AB?= <1291731089@qq.com> Date: Wed, 15 Mar 2023 21:09:04 +0800 Subject: [PATCH 1/6] =?UTF-8?q?'=E6=8F=90=E4=BA=A4api=E6=98=A0=E5=B0=84?= =?UTF-8?q?=E6=96=87=E6=A1=A3=EF=BC=88=E7=AC=AC20=E7=BB=84api=EF=BC=89'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Tensor/torch.Tensor.arcsinh.md | 22 ++++++++++++++++++ .../Tensor/torch.Tensor.asinh.md | 22 ++++++++++++++++++ .../Tensor/torch.Tensor.rsqrt.md | 22 ++++++++++++++++++ .../Tensor/torch.Tensor.rsqrt_.md | 22 ++++++++++++++++++ .../Tensor/torch.Tensor.select.md | 23 +++++++++++++++++++ .../Tensor/torch.Tensor.sigmoid.md | 22 ++++++++++++++++++ .../Tensor/torch.Tensor.sign.md | 22 ++++++++++++++++++ .../api_difference/Tensor/torch.Tensor.sin.md | 22 ++++++++++++++++++ .../Tensor/torch.Tensor.sinh.md | 22 ++++++++++++++++++ .../Tensor/torch.Tensor.slogdet.md | 21 +++++++++++++++++ 10 files changed, 220 insertions(+) create mode 100644 docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.arcsinh.md create mode 100644 docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.asinh.md create mode 100644 docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.rsqrt.md create mode 100644 docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.rsqrt_.md create mode 100644 docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.select.md create mode 100644 docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sigmoid.md create mode 100644 docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sign.md create mode 100644 docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sin.md create mode 100644 docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sinh.md create mode 100644 docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.slogdet.md 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..8b36ff7db17 --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.arcsinh.md @@ -0,0 +1,22 @@ +## [ torch 参数更多 ]torch.Tensor.arcsinh + +### [torch.Tensor.arcsinh](https://pytorch.org/docs/stable/generated/torch.Tensor.arcsinh) + +```python +torch.arcsinh(input, *, out=None) +``` + +### [paddle.asinh](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/asinh_cn.html) + +```python +paddle.asinh(x, name=None) +``` + +其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下: + +### 参数映射 + +| PyTorch | PaddlePaddle | 备注 | +| ------------- | ------------ | ------------------------------------------------------ | +| input | x | 表示输入的 Tensor ,仅参数名不同。 | +| out | - | 表示输出 Tensor 。 | 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..37e757f9c16 --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.asinh.md @@ -0,0 +1,22 @@ +## [ torch 参数更多 ]torch.Tensor.asinh + +### [torch.Tensor.asinh](https://pytorch.org/docs/stable/generated/torch.Tensor.asinh) + +```python +torch.asinh(input, *, out=None) +``` + +### [paddle.asinh](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/asinh_cn.html#paddle.asinh) + +```python +paddle.asinh(x, name=None) +``` + +其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下: + +### 参数映射 + +| PyTorch | PaddlePaddle | 备注 | +| ------------- | ------------ | ------------------------------------------------------ | +| input | x | 表示输入的 Tensor ,仅参数名不同。 | +| out | - | 表示输出 Tensor 。 | 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..1ccd1ef171c --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.rsqrt.md @@ -0,0 +1,22 @@ +## [ torch 参数更多 ] torch.Tensor.rsqrt + +### [ torch.Tensor.rsqrt](https://pytorch.org/docs/stable/generated/torch.Tensor.rsqrt) + +```python +torch.rsqrt(input, *, out=None) +``` + +### [paddle.rsqrt](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/rsqrt_cn.html) + +```python +paddle.rsqrt(x, name=None) +``` + +其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下: + +### 参数映射 + +| PyTorch | PaddlePaddle | 备注 | +| ------------- | ------------ | ------------------------------------------------------ | +| input | x | 表示输入的 Tensor ,仅参数名不同。 | +| out | - | 表示输出 Tensor 。 | 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..bca5afb3c19 --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.rsqrt_.md @@ -0,0 +1,22 @@ +## [ torch 参数更多 ]torch.Tensor.rsqrt_ + +### [torch.Tensor.rsqrt_](https://pytorch.org/docs/stable/generated/torch.Tensor.rsqrt_) + +```python +torch.rsqrt_(input, *, out=None) +``` + +### [paddle.rsqrt_](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/rsqrt_cn.html) + +```python +paddle.rsqrt(x, name=None) +``` + +其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下: + +### 参数映射 + +| PyTorch | PaddlePaddle | 备注 | +| ------------- | ------------ | ------------------------------------------------------ | +| input | x | 表示输入的 Tensor ,仅参数名不同。 | +| out | - | 表示输出 Tensor 。 | 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..f62b4509819 --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.select.md @@ -0,0 +1,23 @@ +## [ torch 参数更多 ]torch.Tensor.select + +### [torch.Tensor.select](https://pytorch.org/docs/stable/generated/torch.Tensor.select) + +```python +torch.select(input, dim, index) +``` + +### [paddle.index_select](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/index_select_cn.html#index-select) + +```python +paddle.index_select(x, index, axis=0, name=None) +``` + +其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下: + +### 参数映射 + +| PyTorch | PaddlePaddle | 备注 | +| ------------- | ------------ | ------------------------------------------------------ | +| input | x | 表示输入的 Tensor ,仅参数名不同。 | +| dim | axis | 指定进行运算的轴,仅参数名不同。 | +| 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 new file mode 100644 index 00000000000..f5f463f5954 --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sigmoid.md @@ -0,0 +1,22 @@ +## [ torch 参数更多 ]torch.Tensor.sigmoid + +### [torch.Tensor.sigmoid](https://pytorch.org/docs/stable/generated/torch.Tensor.sigmoid) + +```python +torch.sigmoid(input, *, out=None) +``` + +### [paddle.nn.functional.sigmoid](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/asinh_cn.html) + +```python +paddle.nn.functional.sigmoid(x, name=None) +``` + +其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下: + +### 参数映射 + +| PyTorch | PaddlePaddle | 备注 | +| ------------- | ------------ | ------------------------------------------------------ | +| input | x | 表示输入的 Tensor ,仅参数名不同。 | +| out | - | 表示输出 Tensor 。 | 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..4feb4f47574 --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sign.md @@ -0,0 +1,22 @@ +## [ torch 参数更多 ]torch.Tensor.sign + +### [torch.Tensor.sign](https://pytorch.org/docs/stable/generated/torch.Tensor.sign) + +```python +torch.sign(input, *, out=None) +``` + +### [paddle.sign](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/sign_cn.html) + +```python +paddle.sign(x, name=None) +``` + +其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下: + +### 参数映射 + +| PyTorch | PaddlePaddle | 备注 | +| ------------- | ------------ | ------------------------------------------------------ | +| input | x | 表示输入的 Tensor ,仅参数名不同。 | +| out | - | 表示输出 Tensor 。 | 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..1658f06e625 --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sin.md @@ -0,0 +1,22 @@ +## [ torch 参数更多 ]torch.Tensor.sin + +### [torch.Tensor.sin](https://pytorch.org/docs/stable/generated/torch.Tensor.sin) + +```python +torch.sin(input, *, out=None) +``` + +### [paddle.sin](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/sin_cn.html) + +```python +paddle.sin(x, name=None) +``` + +其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下: + +### 参数映射 + +| PyTorch | PaddlePaddle | 备注 | +| ------------- | ------------ | ------------------------------------------------------ | +| input | x | 表示输入的 Tensor ,仅参数名不同。 | +| out | - | 表示输出 Tensor 。 | 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..7c8ee45dcc7 --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.sinh.md @@ -0,0 +1,22 @@ +## [ torch 参数更多 ]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.sinh(input, *, out=None) +``` + +### [paddle.sinh](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/sinh_cn.html) + +```python +paddle.sinh(x, name=None) +``` + +其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下: + +### 参数映射 + +| PyTorch | PaddlePaddle | 备注 | +| ------------- | ------------ | ------------------------------------------------------ | +| input | x | 表示输入的 Tensor ,仅参数名不同。 | +| out | - | 表示输出 Tensor 。 | 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..b914faec895 --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.slogdet.md @@ -0,0 +1,21 @@ +## [ 仅参数名不一致 ]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.slogdet(input) +``` + +### [paddle.nn.functional.sigmoid](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/functional/sigmoid_cn.html#paddle.nn.functional.sigmoid) + +```python +paddle.nn.functional.sigmoid(x, name=None) +``` + +两者功能一致且参数用法一致,仅参数名不同,具体如下: + +### 参数映射 + +| PyTorch | PaddlePaddle | 备注 | +| ------------- | ------------ | ------------------------------------------------------ | +| input | x | 表示输入的 Tensor ,仅参数名不同。 | From 83ab4338d8f6ff118b142cae83e022b123f2c644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8F=E5=9B=BE=E5=A3=AB?= <1291731089@qq.com> Date: Wed, 15 Mar 2023 22:43:30 +0800 Subject: [PATCH 2/6] =?UTF-8?q?'=E6=98=A0=E5=B0=84=E6=96=87=E6=A1=A3?= =?UTF-8?q?=EF=BC=8820=E7=BB=84=EF=BC=89'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api_difference/Tensor/torch.Tensor.arcsinh.md | 2 +- .../api_difference/Tensor/torch.Tensor.asinh.md | 2 +- .../api_difference/Tensor/torch.Tensor.rsqrt.md | 2 +- .../api_difference/Tensor/torch.Tensor.rsqrt_.md | 4 ++-- .../api_difference/Tensor/torch.Tensor.select.md | 2 +- .../api_difference/Tensor/torch.Tensor.sigmoid.md | 2 +- .../api_difference/Tensor/torch.Tensor.sign.md | 2 +- .../api_difference/Tensor/torch.Tensor.sin.md | 4 ++-- .../api_difference/Tensor/torch.Tensor.sinh.md | 2 +- .../api_difference/Tensor/torch.Tensor.slogdet.md | 4 ++-- 10 files changed, 13 insertions(+), 13 deletions(-) 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 index 8b36ff7db17..f7d723758cc 100644 --- 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 @@ -6,7 +6,7 @@ torch.arcsinh(input, *, out=None) ``` -### [paddle.asinh](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/asinh_cn.html) +### [paddle.asinh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/asinh_cn.html) ```python paddle.asinh(x, name=None) 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 index 37e757f9c16..77aea128641 100644 --- 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 @@ -6,7 +6,7 @@ torch.asinh(input, *, out=None) ``` -### [paddle.asinh](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/asinh_cn.html#paddle.asinh) +### [paddle.asinh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/asinh_cn.html) ```python paddle.asinh(x, name=None) 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 index 1ccd1ef171c..7e5b6719fb3 100644 --- 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 @@ -6,7 +6,7 @@ torch.rsqrt(input, *, out=None) ``` -### [paddle.rsqrt](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/rsqrt_cn.html) +### [paddle.rsqrt](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/rsqrt_cn.html) ```python paddle.rsqrt(x, name=None) 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 index bca5afb3c19..2b3e1d903d3 100644 --- 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 @@ -6,10 +6,10 @@ torch.rsqrt_(input, *, out=None) ``` -### [paddle.rsqrt_](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/rsqrt_cn.html) +### [paddle.rsqrt_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/rsqrt__cn.html) ```python -paddle.rsqrt(x, name=None) +paddle.rsqrt_(x, name=None) ``` 其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下: 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 index f62b4509819..647667e4f3b 100644 --- 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 @@ -6,7 +6,7 @@ torch.select(input, dim, index) ``` -### [paddle.index_select](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/index_select_cn.html#index-select) +### [paddle.index_select](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/index_select_cn.html) ```python paddle.index_select(x, index, axis=0, name=None) 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 f5f463f5954..b6b4b09ca96 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 @@ -6,7 +6,7 @@ torch.sigmoid(input, *, out=None) ``` -### [paddle.nn.functional.sigmoid](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/asinh_cn.html) +### [paddle.nn.functional.sigmoid](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/sigmoid_cn.html) ```python paddle.nn.functional.sigmoid(x, name=None) 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 index 4feb4f47574..70d796025d2 100644 --- 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 @@ -6,7 +6,7 @@ torch.sign(input, *, out=None) ``` -### [paddle.sign](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/sign_cn.html) +### [paddle.sign](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sign_cn.html) ```python paddle.sign(x, name=None) 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 index 1658f06e625..f966b412748 100644 --- 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 @@ -3,10 +3,10 @@ ### [torch.Tensor.sin](https://pytorch.org/docs/stable/generated/torch.Tensor.sin) ```python -torch.sin(input, *, out=None) +torch.sinh(input, *, out=None) ``` -### [paddle.sin](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/sin_cn.html) +### [paddle.sin](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sin_cn.html) ```python paddle.sin(x, name=None) 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 index 7c8ee45dcc7..1b06244ebe3 100644 --- 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 @@ -6,7 +6,7 @@ torch.sinh(input, *, out=None) ``` -### [paddle.sinh](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/sinh_cn.html) +### [paddle.sinh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sinh_cn.html) ```python paddle.sinh(x, name=None) 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 b914faec895..515ae0d2bf7 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 @@ -6,10 +6,10 @@ torch.slogdet(input) ``` -### [paddle.nn.functional.sigmoid](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/functional/sigmoid_cn.html#paddle.nn.functional.sigmoid) +### [paddle.linalg.slogdet(x)](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/slogdet_cn.html) ```python -paddle.nn.functional.sigmoid(x, name=None) +paddle.linalg.slogdet(x) ``` 两者功能一致且参数用法一致,仅参数名不同,具体如下: From d281cf5a6e45a85263f26337705dd14c732162c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8F=E5=9B=BE=E5=A3=AB?= <1291731089@qq.com> Date: Thu, 30 Mar 2023 15:03:55 +0800 Subject: [PATCH 3/6] =?UTF-8?q?'=E6=8C=89=E4=BF=AE=E6=94=B9=E6=84=8F?= =?UTF-8?q?=E8=A7=81=E8=BF=9B=E8=A1=8C=E4=BA=86=E4=BF=AE=E6=94=B9'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Tensor/torch.Tensor.arcsinh.md | 17 +++++------------ .../api_difference/Tensor/torch.Tensor.asinh.md | 17 +++++------------ .../api_difference/Tensor/torch.Tensor.rsqrt.md | 17 +++++------------ .../Tensor/torch.Tensor.rsqrt_.md | 17 +++++------------ .../Tensor/torch.Tensor.select.md | 9 ++++----- .../Tensor/torch.Tensor.sigmoid.md | 17 +++++------------ .../api_difference/Tensor/torch.Tensor.sign.md | 17 +++++------------ .../api_difference/Tensor/torch.Tensor.sin.md | 17 +++++------------ .../api_difference/Tensor/torch.Tensor.sinh.md | 17 +++++------------ .../Tensor/torch.Tensor.slogdet.md | 16 +++++----------- 10 files changed, 49 insertions(+), 112 deletions(-) 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 index f7d723758cc..4ad4b63d407 100644 --- 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 @@ -1,22 +1,15 @@ -## [ torch 参数更多 ]torch.Tensor.arcsinh +## [ 无参数 ]torch.Tensor.arcsinh ### [torch.Tensor.arcsinh](https://pytorch.org/docs/stable/generated/torch.Tensor.arcsinh) ```python -torch.arcsinh(input, *, out=None) +torch.Tensor.arcsin() ``` -### [paddle.asinh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/asinh_cn.html) +### [paddle.Tensor.asinh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#asinh-name-none) ```python -paddle.asinh(x, name=None) +paddle.Tensor.asinh() ``` -其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不同。 | -| out | - | 表示输出 Tensor 。 | +两者功能一致,均无参数。 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 index 77aea128641..a38b5816328 100644 --- 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 @@ -1,22 +1,15 @@ -## [ torch 参数更多 ]torch.Tensor.asinh +## [ 无参数 ]torch.Tensor.asinh ### [torch.Tensor.asinh](https://pytorch.org/docs/stable/generated/torch.Tensor.asinh) ```python -torch.asinh(input, *, out=None) +torch.Tensor.asinh() ``` -### [paddle.asinh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/asinh_cn.html) +### [paddle.Tensor.asinh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#asinh-name-none) ```python -paddle.asinh(x, name=None) +paddle.Tensor.asinh() ``` -其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不同。 | -| out | - | 表示输出 Tensor 。 | +两者功能一致,均无参数。 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 index 7e5b6719fb3..a40ca35c389 100644 --- 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 @@ -1,22 +1,15 @@ -## [ torch 参数更多 ] torch.Tensor.rsqrt +## [ 无参数 ] torch.Tensor.rsqrt ### [ torch.Tensor.rsqrt](https://pytorch.org/docs/stable/generated/torch.Tensor.rsqrt) ```python -torch.rsqrt(input, *, out=None) +torch.Tensor.rsqrt() ``` -### [paddle.rsqrt](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/rsqrt_cn.html) +### [paddle.Tensor.rsqrt](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#rsqrt-name-none) ```python -paddle.rsqrt(x, name=None) +paddle.Tensor.rsqrt() ``` -其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不同。 | -| out | - | 表示输出 Tensor 。 | +两者功能一致,均无参数。 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 index 2b3e1d903d3..7e6c5ca8e31 100644 --- 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 @@ -1,22 +1,15 @@ -## [ torch 参数更多 ]torch.Tensor.rsqrt_ +## [ 无参数 ]torch.Tensor.rsqrt_ ### [torch.Tensor.rsqrt_](https://pytorch.org/docs/stable/generated/torch.Tensor.rsqrt_) ```python -torch.rsqrt_(input, *, out=None) +torch.Tensor.rsqrt_() ``` -### [paddle.rsqrt_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/rsqrt__cn.html) +### [paddle.Tensor.rsqrt_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#id15) ```python -paddle.rsqrt_(x, name=None) +paddle.Tensor.rsqrt_() ``` -其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不同。 | -| out | - | 表示输出 Tensor 。 | +两者功能一致,均无参数。 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 index 647667e4f3b..3f67dab7a6a 100644 --- 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 @@ -1,15 +1,15 @@ ## [ torch 参数更多 ]torch.Tensor.select -### [torch.Tensor.select](https://pytorch.org/docs/stable/generated/torch.Tensor.select) +### [torch.Tensor.select](https://pytorch.org/docs/stable/generated/torch.Tensor.select.html?highlight=select#torch.Tensor.select) ```python -torch.select(input, dim, index) +torch.Tensor.select(dim, index) ``` -### [paddle.index_select](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/index_select_cn.html) +### [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.index_select(x, index, axis=0, name=None) +paddle.Tensor.index_select(index, axis=0, name=None) ``` 其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下: @@ -18,6 +18,5 @@ paddle.index_select(x, index, axis=0, name=None) | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不同。 | | 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 b6b4b09ca96..023562a35f6 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,22 +1,15 @@ -## [ torch 参数更多 ]torch.Tensor.sigmoid +## [ 无参数 ]torch.Tensor.sigmoid ### [torch.Tensor.sigmoid](https://pytorch.org/docs/stable/generated/torch.Tensor.sigmoid) ```python -torch.sigmoid(input, *, out=None) +torch.Tensor.sigmoid() ``` -### [paddle.nn.functional.sigmoid](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/sigmoid_cn.html) +### [paddle.Tensor.sigmoid](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor/sigmoid_cn.html) ```python -paddle.nn.functional.sigmoid(x, name=None) +paddle.Tensor.sigmoid() ``` -其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不同。 | -| out | - | 表示输出 Tensor 。 | +两者功能一致,均无参数。 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 index 70d796025d2..dfda02114eb 100644 --- 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 @@ -1,22 +1,15 @@ -## [ torch 参数更多 ]torch.Tensor.sign +## [ 无参数 ]torch.Tensor.sign ### [torch.Tensor.sign](https://pytorch.org/docs/stable/generated/torch.Tensor.sign) ```python -torch.sign(input, *, out=None) +torch.Tensor.sign() ``` -### [paddle.sign](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sign_cn.html) +### [paddle.Tensor.sign](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#sign-name-none) ```python -paddle.sign(x, name=None) +paddle.Tensor.sign() ``` -其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不同。 | -| out | - | 表示输出 Tensor 。 | +两者功能一致,均无参数。 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 index f966b412748..085dac59dc9 100644 --- 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 @@ -1,22 +1,15 @@ -## [ torch 参数更多 ]torch.Tensor.sin +## [ 无参数 ]torch.Tensor.sin ### [torch.Tensor.sin](https://pytorch.org/docs/stable/generated/torch.Tensor.sin) ```python -torch.sinh(input, *, out=None) +torch.Tensor.sin() ``` -### [paddle.sin](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sin_cn.html) +### [paddle.Tensor.sin](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#sin-name-none) ```python -paddle.sin(x, name=None) +paddle.Tensor.sin() ``` -其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不同。 | -| out | - | 表示输出 Tensor 。 | +两者功能一致,均无参数。 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 index 1b06244ebe3..634c33bfd5e 100644 --- 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 @@ -1,22 +1,15 @@ -## [ torch 参数更多 ]torch.Tensor.sinh +## [ 无参数 ]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.sinh(input, *, out=None) +torch.Tensor.sinh() ``` -### [paddle.sinh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sinh_cn.html) +### [paddle.Tensor.sinh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#sinh-name-none) ```python -paddle.sinh(x, name=None) +paddle.Tensor.sinh() ``` -其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不同。 | -| out | - | 表示输出 Tensor 。 | +两者功能一致,均无参数。 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 515ae0d2bf7..692395384e4 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 @@ -1,21 +1,15 @@ -## [ 仅参数名不一致 ]torch.Tensor.slogdet +## [ 无参数 ]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.slogdet(input) +torch.Tensor.slogdet() ``` -### [paddle.linalg.slogdet(x)](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/slogdet_cn.html) +### [paddle.Tensor.slogdet](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#slogdet-name-none) ```python -paddle.linalg.slogdet(x) +paddle.Tensor.slogdet() ``` -两者功能一致且参数用法一致,仅参数名不同,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -| ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor ,仅参数名不同。 | +两者功能一致,均无参数。 From cc6b423eb1d08ae471e46bb84da41ce5ceebe3e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8F=E5=9B=BE=E5=A3=AB?= <1291731089@qq.com> Date: Thu, 6 Apr 2023 21:05:55 +0800 Subject: [PATCH 4/6] =?UTF-8?q?'=E6=8C=89=E6=84=8F=E8=A7=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=90=8E=E6=8F=90=E4=BA=A4'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api_difference/Tensor/torch.Tensor.arcsinh.md | 2 +- .../api_difference/Tensor/torch.Tensor.select.md | 4 ++-- .../api_difference/Tensor/torch.Tensor.sigmoid.md | 2 +- .../api_difference/Tensor/torch.Tensor.slogdet.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) 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 index 4ad4b63d407..410f9d3a27a 100644 --- 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 @@ -3,7 +3,7 @@ ### [torch.Tensor.arcsinh](https://pytorch.org/docs/stable/generated/torch.Tensor.arcsinh) ```python -torch.Tensor.arcsin() +torch.Tensor.arcsinh() ``` ### [paddle.Tensor.asinh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#asinh-name-none) 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 index 3f67dab7a6a..5a65f9638df 100644 --- 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 @@ -1,4 +1,4 @@ -## [ torch 参数更多 ]torch.Tensor.select +## [ 仅参数名不一致 ]torch.Tensor.select ### [torch.Tensor.select](https://pytorch.org/docs/stable/generated/torch.Tensor.select.html?highlight=select#torch.Tensor.select) @@ -12,7 +12,7 @@ torch.Tensor.select(dim, index) paddle.Tensor.index_select(index, axis=0, name=None) ``` -其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下: +两者功能一致且参数用法一致,仅参数名不一致,具体如下: ### 参数映射 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 023562a35f6..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 @@ -6,7 +6,7 @@ torch.Tensor.sigmoid() ``` -### [paddle.Tensor.sigmoid](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor/sigmoid_cn.html) +### [paddle.Tensor.sigmoid]() ```python paddle.Tensor.sigmoid() 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 692395384e4..9127de2e797 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 @@ -6,7 +6,7 @@ torch.Tensor.slogdet() ``` -### [paddle.Tensor.slogdet](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#slogdet-name-none) +### [paddle.Tensor.slogdet]() ```python paddle.Tensor.slogdet() From 0410918260d4b2ecc6eea20a0be859a203ec30e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8F=E5=9B=BE=E5=A3=AB?= <1291731089@qq.com> Date: Fri, 7 Apr 2023 15:48:00 +0800 Subject: [PATCH 5/6] =?UTF-8?q?'=E6=8C=89=E4=BF=AE=E6=94=B9=E6=84=8F?= =?UTF-8?q?=E8=A7=81=E4=BF=AE=E6=94=B9=E5=90=8E=E6=8F=90=E4=BA=A4'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api_difference/Tensor/torch.Tensor.arcsinh.md | 2 +- .../api_difference/Tensor/torch.Tensor.asinh.md | 2 +- .../api_difference/Tensor/torch.Tensor.slogdet.md | 14 ++++++++++---- 3 files changed, 12 insertions(+), 6 deletions(-) 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 index 410f9d3a27a..3cf89877718 100644 --- 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 @@ -6,7 +6,7 @@ torch.Tensor.arcsinh() ``` -### [paddle.Tensor.asinh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#asinh-name-none) +### [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 index a38b5816328..f8c9859ff6a 100644 --- 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 @@ -6,7 +6,7 @@ torch.Tensor.asinh() ``` -### [paddle.Tensor.asinh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#asinh-name-none) +### [paddle.Tensor.asinh]() ```python paddle.Tensor.asinh() 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 9127de2e797..b31212e43ed 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 @@ -1,4 +1,4 @@ -## [ 无参数 ]torch.Tensor.slogdet +## [ 仅 paddle 参数更多 ]torch.Tensor.slogdet ### [torch.Tensor.slogdet](https://pytorch.org/docs/stable/generated/torch.Tensor.slogdet.html?highlight=torch+tensor+slogdet#torch.Tensor.slogdet) @@ -6,10 +6,16 @@ torch.Tensor.slogdet() ``` -### [paddle.Tensor.slogdet]() +### [paddle.linalg.slogdet](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/slogdet_cn.html) ```python -paddle.Tensor.slogdet() +paddle.linalg.slogdet(x) ``` -两者功能一致,均无参数。 +两者功能一致,其中 Paddle 相比 Pytorch 支持更多其他参数,具体如下: + +### 参数映射 + +| PyTorch | PaddlePaddle | 备注 | +|---------|--------------| ---------------------------------------------------- | +| - | x | 输入一个或批量矩阵。x 的形状应为 [*, M, M],其中 * 为零或更大的批次维度,数据类型支持 float32、float64。| From a19c97a866c3e2a966a465a2af0a64fe6360834c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8F=E5=9B=BE=E5=A3=AB?= <1291731089@qq.com> Date: Tue, 11 Apr 2023 16:21:44 +0800 Subject: [PATCH 6/6] =?UTF-8?q?'=E6=8C=89=E4=BF=AE=E6=94=B9=E6=84=8F?= =?UTF-8?q?=E8=A7=81=E8=BF=9B=E8=A1=8C=E4=BA=86=E4=BF=AE=E6=94=B9'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api_difference/Tensor/torch.Tensor.slogdet.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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 b31212e43ed..33b2591974f 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 @@ -1,4 +1,4 @@ -## [ 仅 paddle 参数更多 ]torch.Tensor.slogdet +## [ 无参数 ]torch.Tensor.slogdet ### [torch.Tensor.slogdet](https://pytorch.org/docs/stable/generated/torch.Tensor.slogdet.html?highlight=torch+tensor+slogdet#torch.Tensor.slogdet) @@ -12,10 +12,4 @@ torch.Tensor.slogdet() paddle.linalg.slogdet(x) ``` -两者功能一致,其中 Paddle 相比 Pytorch 支持更多其他参数,具体如下: - -### 参数映射 - -| PyTorch | PaddlePaddle | 备注 | -|---------|--------------| ---------------------------------------------------- | -| - | x | 输入一个或批量矩阵。x 的形状应为 [*, M, M],其中 * 为零或更大的批次维度,数据类型支持 float32、float64。| +两者功能一致,均无参数。