Exponential Linear Unit (ELU)#
API#
- class warp_nn.modules.activations.ELU(*, alpha: float = 1.0)[source]#
Bases:
ModuleExponential Linear Unit (ELU) activation function.
This class computes the element-wise ELU activation function:
\[\begin{split}\text{ELU}(x) = \begin{cases} x, & \text{ if } x \geq 0\\ \alpha \, (e^x - 1), & \text{ if } x < 0 \end{cases}\end{split}\]- Parameters:
alpha – The alpha value for the ELU function.