how to check if gpu is working python code example
Example 1: check if tensorflow gpu is installed
import tensorflow as tf
print(tf.test.gpu_device_name())
Example 2: how to check if tensorflow is working on your pc
Hello TensorFlow!
import tensorflow as tf
print(tf.test.gpu_device_name())
Hello TensorFlow!