/span><span class="k">import</span><span class="w"> </span><span class="n">triton_to_np_dtype</span>

<span class="cp"># preprocessing function</span>
<span class="n">def</span><span class="w"> </span><span class="n">rn50_preprocess</span><span class="p">(</span><span class="n">img_path</span><span class="o">=</span><span class="s">&quot;/triton_example/img1.jpg&quot;</span><span class="p">)</span><span class="o">:</span>
<span class="w">  </span><span class="n">img</span><span class="w"> </span><span class