<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/ops/nn.py#L164-L186) |

Softplus activation function.

#### View aliases


**Main aliases**

[`tf.keras.ops.nn.softplus`](https://www.tensorflow.org/api_docs/python/tf/keras/ops/softplus)

<br />

    tf.keras.ops.softplus(
        x
    )

It is defined as `f(x) = log(exp(x) + 1)`, where `log` is the natural
logarithm and `exp` is the exponential function.

<br />

<br />

<br />

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

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A tensor with the same shape as `x`. ||

<br />

#### Example:

    x = keras.ops.convert_to_tensor([-0.555, 0.0, 0.555])
    keras.ops.softplus(x)
    array([0.45366603, 0.6931472, 1.008666], dtype=float32)