Bringing-Old-Photos-Back-to-Life icon indicating copy to clipboard operation
Bringing-Old-Photos-Back-to-Life copied to clipboard

AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'

Open aigerimmmm opened this issue 2 years ago • 5 comments

torch._C._cuda_setDevice(device) AttributeError: module 'torch._C' has no attribute '_cuda_setDevice' Finish Stage 1 ...

aigerimmmm avatar Aug 25 '22 22:08 aigerimmmm

metoo

morelife5831 avatar Aug 27 '22 11:08 morelife5831

How did you install pytorch? It sounds like you installed pytorch without CUDA support. https://pytorch.org/ has instructions for how to install pytorch with cuda support.

mohamaddkhalill avatar Oct 25 '22 17:10 mohamaddkhalill

@aigerimmmm try this setting --GPU -1

xiaoxinmiao avatar Dec 08 '22 07:12 xiaoxinmiao

Try running on CPU by adding the following option: --gpu_ids -1

wangshirely avatar Mar 05 '23 02:03 wangshirely

@aigerimmmm try this setting --GPU -1

This solution solved the problem

But it seems that it is not using the GPU, but using the CPU.

alphapro-pro avatar Oct 09 '23 02:10 alphapro-pro