Save the date! Google I/O returns May 18-20 Register now

tf.keras.backend.image_data_format

TensorFlow 1 version View source on GitHub

Returns the default image data format convention.

A string, either 'channels_first' or 'channels_last'

Example:

keras.backend.image_data_format() >>> 'channels_first'