IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Mojo function

tpool_patch_merger

def tpool_patch_merger[dtype: DType, output_layout: TensorLayout, x_layout: TensorLayout, bounds_layout: TensorLayout](output: TileTensor[dtype, output_layout, MutAnyOrigin], x: TileTensor[dtype, x_layout, ImmutAnyOrigin], bounds: TileTensor[DType.int64, bounds_layout, ImmutAnyOrigin], kH: Int, kW: Int, max_h: Int, max_w: Int, ctx: DeviceContext)

Temporal pooling patch merger entry point.

Parameters:

  • ​dtype (DType): Element type of the input and output tensors.
  • ​output_layout (TensorLayout): Memory layout of the output tensor.
  • ​x_layout (TensorLayout): Memory layout of the input tensor.
  • ​bounds_layout (TensorLayout): Memory layout of the bounds tensor.

Args: