Learn Before
Concept
Image Flattening for Linear Models
In simple linear architectures like softmax regression, each input instance must be represented as a fixed-length 1D vector. When dealing with spatial data such as pixel images, the 2D spatial structure is discarded and each image is flattened into a single vector of length . This flattening step allows the data to be processed via standard matrix multiplication, although it ignores structural relationships that more advanced architectures like convolutional neural networks would otherwise exploit.
0
1
Updated 2026-05-03
Tags
D2L
Dive into Deep Learning @ D2L