Created
August 24, 2023 22:07
-
-
Save Infinitusvoid/76ec68a674e5aaf6e417523d5e1872d7 to your computer and use it in GitHub Desktop.
PyTorch : How to check if cuda is available ?
This file contains hidden or 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
import torch | |
print(torch.cuda.is_available()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment