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 120120, 8484, and 1010 output units, respectively. The final 1010-dimensional output layer corresponds to the number of possible output classes in the classification task.

0

1

Updated 2026-05-12

Contributors are:

Who are from:

Tags

D2L

Dive into Deep Learning @ D2L