-
Notifications
You must be signed in to change notification settings - Fork 764
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
【Hackathon 5th No.45】映射文档69-70 -part #6217
Changes from 17 commits
74ef784
1502c9d
588098e
72f868c
3bdc8d5
9d7d3ab
9ffa404
02a18f8
859c253
828fcce
8a5aec7
5d5111f
a6369bb
d2f1de4
fbef3ba
f7ace43
0c4bd06
98f2a72
84b5b7a
641a8d1
a1da7da
687b3ab
5c9a317
4532a7b
24906c4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
### [ 无参数 ] torch.cuda.seed | ||
|
||
### [torch.cuda.seed](https://pytorch.org/docs/stable/generated/torch.cuda.seed.html#torch.cuda.seed) | ||
|
||
```python | ||
torch.cuda.seed() | ||
``` | ||
|
||
### [paddle.seed](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/seed_cn.html#seed) | ||
|
||
```python | ||
paddle.seed(1024) | ||
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. torch是返回seed,paddle是设置seed,两个API功能能对上吗? 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. @zhwesky2010 那我的理解,现在paddle好像没有可以返回seed的函数? 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. 没有直接函数,可以找找能否组合实现,可以查查 get_cuda_rng_state、get_rng_state这些,理论上是有办法获取的 |
||
``` | ||
|
||
Paddle 相比 Pytorch 参数更多 | ||
|
||
### 参数映射 | ||
| PyTorch | Paddle | 备注 | | ||
| ------- |--------| --------------------------------------------------------- | | ||
| - | seed | seed (int) - 要设置的的随机种子,推荐使用较大的整数 | |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
### [ 无参数 ] torch.cuda.seed | ||
|
||
### [torch.cuda.seed_all](https://pytorch.org/docs/stable/generated/torch.cuda.seed.html#torch.cuda.seed) | ||
|
||
```python | ||
torch.cuda.seed() | ||
``` | ||
|
||
### [paddle.seed](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/seed_cn.html#seed) | ||
|
||
```python | ||
paddle.seed(1024) | ||
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功能能对不上吧 |
||
``` | ||
|
||
Paddle 相比 Pytorch 参数更多 | ||
|
||
### 参数映射 | ||
| PyTorch | Paddle | 备注 | | ||
| ------- |--------| --------------------------------------------------------- | | ||
| - | seed | seed (int) - 要设置的的随机种子,推荐使用较大的整数 | |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -369,7 +369,6 @@ | |
| REFERENCE-MAPPING-ITEM(`torch.manual_seed`, https://github.com/PaddlePaddle/docs/tree/develop/docs/guides/model_convert/convert_from_pytorch/api_difference/others/torch.manual_seed.md) | | ||
| [torch.can_cast](https://pytorch.org/docs/stable/generated/torch.can_cast.html#torch-can-cast) | 功能缺失 | | ||
|
||
|
||
***持续更新...*** | ||
|
||
## torch.nn.XX API 映射列表 | ||
|
@@ -1389,6 +1388,10 @@ | |
| REFERENCE-MAPPING-ITEM(`torch.cuda.ShortTensor`, https://github.com/PaddlePaddle/docs/tree/develop/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.ShortTensor.md) | | ||
| REFERENCE-MAPPING-ITEM(`torch.cuda.stream`, https://github.com/PaddlePaddle/docs/tree/develop/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.stream.md) | | ||
| REFERENCE-MAPPING-ITEM(`torch.cuda.Stream`, https://github.com/PaddlePaddle/docs/tree/develop/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.Stream__upper.md) | | ||
| REFERENCE-MAPPING-ITEM(`torch.cuda.seed`, https://github.com/PaddlePaddle/docs/tree/develop/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.seed.md) | | ||
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. 这个文件链接还有吗? 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. 没有的,只是在想删除的时候,报了这个错误“There was an error committing your changes: File could not be edited” |
||
| REFERENCE-MAPPING-ITEM(`torch.cuda.seed_all`, https://github.com/PaddlePaddle/docs/tree/develop/docs/guides/model_convert/convert_from_pytorch/api_difference/cuda/torch.cuda.seed_all.md) | | ||
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. 这个文件链接还有吗? |
||
| [torch.cuda.comm.scatter](https://pytorch.org/docs/stable/generated/torch.cuda.comm.scatterw.html)| | 功能缺失 | | ||
| [torch.cuda.comm.gather](https://pytorch.org/docs/stable/generated/torch.cuda.comm.gather.html)| | 功能缺失| | ||
|
||
***持续更新...*** | ||
|
||
|
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.
这两个错误的映射,你删掉吧