<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/probability/blob/v0.25.0/tensorflow_probability/python/math/generic.py#L778-L792) |

Compute `log(cosh(x))` in a numerically stable way.

    tfp.math.log_cosh(
        x, name=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | Float `Tensor`. |
| `name` | Python `str` name prefixed to Ops created by this function. Default value: `None` (i.e., `'log_cosh'`). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| `log_cosh` | `log_cosh(x)`. |

<br />