<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.15.1/tensorflow/python/ops/math_ops.py#L634-L657) |

Computes elementwise softplus: `softplus(x) = log(exp(x) + 1)`.

#### View aliases


**Main aliases**

[`tf.nn.softplus`](https://www.tensorflow.org/api_docs/python/tf/math/softplus.md.txt)

<br />

```python
tf.math.softplus(
    features, name=None
)
```

`softplus` is a smooth approximation of `relu`. Like `relu`, `softplus` always
takes on positive values.

![](https://www.tensorflow.org/images/softplus.png)

#### Example:

```python
import tensorflow as tf
tf.math.softplus(tf.range(0, 2, dtype=tf.float32)).numpy()
array([0.6931472, 1.3132616], dtype=float32)
```

<br />

<br />

<br />

| ## Args ||
|---|---|
| `features` | `Tensor` |
| `name` | Optional: name to associate with this operation. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| `Tensor` ||

<br />