Learn Before
Concept
Overriding Padding and Stride in Pooling Layers
Although deep learning frameworks assign default stride and padding values for pooling layers, both can be manually overridden to control the output dimensions. Padding adds extra border elements (typically zeros) to the input before pooling, allowing the pooling window to cover boundary regions. Setting the stride smaller than the window size introduces overlap between adjacent windows, whereas a larger stride increases the downsampling factor. These controls mirror the padding and stride mechanisms available in convolutional layers and are essential for achieving a desired output shape in network architectures.
0
1
Updated 2026-06-12
Tags
D2L
Dive into Deep Learning @ D2L