pub fn elu<const D: usize>(tensor: Tensor<D>, alpha: f64) -> Tensor<D>
Applies the Exponential Linear Unit function element-wise.
f(x) =
x for x > 0
alpha * (exp(x) - 1) for x <= 0