Skip to content

Instantly share code, notes, and snippets.

@monk1337
Created June 7, 2018 15:37
Show Gist options
  • Save monk1337/a50992b90e4703a5d66bd50cfae77297 to your computer and use it in GitHub Desktop.
Save monk1337/a50992b90e4703a5d66bd50cfae77297 to your computer and use it in GitHub Desktop.
torch.cuda.is_available()
#output
# False
#use of cuda
print(torch.Tensor(1,2).cuda())
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-72-c98e2fa6ab83> in <module>()
1 #use of cuda
----> 2 print(torch.Tensor(1,2).cuda())
3
4 #as you can see i am not rich enough :/ :/
RuntimeError: torch.cuda.FloatTensor is not enabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment