繁体   English   中英

PyTorch ROCm 已出 - 如何将 select Radeon GPU 作为设备

[英]PyTorch ROCm is out - How to select Radeon GPU as device

since Pytorch released the ROCm version, which enables me to use other gpus than nvidias, how can I select my radeon gpu as device in python? 显然,像 device = torch.cuda.is_available 或 device = torch.device("cuda") 这样的代码不起作用。 谢谢你的帮助。 :)

这让我花了很长时间才弄清楚。 我的 AMD GPU 仍然存在一些配置问题,所以我无法测试它是否有效,但是,根据这个 github pytorch 线程,设备 Rocm 集成是编写的,所以你可以cuda') 并且不需要实际的移植!

请参阅此处的线程: https://github.com/pytorch/pytorch/issues/10670

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM