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

reduce_reduce_min_and_max_shape

def reduce_reduce_min_and_max_shape[axis: Int](input: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=input.static_spec]) -> IndexList[input.static_spec.rank]

Computes the output shape for the mo.reduce.reduce_min_and_max graph op.

Parameters:

  • axis (Int): Dimension along which to compute the min and max reduction.

Args:

Returns:

IndexList[input.static_spec.rank]: The output shape with axis replaced by 2 (for min and max).