Python wrappers
Public Python APIs implemented by this engine symbol.Autograd node for the SiLU / Swish activation (Hendrycks & Gimpel 2016 / Ramachandran et al. 2017).
Saves the input ; the backward delegates to the backend so the fused gradient kernel () runs as a single pass on MLX or a single Accelerate composition on CPU rather than the prior seven-op storage-primitive expansion.
Math
= \sigma(x)\,\bigl(1 + x\,(1 - \sigma(x))\bigr)$$ **References** Hendrycks & Gimpel, "Gaussian Error Linear Units (GELUs)", 2016. Ramachandran et al., "Searching for Activation Functions", 2017.Attributes
schema_ v1OpSchema"silu", AmpPolicy::Promote.Static methods
1Methods
2Eager-mode backward: dispatches to IBackend::silu_backward with the saved input and the upstream gradient.
Graph-mode backward: the same derivative built from composable ops so the gradient itself stays differentiable. The fused backend kernel returns a Storage, which carries no graph — a second derivative has to come from the expression, not the kernel.