-
-
Save ttchengab/dde281557818f0d701ececaeeb7f1b0a 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
""" | |
Determine if any GPUs are available | |
""" | |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment