# tfc.ops.soft_round_inverse

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/compression/blob/v2.14.1/tensorflow_compression/python/ops/round_ops.py#L78-L108) |

Inverse of `soft_round`.

#### View aliases


**Main aliases**

[`tfc.soft_round_inverse`](https://www.tensorflow.org/api_docs/python/tfc/ops/soft_round_inverse)

<br />

    tfc.ops.soft_round_inverse(
        y, alpha, eps=0.001
    )

This is described in Sec. 4.1. in the paper
> "Universally Quantized Neural Compression"  
>
> Eirikur Agustsson \& Lucas Theis  
>
> <https://arxiv.org/abs/2006.09952>

<br />

<br />

<br />

| ## Args ||
|---|---|
| `y` | [`tf.Tensor`](https://www.tensorflow.org/api_docs/python/tf/Tensor). Inputs to this function. |
| `alpha` | Float or [`tf.Tensor`](https://www.tensorflow.org/api_docs/python/tf/Tensor). Controls smoothness of the approximation. |
| `eps` | Float. Threshold below which `soft_round` is assumed to equal the identity function. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| [`tf.Tensor`](https://www.tensorflow.org/api_docs/python/tf/Tensor) ||

<br />