T type inference</span>
        <span class="c1"># Workaround: required for compatibility with the JIT for PT=2.2.2</span>
        <span class="n">is_signed</span> <span class="o">=</span> <span class="nb">bool</span><span class="p">(</span><span class="n">is_signed</span><span class="o">.</span><span class="n">item</span><span class="p">())</span> <span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">is_signed</span><span class="p">,</span> <span class="n">Tens