Python wrappers
Public Python APIs implemented by this engine symbol.Autograd node for the element-wise reciprocal .
Saves the input x so the backward pass can form in the
denominator without recomputing the forward result. The forward and
backward are both undefined at and the caller is responsible for
avoiding that domain point.
Math
\frac{\partial y}{\partial x} = -\frac{1}{x^2}, \qquad \frac{\partial \mathcal{L}}{\partial x} = -\frac{1}{x^2}\,\frac{\partial \mathcal{L}}{\partial y}.$$Attributes
schema_ v1OpSchemaRegistered as
"reciprocal" with AmpPolicy::Promote.Notes
Dispatch: a correctly rounded 1 / x on CPU (vvrec for F64, a plain
loop for F32 because vvrecf is not exact — backend/cpu/Vforce.cpp) /
MLX element-wise reciprocal (GPU).