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)(2, 3) window, a stride of (2,3)(2, 3), and padding of (0,1)(0, 1) applies a 22-row by 33-column window, adds 11 column of padding on each side of the width dimension, and moves the window 22 rows vertically and 33 columns horizontally per step. Applied to a 4imes44 imes 4 input with values 00 through 1515, this configuration produces a 2imes22 imes 2 output with elements 5,7,13,155, 7, 13, 15.

0

1

Updated 2026-05-12

Contributors are:

Who are from:

Tags

D2L

Dive into Deep Learning @ D2L