Created
December 17, 2022 01:26
-
-
Save anujonthemove/4b5ec16797e5e64a822d67826301bedf to your computer and use it in GitHub Desktop.
Check if TensorFlow can access GPU
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 | |
from tensorflow.python.client import device_lib | |
print(tf.test.is_gpu_available()) | |
print(tf.config.experimental.list_physical_devices('GPU')) | |
print(device_lib.list_local_devices()) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment