Mean reduction operation Computes the mean 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 float version of input)
// Mean along last axis, keep dimensiontype Input = TensorStorage<Int32, [2, 3, 4], [12, 4, 1], DefaultLayoutFlags>;type Result = MeanOp<Input, [-1], true>; // Shape: [2, 3, 1], DType: Float32 Copy
// Mean along last axis, keep dimensiontype Input = TensorStorage<Int32, [2, 3, 4], [12, 4, 1], DefaultLayoutFlags>;type Result = MeanOp<Input, [-1], true>; // Shape: [2, 3, 1], DType: Float32
// Global mean (all elements)type GlobalMean = MeanOp<Input, undefined, false>; // Shape: [], DType: Float32 Copy
// Global mean (all elements)type GlobalMean = MeanOp<Input, undefined, false>; // Shape: [], DType: Float32
Mean reduction operation Computes the mean of tensor elements along specified axes