Google Colab: torch cuda is true but No CUDA GPUs are available
I use Google Colab to train the model, but like the picture shows that when I input 'torch.cuda.is_available()' and the ouput is 'true'. And then I run the code but it has the error that RuntimeError: No CUDA GPUs are available.


Try to install cudatoolkit version you want to use
&quot;conda install pytorch torchvision cudatoolkit=10.1 -c pytorch&quot;
