hon">def softplus_inv(x, eps=1e-6, threshold=20.):
    &#34;&#34;&#34;Compute the softplus inverse.&#34;&#34;&#34;
    y = torch.zeros_like(x)

    idx = x &lt; threshold
    # We deliberately ignore eps to avoid -inf
    y[idx] = torch.log(torch.exp(x[idx]) - 1)
    y[~idx] = x[~idx]

    return y</code></pre>
</details>
</dd>
</dl>
</section>
<section>
</section>
</article>
<nav id="sidebar">
<h1>Index</h1>
<div class="toc">
<ul></ul>
</div>
<ul id="index">
<li><h3>Super-module</h3>
<ul>
<li><code><a titl