ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

tf.keras.backend.image_data_format

Returns the default image data format convention.

A string, either 'channels_first' or 'channels_last'

Example:

tf.keras.backend.image_data_format()
'channels_last'