Flatten Layer
Libraries:
Deep Learning Toolbox /
Deep Learning Layers /
Sequence Layers
Description
The Flatten Layer block collapses the spatial dimensions of layer input into the channel dimension.
For example, if the input to the layer is an H-by-W-by-C-by-N-by-S array (sequences of images), then the flattened output is an (H*W*C)-by-N-by-S array.
The exportNetworkToSimulink
function generates this block to represent a flattenLayer
object.
Ports
Input
Output
Parameters
Extended Capabilities
Version History
Introduced in R2024b