-
Notifications
You must be signed in to change notification settings - Fork 765
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. 141/142 #6027
Merged
Merged
映射文档 No. 141/142 #6027
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
15 changes: 15 additions & 0 deletions
15
...l_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.nvtx.range_pop.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.cuda.nvtx.range_pop | ||
|
||
### [torch.cuda.nvtx.range_pop](https://pytorch.org/docs/1.13/generated/torch.cuda.nvtx.range_pop.html#torch.cuda.nvtx.range_pop) | ||
|
||
```python | ||
torch.cuda.nvtx.range_pop() | ||
``` | ||
|
||
### [paddle.fluid.core.nvprof_nvtx_pop](https://github.com/PaddlePaddle/Paddle/blob/f00a06d817b97bde23e013c2fb0cd1a6c9c1076b/paddle/fluid/pybind/pybind.cc#L2264) | ||
|
||
```python | ||
paddle.fluid.core.nvprof_nvtx_pop() | ||
``` | ||
|
||
功能一致,无参数。 |
21 changes: 21 additions & 0 deletions
21
..._convert/convert_from_pytorch/api_difference/cuda/torch.cuda.nvtx.range_push.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,21 @@ | ||
## [仅参数名不一致]torch.cuda.nvtx.range_push | ||
|
||
### [torch.cuda.nvtx.range_push](https://pytorch.org/docs/1.13/generated/torch.cuda.nvtx.range_push.html#torch.cuda.nvtx.range_push) | ||
|
||
```python | ||
torch.cuda.nvtx.range_push(msg) | ||
``` | ||
|
||
### [paddle.fluid.core.nvprof_nvtx_push](https://github.com/PaddlePaddle/Paddle/blob/f00a06d817b97bde23e013c2fb0cd1a6c9c1076b/paddle/fluid/pybind/pybind.cc#L2261) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这个官网没有API,fluid也要被清理掉,这样写不知道有没有问题:joy: @zhwesky2010 |
||
|
||
```python | ||
paddle.fluid.core.nvprof_nvtx_push(name) | ||
``` | ||
|
||
两者功能一致且参数用法一致,仅参数名不一致,具体如下: | ||
|
||
### 参数映射 | ||
|
||
| PyTorch | PaddlePaddle | 备注 | | ||
| ------- | ------------ | ------------------------------------------ | | ||
| msg | name | 关联 range 的 ASCII 消息,仅参数名不一致。 | |
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.
这个官网没有API,fluid也要被清理掉,这样写不知道有没有问题:joy: @zhwesky2010
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.
先这样写吧,后面需要把这个API暴露到更好的module下