Python wrappers
Public Python APIs implemented by this engine symbol.Autograd node for element-wise exponential .
Saves the output rather than the input because the backward
formula is and reusing the saved
output avoids a second vvexpf pass.
Math
\frac{\partial y}{\partial x} = e^x = y, \qquad \frac{\partial \mathcal{L}}{\partial x} = y\,\frac{\partial \mathcal{L}}{\partial y}.$$Attributes
schema_v1OpSchemaRegistered as
"exp" with AmpPolicy::ForceFP32 — half- precision inputs are upcast to F32 prior to dispatch to avoid premature overflow / underflow.kSavesInputboolfalse.kSavesOutputbooltrue — saved tensor is .Notes
Dispatch: Accelerate vvexpf/vvexp (CPU) / MLX exp (GPU).
Large-magnitude positive inputs overflow to +inf; large-magnitude
negative inputs flush to 0.