Does TensorFlow/Keras use channels first or channels last strategy?

Ask Questions Forum: ask Machine Learning Questions to our readersCategory: TensorFlow/KerasDoes TensorFlow/Keras use channels first or channels last strategy?
Chris Staff asked 3 weeks ago
1 Answers
Best Answer
Chris Staff answered 3 weeks ago

By default, TensorFlow and Keras use a channels last strategy for Conv2D layers.

Source: https://www.tensorflow.org/api_docs/python/tf/nn/conv2d – “With the default format “NHWC”, the data is stored in the order of: batch_shape + [height, width, channels].”

Your Answer

17 + 7 =