#!/usr/bin/env python import tensorflow as tf print('There are {:d} GPU devices visible to this TF'.format( len(tf.config.list_physical_devices('GPU'))) )