Skip to content

Commit 4cb7c6f

Browse files
committed
add md file
1 parent e300929 commit 4cb7c6f

10 files changed

+202
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## [ 仅 paddle 参数更多 ] torch.Tensor.count_nonzero
2+
3+
### [torch.count_nonzero](https://pytorch.org/docs/stable/generated/torch.count_nonzero.html?highlight=count_nonzero#torch.count_nonzero)
4+
5+
```python
6+
torch.count_nonzero(input, dim=None)
7+
```
8+
9+
### [paddle.count_nonzero](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/count_nonzero_cn.html)
10+
11+
```python
12+
paddle.count_nonzero(x, axis=None, keepdim=False, name=None)
13+
```
14+
15+
两者功能一致,仅 paddle 参数更多,具体如下:
16+
### 参数映射
17+
| PyTorch | PaddlePaddle | 备注 |
18+
|----------|--------------| ----------------------------------------------------- |
19+
| input | x | 输入的 Tensor,仅参数名不一致。 |
20+
| dim | axis | 指定对 x 进行计算的轴,仅参数名不一致。 |
21+
| | keepdim | 是否在输出 Tensor 中保留减小的维度,仅 paddle 参数更多。 |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## [ 仅参数名不一致 ] torch.Tensor.acosh
2+
3+
### [torch.acosh](https://pytorch.org/docs/stable/generated/torch.acosh.html?highlight=acosh#torch.acosh)
4+
5+
```python
6+
torch.acosh(input, *, out=None)
7+
```
8+
9+
### [paddle.cos](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/acosh_cn.html)
10+
11+
```python
12+
paddle.acosh(x, name=None)
13+
```
14+
15+
两者功能一致,仅参数名不一致,具体如下:
16+
### 参数映射
17+
| PyTorch | PaddlePaddle | 备注 |
18+
|------------| ------------ | ------------------------------------------------------ |
19+
| input | x | 输入的 Tensor,仅参数名不一致。 |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## [ 仅参数名不一致 ] torch.Tensor.chunk
2+
3+
### [torch.chunk](https://pytorch.org/docs/stable/generated/torch.chunk.html#torch.chunk)
4+
5+
```python
6+
torch.chunk(input, chunks, dim=0)
7+
```
8+
9+
### [paddle.chunk](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/chunk_cn.html#chunk)
10+
11+
```python
12+
paddle.chunk(x, chunks, axis=0, name=None)
13+
```
14+
15+
两者功能一致,仅参数名不一致,具体如下:
16+
### 参数映射
17+
| PyTorch | PaddlePaddle | 备注 |
18+
|------------| ------------ | ------------------------------------------------------ |
19+
| input | x | 表示输入的 Tensor,仅参数名不一致。 |
20+
| chunks | chunks | 表示将输入 Tensor 划分成多少个相同大小的子 Tensor。 |
21+
| dim | axis | 表示需要分割的维度,仅参数名不一致。 |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## [ 仅参数名不一致 ] torch.Tensor.clamp
2+
3+
### [torch.clamp](https://pytorch.org/docs/stable/generated/torch.clamp.html?highlight=clamp#torch.clamp)
4+
5+
```python
6+
torch.clamp(input, min=None, max=None, *, out=None)
7+
```
8+
9+
### [paddle.clip](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/clip_cn.html)
10+
11+
```python
12+
paddle.clip(x, min=None, max=None, name=None)
13+
```
14+
15+
两者功能一致,仅参数名不一致,具体如下:
16+
### 参数映射
17+
| PyTorch | PaddlePaddle | 备注 |
18+
|---------|--------------| -------------------------------------------------- |
19+
| input | x | 输入的 Tensor,仅参数名不一致。 |
20+
| min | min | 裁剪的最小值,输入中小于该值的元素将由该元素代替。 |
21+
| max | max | 裁剪的最大值,输入中大于该值的元素将由该元素代替。 |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## [ 仅 Paddle 参数更多 ] torch.Tensor.clamp_
2+
3+
### [torch.clamp_](https://pytorch.org/docs/stable/generated/torch.Tensor.clamp_.html?highlight=clamp_#torch.Tensor.clamp_)
4+
5+
```python
6+
Tensor.clamp_(min=None, max=None)
7+
```
8+
9+
### [paddle.clip_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/clip__cn.html)
10+
11+
```python
12+
paddle.clip_(x, min=None, max=None, name=None)
13+
```
14+
15+
两者功能一致,仅 Paddle 参数更多,具体如下:
16+
### 参数映射
17+
| PyTorch | PaddlePaddle | 备注 |
18+
|---------|--------------|---------------------------|
19+
| | x | 输入的 Tensor,Paddle 多此输入。 |
20+
| min | min | 裁剪的最小值,输入中小于该值的元素将由该元素代替。 |
21+
| max | max | 裁剪的最大值,输入中大于该值的元素将由该元素代替。 |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## [ 仅参数名不一致 ] torch.Tensor.clamp
2+
3+
### [torch.clamp](https://pytorch.org/docs/stable/generated/torch.clip.html?highlight=clip#torch.clip)
4+
5+
```python
6+
torch.clip(input, min=None, max=None, *, out=None)
7+
```
8+
9+
### [paddle.clip](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/clip_cn.html)
10+
11+
```python
12+
paddle.clip(x, min=None, max=None, name=None)
13+
```
14+
15+
两者功能一致,仅参数名不一致,具体如下:
16+
### 参数映射
17+
| PyTorch | PaddlePaddle | 备注 |
18+
|---------|--------------| -------------------------------------------------- |
19+
| input | x | 输入的 Tensor,仅参数名不一致。 |
20+
| min | min | 裁剪的最小值,输入中小于该值的元素将由该元素代替。 |
21+
| max | max | 裁剪的最大值,输入中大于该值的元素将由该元素代替。 |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## [ 仅 Paddle 参数更多 ] torch.Tensor.clip_
2+
3+
### [torch.clip_](https://pytorch.org/docs/stable/generated/torch.Tensor.clip_.html?highlight=clip_#torch.Tensor.clip_)
4+
5+
```python
6+
Tensor.clip_(min=None, max=None)
7+
```
8+
9+
### [paddle.clip_](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/clip__cn.html)
10+
11+
```python
12+
paddle.clip_(x, min=None, max=None, name=None)
13+
```
14+
15+
两者功能一致,仅 Paddle 参数更多,具体如下:
16+
### 参数映射
17+
| PyTorch | PaddlePaddle | 备注 |
18+
|---------|--------------|---------------------------|
19+
| | x | 输入的 Tensor,Paddle 多此输入。 |
20+
| min | min | 裁剪的最小值,输入中小于该值的元素将由该元素代替。 |
21+
| max | max | 裁剪的最大值,输入中大于该值的元素将由该元素代替。 |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## [ 仅参数名不一致 ] torch.Tensor.conj
2+
3+
### [torch.conj](https://pytorch.org/docs/stable/generated/torch.conj.html?highlight=conj#torch.conj)
4+
5+
```python
6+
torch.conj(input)
7+
```
8+
9+
### [paddle.conj](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/conj_cn.html)
10+
11+
```python
12+
paddle.conj(x, name=None)
13+
```
14+
15+
两者功能一致,仅参数名不一致,具体如下:
16+
### 参数映射
17+
| PyTorch | PaddlePaddle | 备注 |
18+
|------------| ------------ | ------------------------------------------------------ |
19+
| input | x | 输入的复数值的 Tensor,仅参数名不一致。 |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## [ 仅参数名不一致 ] torch.Tensor.cos
2+
3+
### [torch.cos](https://pytorch.org/docs/stable/generated/torch.cos.html?highlight=cos#torch.cos)
4+
5+
```python
6+
torch.cos(input, *, out=None)
7+
```
8+
9+
### [paddle.cos](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/cos_cn.html)
10+
11+
```python
12+
paddle.cos(x, name=None)
13+
```
14+
15+
两者功能一致,仅参数名不一致,具体如下:
16+
### 参数映射
17+
| PyTorch | PaddlePaddle | 备注 |
18+
|------------| ------------ | ------------------------------------------------------ |
19+
| input | x | 输入的 Tensor,仅参数名不一致。 |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## [ 仅参数名不一致 ] torch.Tensor.cosh
2+
3+
### [torch.cosh](https://pytorch.org/docs/stable/generated/torch.cosh.html?highlight=cosh#torch.cosh)
4+
5+
```python
6+
torch.cosh(input, *, out=None)
7+
```
8+
9+
### [paddle.cos](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/cosh_cn.html)
10+
11+
```python
12+
paddle.cosh(x, name=None)
13+
```
14+
15+
两者功能一致,仅参数名不一致,具体如下:
16+
### 参数映射
17+
| PyTorch | PaddlePaddle | 备注 |
18+
|------------| ------------ | ------------------------------------------------------ |
19+
| input | x | 输入的 Tensor,仅参数名不一致。 |

0 commit comments

Comments
 (0)