Identifier: BSD-3-Clause</span>

<span class="sd">&quot;&quot;&quot;</span>
<span class="sd">Implementation of various torch.autograd.Function with straight-through estimators.</span>
<span class="sd">&quot;&quot;&quot;</span>

<span class="kn">from</span><span class="w"> </span><span class="nn">typing</span><span class="w"> </span><span class="kn">import</span> <span class="n">Tuple</span>

<span class="kn">import</span><span class="w"> </span><span class="nn">torch</span>
<span class="kn">from</span><span