1</span><span class="p">)</span>
        <span class="n">max_logits_length</span> <span class="o">=</span> <span class="n">logits</span><span class="o">.</span><span class="n">size</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span>

        <span class="k">if</span> <span class="n">max_logits_length</span> <span class="o">&gt;</span> <span class="n">max_target_length</span><span class="p">:</span>
            <span class="n">logits</span> <span class="o">=</span> <span class="n"