Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

映射文档 No 20 #5733

Merged
merged 11 commits into from
Apr 11, 2023
Original file line number Diff line number Diff line change
@@ -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)
hongtushi marked this conversation as resolved.
Show resolved Hide resolved
```

### [paddle.asinh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/asinh_cn.html)
hongtushi marked this conversation as resolved.
Show resolved Hide resolved

```python
paddle.asinh(x, name=None)
```

其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下:

### 参数映射

| PyTorch | PaddlePaddle | 备注 |
| ------------- | ------------ | ------------------------------------------------------ |
| input | x | 表示输入的 Tensor ,仅参数名不同。 |
| out | - | 表示输出 Tensor 。 |
Original file line number Diff line number Diff line change
@@ -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/develop/api/paddle/asinh_cn.html)

```python
paddle.asinh(x, name=None)
```

其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下:

### 参数映射

| PyTorch | PaddlePaddle | 备注 |
| ------------- | ------------ | ------------------------------------------------------ |
| input | x | 表示输入的 Tensor ,仅参数名不同。 |
| out | - | 表示输出 Tensor 。 |
Original file line number Diff line number Diff line change
@@ -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/develop/api/paddle/rsqrt_cn.html)

```python
paddle.rsqrt(x, name=None)
```

其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下:

### 参数映射

| PyTorch | PaddlePaddle | 备注 |
| ------------- | ------------ | ------------------------------------------------------ |
| input | x | 表示输入的 Tensor ,仅参数名不同。 |
| out | - | 表示输出 Tensor 。 |
Original file line number Diff line number Diff line change
@@ -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/develop/api/paddle/rsqrt__cn.html)

```python
paddle.rsqrt_(x, name=None)
```

其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下:

### 参数映射

| PyTorch | PaddlePaddle | 备注 |
| ------------- | ------------ | ------------------------------------------------------ |
| input | x | 表示输入的 Tensor ,仅参数名不同。 |
| out | - | 表示输出 Tensor 。 |
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## [ torch 参数更多 ]torch.Tensor.select
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里分类应该是仅参数名不一致


### [torch.Tensor.select](https://pytorch.org/docs/stable/generated/torch.Tensor.select)

```python
torch.select(input, dim, index)
hongtushi marked this conversation as resolved.
Show resolved Hide resolved
```

### [paddle.index_select](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/index_select_cn.html)
hongtushi marked this conversation as resolved.
Show resolved Hide resolved

```python
paddle.index_select(x, index, axis=0, name=None)
```

其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这句话的描述也不太对,应该是 两者功能一致且参数用法一致,仅参数名不一致,具体如下:,辛苦修改一下~


### 参数映射

| PyTorch | PaddlePaddle | 备注 |
| ------------- | ------------ | ------------------------------------------------------ |
| input | x | 表示输入的 Tensor ,仅参数名不同。 |
| dim | axis | 指定进行运算的轴,仅参数名不同。 |
| index | index | 包含索引下标的 1-D Tensor |
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## [ torch 参数更多 ]torch.Tensor.sigmoid

### [torch.Tensor.sigmoid](https://pytorch.org/docs/stable/generated/torch.Tensor.sigmoid)
hongtushi marked this conversation as resolved.
Show resolved Hide resolved

```python
torch.sigmoid(input, *, out=None)
```

### [paddle.nn.functional.sigmoid](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/sigmoid_cn.html)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里对应的 API 应该是 paddle.Tensor.sigmoid


```python
paddle.nn.functional.sigmoid(x, name=None)
```

其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下:

### 参数映射

| PyTorch | PaddlePaddle | 备注 |
| ------------- | ------------ | ------------------------------------------------------ |
| input | x | 表示输入的 Tensor ,仅参数名不同。 |
| out | - | 表示输出 Tensor 。 |
Original file line number Diff line number Diff line change
@@ -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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

问题同上

```

### [paddle.sign](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sign_cn.html)

```python
paddle.sign(x, name=None)
```

其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下:

### 参数映射

| PyTorch | PaddlePaddle | 备注 |
| ------------- | ------------ | ------------------------------------------------------ |
| input | x | 表示输入的 Tensor ,仅参数名不同。 |
| out | - | 表示输出 Tensor 。 |
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## [ torch 参数更多 ]torch.Tensor.sin

### [torch.Tensor.sin](https://pytorch.org/docs/stable/generated/torch.Tensor.sin)

```python
torch.sinh(input, *, out=None)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

问题同上

```

### [paddle.sin](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sin_cn.html)

```python
paddle.sin(x, name=None)
```

其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下:

### 参数映射

| PyTorch | PaddlePaddle | 备注 |
| ------------- | ------------ | ------------------------------------------------------ |
| input | x | 表示输入的 Tensor ,仅参数名不同。 |
| out | - | 表示输出 Tensor 。 |
Original file line number Diff line number Diff line change
@@ -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)
hongtushi marked this conversation as resolved.
Show resolved Hide resolved
```

### [paddle.sinh](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/sinh_cn.html)

```python
paddle.sinh(x, name=None)
```

其中 Pytorch 相⽐ Paddle ⽀持更多其他参数,具体如下:

### 参数映射

| PyTorch | PaddlePaddle | 备注 |
| ------------- | ------------ | ------------------------------------------------------ |
| input | x | 表示输入的 Tensor ,仅参数名不同。 |
| out | - | 表示输出 Tensor 。 |
Original file line number Diff line number Diff line change
@@ -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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

问题同上

```

### [paddle.linalg.slogdet(x)](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/slogdet_cn.html)

```python
paddle.linalg.slogdet(x)
```

两者功能一致且参数用法一致,仅参数名不同,具体如下:

### 参数映射

| PyTorch | PaddlePaddle | 备注 |
| ------------- | ------------ | ------------------------------------------------------ |
| input | x | 表示输入的 Tensor ,仅参数名不同。 |