Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## [ 仅参数名不一致 ]torch.Tensor.bitwise_and_
### [torch.Tensor.bitwise_and_](https://docs.pytorch.org/docs/stable/generated/torch.bitwise_and.html)
```python
torch.Tensor.bitwise_and_(other)
```

### [paddle.Tensor.bitwise_and_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor__upper_cn.html#bitwise-and-y-out-none-name-none)
```python
paddle.Tensor.bitwise_and_(y, name=None)
```

两者功能一致,输入参数用法不一致,具体如下:

### 参数映射

| PyTorch | PaddlePaddle | 备注 |
| ------------- | ------------ | ------------------------------------------------------ |
| other | y | 按位与的另一个输入。|
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## [ 仅参数名不一致 ]torch.Tensor.bitwise_xor_
### [torch.Tensor.bitwise_xor_](https://docs.pytorch.org/docs/stable/generated/torch.bitwise_xor.html)
```python
torch.Tensor.bitwise_xor_(other)
```

### [paddle.Tensor.bitwise_xor_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor__upper_cn.html#bitwise-xor-y-out-none-name-none)
```python
paddle.Tensor.bitwise_xor_(y, name=None)
```

两者功能一致,输入参数用法不一致,具体如下:

### 参数映射

| PyTorch | PaddlePaddle | 备注 |
| ------------- | ------------ | ------------------------------------------------------ |
| other | y | 按位 y 异或的另一个输入。|
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## [ 仅参数名不一致 ]torch.Tensor.cumsum_
### [torch.Tensor.cumsum_](https://pytorch.org/docs/stable/generated/torch.Tensor.cumsum_.html)
```python
torch.Tensor.cumsum_(dim, dtype=None)
torch.Tensor.cumsum_(dim, *, dtype=None)
```

### [paddle.Tensor.cumsum_]()
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
```python
torch.Tensor.nansum(dim=None,
keepdim=False,
*,
dtype=None)
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## [ 仅参数名不一致 ]torch.Tensor.std
### [torch.Tensor.std](https://pytorch.org/docs/stable/generated/torch.Tensor.std.html?highlight=torch+tensor+std#torch.Tensor.std)
```python
torch.Tensor.std(dim=None, *, correction=1, keepdim=False)
torch.Tensor.std(dim=None, unbiased=True, keepdim=False, *, correction=1)
```

### [paddle.Tensor.std](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#std-axis-none-unbiased-true-keepdim-false-name-none)
Expand All @@ -16,5 +16,6 @@ paddle.Tensor.std(axis=None, unbiased=True, keepdim=False, name=None)
| PyTorch | PaddlePaddle | 备注 |
| ---------- | ------------ | ------- |
| dim | axis | 指定对 Tensor 进行计算的轴,仅参数名不一致。 |
| unbiased | unbiased | torch v1.x 中 correction 参数名称,表示是否为无偏估计,从 v2.0 开始弃用。|
| correction | unbiased | 是否使用无偏估计来计算标准差。PyTorch 支持 int 类型,Paddle 支持 bool/int 类型。仅参数名不一致。|
| keepdim | keepdim | 是否在输出 Tensor 中保留减小的维度。 |
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## [ 仅参数名不一致 ]torch.Tensor.var
### [torch.Tensor.var](https://pytorch.org/docs/stable/generated/torch.Tensor.var.html#torch.Tensor.var)
```python
torch.Tensor.var(dim, unbiased=True, keepdim=False)
torch.Tensor.var(dim, unbiased=True, keepdim=False, *, correction=1)
```

### [paddle.Tensor.var](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#var-axis-none-unbiased-true-keepdim-false-name-none)
Expand All @@ -14,6 +14,7 @@ paddle.Tensor.var(axis=None, unbiased=True, keepdim=False, name=None)

| PyTorch | PaddlePaddle | 备注 |
| ------------- | ------------ | ------------------------------------------------------ |
| dim | axis | 指定对 Tensor 进行计算的轴 ,仅参数名不一致。 |
| unbiased | unbiased | 表示是否使用无偏估计来计算方差。 |
| keepdim | keepdim | 表示是否保留计算后的维度。 |
| dim | axis | 指定对 Tensor 进行计算的轴,仅参数名不一致。 |
| unbiased | unbiased | torch v1.x 中 correction 对应参数,表示是否为无偏估计,从 v2.0 开始弃用。|
| correction | unbiased | 是否使用无偏估计来计算方差。PyTorch 支持 int 类型,Paddle 支持 bool/int 类型。仅参数名不一致。|
| keepdim | keepdim | 是否在输出 Tensor 中保留减小的维度。 |

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading