jax.nn.elu#
- jax.nn.elu(x, alpha=1.0)[source]#
Exponential linear unit activation function.
Computes the element-wise function:
\[\begin{split}\mathrm{elu}(x) = \begin{cases} x, & x > 0\\ \alpha \left(\exp(x) - 1\right), & x \le 0 \end{cases}\end{split}\]- Parameters:
x (ArrayLike) – input array
alpha (ArrayLike) – scalar or array of alpha values (default: 1.0)
- Returns:
An array.
- Return type:
See also