A flatten layer collapses the spatial dimensions of the input into the channel dimension. For example, if the input to the layer is anH-by-W-by-C-by-N-by-Sarray (sequences of images), then the flattened output is an (H*W*C)-by-N-by-Sarray. ...