-
Notifications
You must be signed in to change notification settings - Fork 752
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
映射文档 No. 11 #5709
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 2f34cea
Merge pull request #3 from PaddlePaddle/develop
Liyulingyue c5d37bd
Merge pull request #4 from PaddlePaddle/develop
Liyulingyue 99ded7c
Merge branch 'PaddlePaddle:develop' into develop
Liyulingyue 92f0052
Merge branch 'PaddlePaddle:develop' into develop
Liyulingyue 6e29295
Merge branch 'PaddlePaddle:develop' into develop
Liyulingyue c280fdd
Merge branch 'PaddlePaddle:develop' into develop
Liyulingyue a3e795f
Merge branch 'PaddlePaddle:develop' into develop
Liyulingyue 00d7d59
Merge branch 'PaddlePaddle:develop' into develop
Liyulingyue e263ff3
Merge branch 'PaddlePaddle:develop' into develop
Liyulingyue 5f3d5cc
Merge branch 'PaddlePaddle:develop' into develop
Liyulingyue d755984
Merge branch 'PaddlePaddle:develop' into develop
Liyulingyue 9c09b77
Merge branch 'PaddlePaddle:develop' into develop
Liyulingyue 5abdca1
add gcd
Liyulingyue f3f3d4c
add gcd
Liyulingyue f0e42f9
add ge
Liyulingyue c7860f2
add outer
Liyulingyue 7673628
add get_divice
Liyulingyue c44f9a6
add gt
Liyulingyue 7d64f27
add hardshrink
Liyulingyue f1df7f2
add heaviside
Liyulingyue ba39462
add hist
Liyulingyue 7675de6
fix
Liyulingyue 6dc4b77
fix
Liyulingyue c45ce33
fix
Liyulingyue 743688c
fix
Liyulingyue 3443216
fix
Liyulingyue a08c515
fix
Liyulingyue 056ae22
fix
Liyulingyue ff0a095
Update torch.Tensor.gcd.md
Liyulingyue 40b73bb
Apply suggestions from code review
Liyulingyue 4785182
Apply suggestions from code review
Liyulingyue 7c33909
Apply suggestions from code review
Liyulingyue ecb4de4
Apply suggestions from code review
Liyulingyue b9e54e1
Apply suggestions from code review
Liyulingyue 9ab6d87
Apply suggestions from code review
Liyulingyue 029fe4b
Apply suggestions from code review
Liyulingyue 41a1551
Apply suggestions from code review
Liyulingyue 3238104
Update torch.Tensor.hardshrink.md
Liyulingyue daee291
Update torch.Tensor.hardshrink.md
Liyulingyue fbddab0
Apply suggestions from code review
Liyulingyue 93f4b90
Apply suggestions from code review
Liyulingyue cdd1b44
Update torch.Tensor.histc.md
Liyulingyue 313ce83
Update torch.Tensor.histc.md
Liyulingyue File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...es/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.gcd.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
|
||
```python | ||
paddle.Tensor.gcd(y, name=None) | ||
``` | ||
|
||
两者功能一致,仅参数名不一致,具体如下: | ||
### 参数映射 | ||
| PyTorch | PaddlePaddle | 备注 | | ||
|----------------------------------|------------------------------| ------------------------------------------------------ | | ||
| <font color='red'> other </font> | <font color='red'> y </font> | 输入的 Tensor ,仅参数名不同。 | |
19 changes: 19 additions & 0 deletions
19
...des/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ge.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ,仅参数名不同。 | |
19 changes: 19 additions & 0 deletions
19
...es/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ger.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ,仅参数名不同。 | |
15 changes: 15 additions & 0 deletions
15
...l_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.get_device.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
|
19 changes: 19 additions & 0 deletions
19
...odel_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.greater.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ,仅参数名不同。 | |
19 changes: 19 additions & 0 deletions
19
...onvert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.greater_equal.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ,仅参数名不同。 | |
19 changes: 19 additions & 0 deletions
19
...des/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.gt.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ,仅参数名不同。 | |
15 changes: 15 additions & 0 deletions
15
...l_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.hardshrink.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
|
19 changes: 19 additions & 0 deletions
19
...el_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.heaviside.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ,仅参数名不同。 | |
15 changes: 15 additions & 0 deletions
15
.../model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.histc.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里的标题可以去掉
(x, y, name=None)
~