an><span class="n">ignore_index</span><span class="p">,</span> <span class="p">:]</span> <span class="o">=</span> <span class="mi">0</span>
            <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">reduction_method</span><span class="p">(</span><span class="o">-</span><span class="n">label_smoothed</span> <span class="o">*</span> <span class="n">logits</span><span class="p">)</span>

        <span class="k">return</span> <span class="n">F</span><span class