</span><span class="n">model</span><span class="p">,</span> <span class="mf">0.9</span><span class="p">,</span> <span class="n">sparse_f</span><span class="o">=</span><span class="n">uniform_sparsity</span><span class="p">)</span>
<span class="n">n_nonzeros</span> <span class="o">=</span> <span class="nb">sum</span><span class="p">(</span><span class="n">m</span><span class="o">.</span><span class="n">weight</span><span class="o">.</span><span class="n">abs</span><span class="p">()</span><span class="o">.</