<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#L316-L334) |

Squareplus activation function.

    tf.keras.activations.squareplus(
        x, b=4
    )

The Squareplus activation function is defined as:

`f(x) = (x + sqrt(x^2 + b)) / 2`

Where `b` is a smoothness parameter.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | Input tensor. |
| `b` | Smoothness parameter. Defaults to 4. |

<br />

#### Reference:

- [Ramachandran et al., 2021](https://arxiv.org/abs/2112.11687)