评价此页

torch.nn.functional.adaptive_max_pool1d#

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

对由多个输入平面组成的输入信号应用 1D 自适应最大池化。

See AdaptiveMaxPool1d for details and output shape.

参数
  • output_size – the target output size (single integer)

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