So a while back I installed pytorch using pip and as a compute platform "CPU Only". Now I want to use torch on GPU but no matter how I try to install CUDA as a compute platform, it still always uses the version 1.9.0+cpu. Neither pip nor conda work on uninstalling it and I even tried to manually remove some torch files but with no help. No matter how much I try, it still always runs with the CPU computing device, and not with the CUDA support. I also tried creating different virtual envs and installing the CUDA there but it still works with the CPU version.
When I try uninstalling with pip
When I try uninstalling with conda
import torch
print(torch.__version__)
and this prints:
PS: I'm sorry the images are as links I don't have enough reputation for actual images apparently
To make my comment an answer you can accept:
You can use
print(torch.__file__)
to see where the mystery Torch installation is and delete it.
In case that doesn't work, you can always search your computer for torch
.