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 struct

ReduceMinAndMax

struct ReduceMinAndMax

Implemented traitsโ€‹

AnyType, ImplicitlyDeletable

Methodsโ€‹

executeโ€‹

static def execute[target: StringSlice[StaticConstantOrigin], _trace_name: StringSlice[StaticConstantOrigin], dtype: DType, rank: Int, axis: Int](output: ManagedTensorSlice[Output, static_spec=output.static_spec], input: ManagedTensorSlice[Input, static_spec=input.static_spec], ctx: DeviceContext)

Given a tensor of shape [A, B, C, D] and reducing along dimension 'C' writes to a tensor of shape [A, B, 2, D] where [:, :, 0, :] contains the minimum reduction and [:, :, 1, :] contains the maximum reduction.