<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/experimental/math/manual_special_functions.py#L308-L381) |

Patches in the manually implemented special functions.

    @contextlib.contextmanager
    tfp.experimental.math.patch_manual_special_functions()

Normally you'd just use functions coming from the array library you're using,
but on some platforms (like TPU) the default implementations are
insufficiently precise for certain tasks when running under 32 bits (64 bit
implementations are typically okay).

This patches in manual implementations of those functions which are provide
higher precision at the cost of speed. The list of affected functions is:

- `exp`
- `log`
- `expm1`
- `log1p`
- `logsumexp` (aka `reduce_logsumexp`)
- `softplus`

<br />

<br />

<br />

| ## Yields ||
|---|---|
| Nothing. ||

<br />