megengine.functional.nn.adaptive_max_pool2d

adaptive_max_pool2d(inp, oshp)[source]

Applies a 2D max adaptive pooling over an input.

Refer to MaxAdaptivePool2d for more information.

Parameters
Return type

Tensor

Returns

output tensor.