Learn Before
Example
Rectangular Pooling Window with Asymmetric Padding and Stride
Pooling layers support non-square (rectangular) pooling windows where the height and width are specified independently. When using a rectangular window, the padding and stride can also be set asymmetrically to match each spatial dimension. For example, a max-pooling layer with a window, a stride of , and padding of applies a -row by -column window, adds column of padding on each side of the width dimension, and moves the window rows vertically and columns horizontally per step. Applied to a input with values through , this configuration produces a output with elements .
0
1
Updated 2026-05-12
Tags
D2L
Dive into Deep Learning @ D2L