Example

Max-Pooling Computation Example

Consider a 2imes22 imes 2 max-pooling layer applied to an input tensor. The pooling window starts from the upper-left and slides across the tensor. At each location, it outputs the maximum value of the input subtensor in the window. For example, if the elements in a given window are 0,1,3,40, 1, 3, 4, the output is max(0,1,3,4)=4\max(0, 1, 3, 4)=4. This operation is repeated for all regions traversed by the window, generating an output tensor where each element is derived from the maximum value in its respective pooling window.

Image 0

0

1

Updated 2026-05-12

Contributors are:

Who are from:

Tags

D2L

Dive into Deep Learning @ D2L