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 (2, 3) window, a stride of (2, 3), and padding of (0, 1) 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 5, 7, 13, 15.
0
1
Updated 2026-05-12
Tags
D2L
Dive into Deep Learning @ D2L