Question : check if tensorflow gpu is installed
Answered by : alessandro
import tensorflow as tf
print(tf.test.gpu_device_name())
Source : | Last Update : Fri, 14 Aug 20
Question : tensorflow check gpu
Answered by : splendid-scarab-7fsbrko4js7z
tf.config.list_physical_devices('GPU')
Source : | Last Update : Wed, 16 Dec 20
Question : check gpu in tensorflow
Answered by : suman-michael
# For tensorflow 2:
print("Num GPUs Available: ", len(tf.config.list_physical_devices('GPU')))
# For tensorflow 1:
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
Source : https://stackoverflow.com/questions/38009682/how-to-tell-if-tensorflow-is-using-gpu-acceleration-from-inside-python-shell | Last Update : Thu, 29 Jul 21
Question : tensorflow cant see gpu
Answered by : relieved-reindeer-8bcjc9576clg
$ pip uninstall tensorflow
$ pip install tensorflow-gpu
Source : https://stackoverflow.com/questions/41402409/tensorflow-doesnt-seem-to-see-my-gpu | Last Update : Sun, 17 Jan 21