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 struct
ReduceMinAndMax
struct ReduceMinAndMax
Registers the mo.reduce.reduce_min_and_max graph op with the graph compiler.
Implemented traitsโ
Methodsโ
executeโ
static def execute[_trace_name: StaticString, axis: Int](output: T, input: T, 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.