Rate this Page

torch.nn.functional.adaptive_max_pool1d#

torch.nn.functional.adaptive_max_pool1d(input, output_size, return_indices=False)[source]#

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

See AdaptiveMaxPool1d for details and output shape.

Parameters
  • output_size – the target output size (single integer)

  • return_indices – whether to return pooling indices. Default: False