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. 11 #5709

Merged
merged 44 commits into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
75803c7
Merge pull request #2 from PaddlePaddle/develop
Liyulingyue May 22, 2022
2f34cea
Merge pull request #3 from PaddlePaddle/develop
Liyulingyue Aug 6, 2022
c5d37bd
Merge pull request #4 from PaddlePaddle/develop
Liyulingyue Aug 24, 2022
99ded7c
Merge branch 'PaddlePaddle:develop' into develop
Liyulingyue Sep 1, 2022
92f0052
Merge branch 'PaddlePaddle:develop' into develop
Liyulingyue Sep 3, 2022
6e29295
Merge branch 'PaddlePaddle:develop' into develop
Liyulingyue Sep 5, 2022
c280fdd
Merge branch 'PaddlePaddle:develop' into develop
Liyulingyue Sep 9, 2022
a3e795f
Merge branch 'PaddlePaddle:develop' into develop
Liyulingyue Sep 13, 2022
00d7d59
Merge branch 'PaddlePaddle:develop' into develop
Liyulingyue Nov 18, 2022
e263ff3
Merge branch 'PaddlePaddle:develop' into develop
Liyulingyue Dec 3, 2022
5f3d5cc
Merge branch 'PaddlePaddle:develop' into develop
Liyulingyue Dec 5, 2022
d755984
Merge branch 'PaddlePaddle:develop' into develop
Liyulingyue Feb 27, 2023
9c09b77
Merge branch 'PaddlePaddle:develop' into develop
Liyulingyue Mar 11, 2023
5abdca1
add gcd
Liyulingyue Mar 12, 2023
f3f3d4c
add gcd
Liyulingyue Mar 12, 2023
f0e42f9
add ge
Liyulingyue Mar 12, 2023
c7860f2
add outer
Liyulingyue Mar 12, 2023
7673628
add get_divice
Liyulingyue Mar 12, 2023
c44f9a6
add gt
Liyulingyue Mar 12, 2023
7d64f27
add hardshrink
Liyulingyue Mar 12, 2023
f1df7f2
add heaviside
Liyulingyue Mar 12, 2023
ba39462
add hist
Liyulingyue Mar 12, 2023
7675de6
fix
Liyulingyue Apr 16, 2023
6dc4b77
fix
Liyulingyue Apr 16, 2023
c45ce33
fix
Liyulingyue Apr 16, 2023
743688c
fix
Liyulingyue Apr 16, 2023
3443216
fix
Liyulingyue Apr 16, 2023
a08c515
fix
Liyulingyue Apr 17, 2023
056ae22
fix
Liyulingyue Apr 17, 2023
ff0a095
Update torch.Tensor.gcd.md
Liyulingyue Apr 22, 2023
40b73bb
Apply suggestions from code review
Liyulingyue Apr 22, 2023
4785182
Apply suggestions from code review
Liyulingyue Apr 22, 2023
7c33909
Apply suggestions from code review
Liyulingyue Apr 22, 2023
ecb4de4
Apply suggestions from code review
Liyulingyue Apr 22, 2023
b9e54e1
Apply suggestions from code review
Liyulingyue Apr 22, 2023
9ab6d87
Apply suggestions from code review
Liyulingyue Apr 22, 2023
029fe4b
Apply suggestions from code review
Liyulingyue Apr 22, 2023
41a1551
Apply suggestions from code review
Liyulingyue Apr 22, 2023
3238104
Update torch.Tensor.hardshrink.md
Liyulingyue Apr 22, 2023
daee291
Update torch.Tensor.hardshrink.md
Liyulingyue Apr 23, 2023
fbddab0
Apply suggestions from code review
Liyulingyue Apr 23, 2023
93f4b90
Apply suggestions from code review
Liyulingyue Apr 23, 2023
cdd1b44
Update torch.Tensor.histc.md
Liyulingyue Apr 23, 2023
313ce83
Update torch.Tensor.histc.md
Liyulingyue Apr 23, 2023
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,19 @@
## [ 仅参数名不一致 ]torch.Tensor.gcd

### [torch.Tensor.gcd](https://pytorch.org/docs/1.13/generated/torch.Tensor.gcd.html?highlight=torch+tensor+gcd#torch.Tensor.gcd)

```python
torch.Tensor.gcd(other)
```

### [paddle.Tensor.gcd(x, y, name=None)](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/Tensor_cn.html#gcd-x-y-name-none)
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里的标题可以去掉(x, y, name=None) ~


```python
paddle.Tensor.gcd(y, name=None)
```

两者功能一致,仅参数名不一致,具体如下:
### 参数映射
| PyTorch | PaddlePaddle | 备注 |
|----------------------------------|------------------------------| ------------------------------------------------------ |
| <font color='red'> other </font> | <font color='red'> y </font> | 输入的 Tensor ,仅参数名不同。 |
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## [ 仅参数名不一致 ]torch.Tensor.ge

### [torch.Tensor.ge](https://pytorch.org/docs/1.13/generated/torch.Tensor.ge.html?highlight=torch+tensor+ge#torch.Tensor.ge)

```python
torch.Tensor.ge(other)
```

### [paddle.Tensor.greater_equal](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/Tensor_cn.html#greater-equal-y-name-none)

```python
paddle.Tensor.greater_equal(y, name=None)
```

两者功能一致,仅参数名不一致,具体如下:
### 参数映射
| PyTorch | PaddlePaddle | 备注 |
|----------------------------------|------------------------------| ------------------------------------------------------ |
| <font color='red'> other </font> | <font color='red'> y </font> | 输入的 Tensor ,仅参数名不同。 |
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## [ 仅参数名不一致 ]torch.Tensor.ger

