elu

dragon.vm.tensorflow.nn.elu(
  features,
  alpha=1.0,
  name=None,
  **kwargs
)[source]

Apply the exponential linear unit. [Clevert et.al, 2015].

The ELU function is defined as:

\[\text{ELU}(x) = \begin{cases} x, & \text{ if } x \geq 0 \\ \alpha * (e^{x} - 1), & \text{ otherwise } \end{cases} \]
Parameters:
  • features (dragon.Tensor) – The tensor \(x\).
  • alpha (float, optional, default=1.) – The value of \(\alpha\).
  • name (str, optional) – A optional name for the operation.
Returns:

dragon.Tensor – The output tensor.