fn
max_pool2d_op
→TensorImplPtrint max_pool2d_op(const int & x, int KH, int KW, int stride_h, int stride_w, int pad_h, int pad_w)Python wrappers
Public Python APIs implemented by this engine symbol.Two-dimensional max pooling over a batch of feature maps.
Emits the maximum of each sliding window. Provides local translation invariance and is the canonical downsampling primitive in convolutional classification networks.
Parameters
xTensorImplPtrInput of shape
(B, C, H, W).KH, KWintPer-axis window size.
stride_h, stride_wint= NonePer-axis stride.
0 is a sentinel meaning "use K". Default: 0.pad_h, pad_wint= NonePer-axis zero-padding. Default:
0.Returns
TensorImplPtrOutput of shape (B, C, H_out, W_out) with and analogously for .