<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#L685-L709) |

Compute `log(1 - exp(-|x|))` elementwise in a numerically stable way.

    tfp.math.log1mexp(
        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., `'log1mexp'`). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| `log1mexp` | Float `Tensor` of `log1mexp(x)`. |

<br />

#### References

\[1\]: Machler, Martin. Accurately computing log(1 - exp(-\|a\|))
<https://cran.r-project.org/web/packages/Rmpfr/vignettes/log1mexp-note.pdf>