Max reduction operation Computes the maximum of tensor elements along specified axes
Input tensor storage type
Axes to reduce along (undefined means reduce all)
Whether to keep reduced dimensions as size 1
Output data type (defaults to same as input)
// Max along axis 1, remove dimensiontype Input = TensorStorage<Float32, [2, 3, 4], [12, 4, 1], DefaultLayoutFlags>;type Result = MaxOp<Input, [1], false>; // Shape: [2, 4] Copy
// Max along axis 1, remove dimensiontype Input = TensorStorage<Float32, [2, 3, 4], [12, 4, 1], DefaultLayoutFlags>;type Result = MaxOp<Input, [1], false>; // Shape: [2, 4]
// Global max (all elements)type GlobalMax = MaxOp<Input, undefined, false>; // Shape: [] Copy
// Global max (all elements)type GlobalMax = MaxOp<Input, undefined, false>; // Shape: []
Max reduction operation Computes the maximum of tensor elements along specified axes