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' ```
()
| 94 | |
| 95 | @keras_export('keras.backend.image_data_format') |
| 96 | def image_data_format(): |
| 97 | """Returns the default image data format convention. |
| 98 | |
| 99 | Returns: |
| 100 | A string, either `'channels_first'` or `'channels_last'` |
| 101 | |
| 102 | Example: |
| 103 | ```python |
| 104 | keras.backend.image_data_format() >>> 'channels_first' |
| 105 | ``` |
| 106 | """ |
| 107 | return _IMAGE_DATA_FORMAT |
| 108 | |
| 109 | |
| 110 | @keras_export('keras.backend.set_image_data_format') |
no outgoing calls
no test coverage detected