>logits</span><span class="p">[:,</span> <span class="p">:</span><span class="n">max_target_length</span><span class="p">,</span> <span class="p">:]</span>
        <span class="k">elif</span> <span class="n">max_target_length</span> <span class="o">&gt;</span> <span class="n">max_logits_length</span><span class="p">:</span>
            <span class="n">targets</span> <span class="o">=</span> <span class="n">targets</span><span class="p">[:,</span> <span class="p">:</span><span class="n">max_logits_length</sp