AttributeError: module 'torch._C' has no attribute '_cuda_getDevice #1
Comments
I have made some changes, Can you pull the repository and test again? Please update me if it works or not. |
Closing as the issue is resolved |
Hi, @pgtgrly I face the same problem when I re-produce another code when I loading the .pt files. I have no Nvidia GPU and run on a cpu only computer Could you please share how you fix the "module 'torch._C' has no attribute '_cuda_getDevice" problem? Thank you very much! Best, |
Hey @PeterXiaoGuo model=torch.load(trained_model.pt,map_location={'cuda:0': 'cpu'}) You can find the same in my code here Hope this helps. |
Hey, @pgtgrly Best, |
@PeterXiaoGuo, |
我有GPU ,怎样解决呢请问 |
i train my own data by using your checkpoint of checkpoint_unets , but have a error "AttributeError: module 'torch._C' has no attribute '_cuda_getDevice".
i train unet on cpu enviroment.
The text was updated successfully, but these errors were encountered: