Created
July 7, 2021 12:47
-
-
Save deeperlearner/910ee60445d91cf17b374cf539e251f4 to your computer and use it in GitHub Desktop.
tf_gpu_test.py
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
import tensorflow as tf | |
if tf.test.gpu_device_name(): | |
print(f"Default GPU Device: {tf.test.gpu_device_name()}") | |
else: | |
print("Please install GPU version of TF") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment