ly the weight mask before every forward pass of the module.</p>
<p><code>sparsify_method</code>: per RigL paper, <a href="/fastsparse/core.html#uniform_sparsity"><code>uniform_sparsity</code></a> has fewer FLOPs, <a href="/fastsparse/core.html#erdos_renyi_sparsity"><code>erdos_renyi_sparsity</code></a>
results in better model.</p>
<p>Returns a fastai Hooks object. You can remove the hooks after training by calling hooks.remove().</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
   