# tf.keras.activations.elu

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 2 version](https://www.tensorflow.org/api_docs/python/tf/keras/activations/elu) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/keras/activations.py#L75-L91) |

Exponential linear unit.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.keras.activations.elu`](https://www.tensorflow.org/api_docs/python/tf/keras/activations/elu), \`tf.compat.v2.keras.activations.elu\`

<br />

    tf.keras.activations.elu(
        x, alpha=1.0
    )

<br />

<br />

<br />

| ## Arguments ||
|---|---|
| `x` | Input tensor. |
| `alpha` | A scalar, slope of negative section. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| The exponential linear activation: `x` if `x > 0` and `alpha * (exp(x)-1)` if `x < 0`. ||

<br />

#### Reference:

- [Fast and Accurate Deep Network Learning by Exponential
  Linear Units (ELUs)](https://arxiv.org/abs/1511.07289)