IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /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. /get-started.md).

Mojo function

max_pool_ceil_mode_true_shape

def max_pool_ceil_mode_true_shape[dtype: DType, int_type: DType](input: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=input.static_spec], filter: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=filter.static_spec], strides: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=strides.static_spec], dilations: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=dilations.static_spec], paddings: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=paddings.static_spec]) -> IndexList[Int(4)]

Computes the output shape for the mo.max_pool_ceil_mode_true graph op.

Parameters:

  • ​dtype (DType): Element type of the pooling input tensor.
  • ​int_type (DType): Element type of the filter, strides, dilations, and paddings tensors.

Args:

Returns:

IndexList[Int(4)]: The output shape of the max pooling operation with ceil mode enabled.