Last active
August 23, 2018 21:08
-
-
Save liuhengyue/b27c736e575775691ddfcaa24d59db39 to your computer and use it in GitHub Desktop.
Select GPU
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
import os | |
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" | |
os.environ["CUDA_VISIBLE_DEVICES"] = "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment