Learn Before
Concept
LeNet-5 Dense Block
The dense (fully connected) block of LeNet-5 receives the output of the convolutional encoder. To bridge the two parts, the four-dimensional tensor output (batch size, channels, height, width) must be flattened into a two-dimensional representation: the first dimension indexes examples in the minibatch, and the second provides a flat vector for each example. LeNet-5's dense block consists of three fully connected layers with , , and output units, respectively. The final -dimensional output layer corresponds to the number of possible output classes in the classification task.
0
1
Updated 2026-05-12
Tags
D2L
Dive into Deep Learning @ D2L