Last active
November 27, 2019 01:31
-
-
Save aidiary/670e5099e43815cc31a144f32547e6ab to your computer and use it in GitHub Desktop.
[PyTorch] deviceの設定
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
device = torch.device('cuda:0' 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