ass="n">argmax</span><span class="p">(</span><span class="n">sm_output</span><span class="p">)</span>
    <span class="k">return</span> <span class="n">d</span><span class="p">[</span><span class="nb">str</span><span class="p">(</span><span class="n">ind</span><span class="o">.</span><span class="n">item</span><span class="p">())],</span> <span class="n">sm_output</span><span class="p">[</span><span class="n">ind</span><span class="p">]</span> <span class="c1">#([predicted class, description], probability)<