ELU

class dragon.vm.tensorflow.keras.layers.ELU(
  alpha=1.0,
  **kwargs
)[source]

The layer to 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 * (\exp(x) - 1), & \text{ otherwise } \end{cases} \]

Examples:

x = tf.constant([-1, 0, 1], 'float32')
print(tf.keras.layers.ELU(inplace=False)(x))

__init__

ELU.__init__(
  alpha=1.0,
  **kwargs
)[source]

Create an ELU layer.

Parameters:
  • alpha (float, optional, default=0.3) – The value to \(\alpha\).