Paddle 如何将cpu的模型放到GPU上运行,即:model.cuda()

yks3o0rb  于 2023-02-04  发布在  其他
关注(0)|答案(2)|浏览(607)

paddle.vision.models 调用的模型,默认是在cpu上运行,速度很慢

xmq68pz9

xmq68pz91#

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看 官网API文档常见问题历史IssueAI社区 来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQGithub Issue and AI community to get the answer.Have a nice day!

t1qtbnec

t1qtbnec2#

运行程序前调用 paddle.set_device('gpu')来设置默认使用GPU。

https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/device/set_device_cn.html#set-device

相关问题