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,
ImplicitlyDestructible
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.
shapeβ
static def shape[axis: Int](input: ManagedTensorSlice[Input, static_spec=input.static_spec]) -> IndexList[input.static_spec.rank]
Returns:
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!