tf.keras.backend.image_data_format

tf.keras.backend.image_data_format()

Defined in tensorflow/python/keras/_impl/keras/backend.py.

Returns the default image data format convention.

Returns:

A string, either `'channels_first'` or `'channels_last'`

Example: python >>> keras.backend.image_data_format() 'channels_first'