### [torch.Tensor.ger](https://pytorch.org/docs/1.13/generated/torch.Tensor.ger.html?highlight=torch+tensor+ger#torch.Tensor.ger)

```python
torch.Tensor.ger(vec2)
```

### [paddle.Tensor.outer]()

```python
paddle.Tensor.outer(y, name=None)
```

两者功能一致,仅参数名不一致,具体如下:
### 参数映射
| PyTorch | PaddlePaddle | 备注 |
|--------------------------------|------------------------------| ------------------------------------------------------ |
| <font color='red'> vec2 </font> | <font color='red'> y </font> | 输入的 Tensor ,仅参数名不同。 |
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## torch.Tensor.get_device
Liyulingyue marked this conversation as resolved.
Show resolved Hide resolved

### [torch.Tensor.get_device](https://pytorch.org/docs/1.13/generated/torch.Tensor.get_device.html?highlight=torch+tensor+get_device#torch.Tensor.get_device)

```python
torch.Tensor.get_device()
```

### [paddle.device.get_device]()

```python
paddle.Tensor.get_device()
Liyulingyue marked this conversation as resolved.
Show resolved Hide resolved
```

两者功能一致且用法一致。
Liyulingyue marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## [ 仅参数名不一致 ]torch.Tensor.greater

### [torch.Tensor.greater](https://pytorch.org/docs/1.13/generated/torch.Tensor.greater.html?highlight=torch+tensor+greater#torch.Tensor.greater)

```python
torch.Tensor.greater(other)
```

### [paddle.Tensor.greater_than](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/Tensor_cn.html#greater-than-y-name-none)

```python
paddle.Tensor.greater_than(y, name=None)
```

两者功能一致,仅参数名不一致,具体如下:
### 参数映射
| PyTorch | PaddlePaddle | 备注 |
|----------------------------------|------------------------------| ------------------------------------------------------ |
| <font color='red'> other </font> | <font color='red'> y </font> | 输入的 Tensor ,仅参数名不同。 |
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## [ 仅参数名不一致 ]torch.Tensor.greater_equal

### [torch.Tensor.greater_equal](https://pytorch.org/docs/1.13/generated/torch.Tensor.greater_equal.html?highlight=torch+tensor+greater_equal#torch.Tensor.greater_equal)

```python
torch.Tensor.greater_equal(other)
```

### [paddle.Tensor.greater_equal](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/Tensor_cn.html#greater-equal-y-name-none)

```python
paddle.Tensor.greater_equal(y, name=None)
```

两者功能一致,仅参数名不一致,具体如下:
### 参数映射
| PyTorch | PaddlePaddle | 备注 |
|----------------------------------|------------------------------| ------------------------------------------------------ |
| <font color='red'> other </font> | <font color='red'> y </font> | 输入的 Tensor ,仅参数名不同。 |
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## [ 仅参数名不一致 ]torch.Tensor.gt

### [torch.Tensor.gt](https://pytorch.org/docs/1.13/generated/torch.Tensor.gt.html?highlight=torch+tensor+gt#torch.Tensor.gt)

```python
torch.Tensor.gt(other)
```

### [paddle.Tensor.greater_than](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/Tensor_cn.html#greater-than-y-name-none)

```python
paddle.Tensor.greater_than(y, name=None)
```

两者功能一致,仅参数名不一致,具体如下:
### 参数映射
| PyTorch | PaddlePaddle | 备注 |
|----------------------------------|------------------------------| ------------------------------------------------------ |
| <font color='red'> other </font> | <font color='red'> y </font> | 输入的 Tensor ,仅参数名不同。 |
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## torch.Tensor.hardshrink
Liyulingyue marked this conversation as resolved.
Show resolved Hide resolved

### [torch.Tensor.hardshrink](https://pytorch.org/docs/1.13/generated/torch.Tensor.hardshrink.html?highlight=torch+tensor+hardshrink#torch.Tensor.hardshrink)

```python
torch.Tensor.hardshrink(lambd=0.5)
```

### [paddle.Tensor.hardshrink]()

```python
paddle.Tensor.hardshrink(threshold=0.5, name=None)
```

两者功能一致且参数用法一致。
Liyulingyue marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## [ 仅参数名不一致 ]torch.Tensor.heaviside

### [torch.Tensor.heaviside](https://pytorch.org/docs/1.13/generated/torch.Tensor.heaviside.html?highlight=torch+tensor+heaviside#torch.Tensor.heaviside)

```python
torch.Tensor.heaviside(values)
```

### [paddle.heaviside](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/Tensor_cn.html#heaviside-y-name-none)
Liyulingyue marked this conversation as resolved.
Show resolved Hide resolved

```python
paddle.Tensor.heaviside(y, name=None)
```

两者功能一致,仅参数名不一致,具体如下:
### 参数映射
| PyTorch | PaddlePaddle | 备注 |
|-----------------------------------|------------------------------| ------------------------------------------------------ |
| <font color='red'> values </font> | <font color='red'> y </font> | 输入的 Tensor ,仅参数名不同。 |
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## torch.Tensor.histc
Liyulingyue marked this conversation as resolved.
Show resolved Hide resolved

### [torch.Tensor.histc](https://pytorch.org/docs/1.13/generated/torch.Tensor.histc.html?highlight=torch+tensor+histc#torch.Tensor.histc)

```python
torch.Tensor.histc(bins=100, min=0, max=0)
```

### [paddle.histogram](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/histogram_cn.html#histogram)
Liyulingyue marked this conversation as resolved.
Show resolved Hide resolved

```python
paddle.Tensor.histogram(bins=100, min=0, max=0, name=None)
```

Liyulingyue marked this conversation as resolved.
Show resolved Hide resolved
两者功能一致且用法一致。
Liyulingyue marked this conversation as resolved.
Show resolved Hide resolved