title: Torch.cuda.is_available() keeps switching to False
body: <p>I have tried several solutions which hinted at what to do when the CUDA GPU is available and CUDA is installed but the <code>Torch.cuda.is_available()</code> returns <code>False</code>. They did help but only temporarily, meaning <code>torch.cuda-is_available()</code> reported True but after some time, it switched back to False. I use CUDA 9.0.176 and GTX 1080. What should I do to get the permanent effect?</p>
  <p>I tried the following methods:</p>
  <p><a href="https://forums.fast.ai/t/torch-cuda-is-available-returns-false/16721/5" rel="nofollow noreferrer">https://forums.fast.ai/t/torch-cuda-is-available-returns-false/16721/5</a>
  <a href="https://github.com/pytorch/pytorch/issues/15612" rel="nofollow noreferrer">https://github.com/pytorch/pytorch/issues/15612</a></p>
  <p>Note: When <code>torch.cuda.is_available()</code> works fine but then at some point switches to <code>False</code>, then I have to restart the computer and then it works again (for some time).</p>