Python wrappers
Public Python APIs implemented by this engine symbol.Autograd node for the multi-axis reduction mean .
Backward broadcasts the upstream gradient back to the input shape and divides by , the product of the reduced dimension sizes.
Math
Attributes
schema_v1OpSchemaRegistered as
"mean" with AmpPolicy::Promote.kSavesInputboolfalse. Backward depends only on and shape metadata.Notes
Dispatch: Accelerate kernel (CPU) / MLX mean (GPU). Empty
reductions return NaN ().
Static methods
1Methods
2Backward — broadcasts back to input shape.
Graph-mode mean backward: divides the broadcast-expanded gradient by the number of reduced elements so second-order graphs flow through the division correctly.