Max Pooling

To limit the number of dimensions sent to the next layer, it is often necessary to squeeze the data a bit.

Example:

Walk-through of dimensions, conv2d→conv2d

This is an explanation of how to understand the exact tensor dimensions involved when data flows through two consecutive convolutional conv2d layers. Let’s use the MNIST dataset dimensions in this example. It consists of grayscale (i.e. 1-channel) images, 28x28 pixels each. For simplicity, here are some limitations of this example:

Initial Input Dimension

First Convolutional Layer

After applying this layer: