<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#L123-L132) |

Relu6 activation function.

    tf.keras.activations.relu6(
        x
    )

It's the ReLU function, but truncated to a maximum value of 6.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | Input tensor. |

<br />