pytorch / 1 / generated / torch.nn.functional.adaptive_max_pool2d.html

torch.nn.functional.adaptive_max_pool2d

torch.nn.functional.adaptive_max_pool2d(*args, **kwargs)

Applies a 2D adaptive max pooling over an input signal composed of several input planes.

See AdaptiveMaxPool2d for details and output shape.

Parameters:
  • output_size – the target output size (single integer or double-integer tuple)
  • return_indices – whether to return pooling indices. Default: False

© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/1.13/generated/torch.nn.functional.adaptive_max_pool2d.html