span>
<span class="sd">    &quot;&quot;&quot;</span>
    <span class="n">img_nhwc</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">asarray</span><span class="p">(</span><span class="n">img_nhwc</span><span class="p">)</span>
    <span class="n">N</span><span class="p">,</span> <span class="n">h</span><span class="p">,</span> <span class="n">w</span><span class="p">,</span> <span class="n">c</span> <span class="o">=</span> <span class="n">img_nhwc</span><span c