Closed aadhiya closed 11 months ago
trying to run code on Windows using visual studio. but stumbled on this issue AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'.
can steps I need to do to solve this.
when I check if my Pytorch is GPU enabled or not it says false and it's only cpu.
Like this, I didn't test the code on the CPU either, that may have unknown problems as well as being slower, I'd recommend testing on the GPU to make sure torch. cuda.is_available returns True.
torch. cuda.is_available
trying to run code on Windows using visual studio. but stumbled on this issue AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'.
can steps I need to do to solve this.
when I check if my Pytorch is GPU enabled or not it says false and it's only cpu.