duction method of criterion. (default: mean)</span>
<span class="sd">        zero_infibity (bool): whether to zero infinite losses and the associated gradients. (default: True)</span>
<span class="sd">    &quot;&quot;&quot;</span>
    <span class="n">criterion_name</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="n">field</span><span class="p">(</span>
        <span class="n">default</span><span class="o">=</span><span class="s2">&quot;ctc&quot;</span><span cl