Created
November 14, 2019 20:51
-
-
Save heartonbit/2e760942a297cc43dc3757e56d6376ed 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
device_name = tf.test.gpu_device_name() | |
if device_name != '/device:GPU:0': | |
raise SystemError('GPU device not found') | |
print('Found GPU at: {}'.format(device_name)) | |
print("GPU Available: ", tf.test.is_gpu_available()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment