Learn Before
Two-Dimensional Pooling Layer Code Implementation
The forward propagation of a two-dimensional pooling layer can be implemented programmatically without using a kernel. A function pool2d(X, pool_size, mode) iterates over the input tensor X with a sliding window defined by pool_size. At each location, it extracts the sub-tensor and computes either its maximum or mean, depending on the mode parameter. Unlike cross-correlation, this computation relies purely on deterministic aggregation over the input regions rather than learnable parameters.
0
1
Tags
D2L
Dive into Deep Learning @ D2L
Related
The output size of pooling
Classifying Skin Lesions with Convolutional Neural Networks
Advantages of Pooling in Convolutional Deep Learning
Types of Pooling Layer in Convolutional Deep Learning
Pooling Parameters and Hyperparameters in Convolutional Deep Learning
Role of pooling
Two-Dimensional Pooling Layer Code Implementation
Pooling vs. Convolution in Multi-Channel Processing