SELU

class dragon.vm.tensorflow.keras.layers.SELU(**kwargs)[source]

The layer to apply the scaled exponential linear unit. [Klambauer et.al, 2017].

\[\text{SELU}(x) = 1.0507 * \begin{cases} x, & \text{ if } x \geq 0 \\ 1.67326 * (e^{x} - 1), & \text{ otherwise } \end{cases} \]

Examples:

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

__init__

SELU.__init__(**kwargs)[source]

Create an SELU layer.