Skip to main content

celu

Function celu 

pub fn celu<const D: usize>(tensor: Tensor<D>, alpha: f64) -> Tensor<D>
Expand description

Applies the Continuously Differentiable Exponential Linear Unit function element-wise.

celu(x) = max(0, x) + min(0, alpha * (exp(x / alpha) - 1))

See also CELU

ยงArguments

  • alpha: scaling parameter for the negative part.