s="n">Policy</span><span class="p">],</span>
    <span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
        <span class="sd">&quot;&quot;&quot;</span>
<span class="sd">        Replace modules in the model by user defined policy</span>

<span class="sd">        Args:</span>
<span class="sd">            model (nn.Module): model weight</span>
<span class="sd">            policy_cls (Type[Policy]): class of policy</span>
<span class="sd">        &quot;&quo