What is adaptive pooling and why is it useful?
easyAnswer
- Given a target output size , computes the kernel and stride needed to produce that output regardless of input size.
- Standard trick to accept variable input resolutions with a fixed-size classifier head. torch.nn.AdaptiveAvgPool2d((1,1)) is the go-to for global pooling.
- Also useful for detection networks that need fixed-size feature maps for RoI heads.
Check yourself — multiple choice
- Only works on 1x1 outputs
- Automatically picks kernel/stride to yield a target output size → supports variable input resolutions
- Same as adaptive learning rate
- Removes all weights
Adaptive pool: auto kernel/stride for any input → fixed-size output → supports variable inputs.
#cnn
Practise Deep Learning
214 interview questions in this topic.
Related questions
- What inductive biases do CNNs have?
- What is the receptive field in a CNN?
- Compute the output shape of a 2D convolution with input (H, W), kernel k, stride s, padding p, dilation d.
- SAME vs VALID vs REFLECT padding — what are the practical differences?
- What is a dilated (atrous) convolution?
- What is a transposed convolution ('deconv') and its checkerboard artifact issue?