title: Google Colab + Pytorch: RuntimeError: No CUDA GPUs are available
body: <p><strong>Screenshot of error:</strong></p>
  <p><a href="https://i.stack.imgur.com/c53R5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c53R5.png" alt="screenshot of error" /></a></p>
  <p>Hello, I am trying to run <a href="https://github.com/espectre/Kaggle-Dogs_vs_Cats_PyTorch" rel="nofollow noreferrer">this Pytorch application</a>, which is a CNN for classifying dog and cat pics.</p>
  <p>I am using Google Colab for the GPU, but for some reason, I get <code>RuntimeError: No CUDA GPUs are available</code>. This is weird because I specifically both enabled the GPU in Colab settings, then tested if it was available with <code>torch.cuda.is_available()</code>, which returned true.</p>
  <p>The weirdest thing is that this error doesn't appear until about 1.5 minutes after I run the code. You would think that if it couldn't detect the GPU, it would notify me sooner.</p>
  <p>I've had no problems using the Colab GPU when running other Pytorch applications using the exact same notebook. I can only imagine it's a problem with this specific code, but the returned error is so bizarre that I had to ask on StackOverflow to make sure.</p>