<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/keras-team/keras/tree/v3.15.1/keras/src/activations/activations.py#L111-L120) |

Leaky relu activation function.

    tf.keras.activations.leaky_relu(
        x, negative_slope=0.2
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | Input tensor. |
| `negative_slope` | A `float` that controls the slope for values lower than the threshold. |

<br />