Check whether TensorFlow runs on GPUInstructions you can run to check and confirm whetherTensorFlow is running on GPU or not. Jun 1, 2021 • 1 min read python machine learning tensorflow gpu About We are going to check if a GPU device is made available to TensorFlow. Code import tensorflow as tf if tf.test.gpu_device_name(): print('Default GPU Device: {}'.format(tf.test.gpu_device_name())) else: print('Please install GPU version of TF') Default GPU Device: /device:GPU:0