Created
December 29, 2019 15:57
-
-
Save omarsar/03e70e7756c9b381a78ec7d6ef96fbc6 to your computer and use it in GitHub Desktop.
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
## configuration to detect cuda or cpu | |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") | |
print (device) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment