Created
October 7, 2021 03:55
-
-
Save KushajveerSingh/64b2d83e4ef1d5a1462ec1cf20821d4b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(base) default@7d9b75595a27:~$ python | |
Python 3.9.7 (default, Sep 16 2021, 13:09:58) | |
[GCC 7.5.0] :: Anaconda, Inc. on linux | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import torch | |
>>> torch.cuda.is_available() | |
True | |
>>> torch.backends.cudnn.version() | |
8005 | |
>>> x = torch.tensor([1,2], device='cuda:0') | |
>>> x | |
tensor([1, 2], device='cuda:0') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment