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:
- input (
ManagedTensorSlice[IOSpec[_, _].Input, static_spec=input.static_spec]): Input tensor reduced alongaxisby minimum and maximum.
Returns:
IndexList[input.static_spec.rank]: The output shape with axis replaced by 2 (for min and max).
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!