title: How does the Flatten layer work in Keras?
body: <p>I am using the TensorFlow backend.</p>
  
  <p>I am applying a convolution, max-pooling, flatten and a dense layer sequentially. The convolution requires a 3D input (height, width, color_channels_depth).</p>
  
  <p>After the convolution, this becomes (height, width, Number_of_filters).</p>
  
  <p>After applying max-pooling height and width changes. But, after applying the flatten layer, what happens exactly? For example, if the input before flatten is (24, 24, 32), then how it flattens it out?</p>
  
  <p>Is it sequential like (24 * 24) for height, weight for each filter number sequentially, or in some other way? An example would be appreciated with actual values.</p>