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

max_pool_cpu

def max_pool_cpu[dtype: DType, int_type: DType](input: TileTensor[dtype, address_space=input.address_space, linear_idx_type=input.linear_idx_type, element_size=input.element_size], filter: TileTensor[int_type, address_space=filter.address_space, linear_idx_type=filter.linear_idx_type, element_size=filter.element_size], strides: TileTensor[int_type, address_space=strides.address_space, linear_idx_type=strides.linear_idx_type, element_size=strides.element_size], dilations: TileTensor[int_type, address_space=dilations.address_space, linear_idx_type=dilations.linear_idx_type, element_size=dilations.element_size], paddings: TileTensor[int_type, address_space=paddings.address_space, linear_idx_type=paddings.linear_idx_type, element_size=paddings.element_size], output: TileTensor[dtype, address_space=output.address_space, linear_idx_type=output.linear_idx_type, element_size=output.element_size], ceil_mode: Bool = False)

Computes fp32 pooling.

Args: