how to check tensorflow using gpu code example Example: tensorflow check gpu tf.config.list_physical_devices('GPU')