an><span class="n">clamp_scaling</span><span class="p">(</span><span class="n">out</span><span class="p">)</span>
        <span class="c1"># Apply restrict_value preprocess</span>
        <span class="n">out</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">restrict_scaling_pre</span><span class="p">(</span><span class="n">out</span><span class="p">)</span>
        <span class="c1"># Apply restrict_value and clamping</span>
        <span class="n">out</span>