Code is available at https://github.com/kazimravian/Comput.... Average pooling involves calculating the average for each patch of the feature map. This means that each 2 × 2 square of the feature map is downsampled to the average value in the square. Maximum pooling, or max pooling, is a pooling operation that calculates the maximum, or largest, value in each patch of each feature map. The results are downsampled or pooled feature maps that highlight the most present feature in the patch, not the average presence of the features, as in the case of average pooling.