-
Notifications
You must be signed in to change notification settings - Fork 724
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 7th No.40】为 Paddle 代码转换工具新增 API 转换规则(第 7 组)-Part #6920
base: develop
Are you sure you want to change the base?
Conversation
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-6920.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
torch.cuda.device_of(obj) | ||
``` | ||
|
||
获取张量所在的设备,Paddle 无此 api,需要组合实现 |
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.
https://pytorch.org/docs/stable/generated/torch.cuda.device_of.html#torch.cuda.device_of 这个好像不是这个功能,开发Matcher并测试一下吧
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.
好的
|
||
将多个设备的张量集中起来,Paddle 无此 API,需要组合替代实现。 | ||
|
||
### 转写示例 |
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.
同步提交Matcher并且测试一下吧
|
||
将张量分散到多个设备上,Paddle 无此 API,需要组合替代实现 | ||
|
||
### 转写示例 |
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.
同步提交Matcher并且测试一下吧
为 Paddle 代码转换工具新增 API 转换规则(第 7 组)- Part1
PaddlePaddle/Paddle#68244