AvgPool2d — PyTorch 1.10.1 documentation
pytorch.org › docs › stableApplies a 2D average pooling over an input signal composed of several input planes. If padding is non-zero, then the input is implicitly zero-padded on both sides for padding number of points. When ceil_mode=True, sliding windows are allowed to go off-bounds if they start within the left padding or the input.
AdaptiveAvgPool2d — PyTorch 1.10.1 documentation
pytorch.org › docs › stableAdaptiveAvgPool2d. Applies a 2D adaptive average pooling over an input signal composed of several input planes. The output is of size H x W, for any input size. The number of output features is equal to the number of input planes. output_size – the target output size of the image of the form H x W. Can be a tuple (H, W) or a single H for a ...
MaxPool2d — PyTorch 1.10.1 documentation
pytorch.org › docs › stableMaxPool2d. Applies a 2D max pooling over an input signal composed of several input planes. If padding is non-zero, then the input is implicitly padded with negative infinity on both sides for padding number of points. dilation controls the spacing between the kernel points.