Python wrappers
Public Python APIs implemented by this engine symbol.Autograd node for the element-wise natural logarithm .
Saves the input x so the backward pass can divide the upstream
gradient by it. Defined only for strictly positive inputs; non-positive
values produce NaN / , matching the reference framework.
Math
\frac{\partial y}{\partial x} = \frac{1}{x}, \qquad \frac{\partial \mathcal{L}}{\partial x} = \frac{1}{x}\,\frac{\partial \mathcal{L}}{\partial y}, \quad x > 0.$$Attributes
schema_v1OpSchemaRegistered as
"log" with AmpPolicy::ForceFP32.Notes
Dispatch: Accelerate vvlogf/vvlog (CPU) / MLX log (GPU).