TensorPlay

Latest development documentation · Updated 2026-09-08. A documentation snapshot for package 1.0.0.dev20260909 is not available.

On this page

tensorplay.nn.functional.fractional_max_pool2d_with_indices

tensorplay.nn.functional.fractional_max_pool2d_with_indices(input: TensorBase, kernel_size, output_size=None, output_ratio=None, return_indices: bool = True, _random_samples=None)[source]

Applies 2D fractional max pooling over an input signal composed of several input planes, returning (output, indices).

The max-pooling operation is applied in kH×kWkH \times kW regions by a stochastic step size determined by the target output size. The number of output features is equal to the number of input planes.

Parameters:
  • kernel_size – the size of the window, k or (kH, kW)

  • output_size – target output size oH x oW

  • output_ratio – alternative to output_size, in range (0, 1)

  • return_indices – return pooling indices as well

  • _random_samples – optional (B, C, 2) random starts override

See FractionalMaxPool2d for details.

Search documentation

Search all 1,743 documentation pages.

Keyboard shortcuts

Global

  • /Focus search
  • ?This dialog
  • ,Open settings
  • jAI assistant

Search

  • Navigate results
  • Open result
  • escClose

Package

  • mMain information
  • dDocs
  • .Code
  • -Changelog
  • tTimeline
  • sStats
  • vVersions