s="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">int_scaling_impl</span><span class="p">(</span><span class="n">bit_width</span><span class="p">)</span>
        <span class="n">pre_threshold</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">pre_scaling_impl</span><span class="p">(</span><span class="n">x</span><span class="p">)</span>
        <span class="n">pre_scale</span> <span class="o">=</span> <span class="n">pre_thres