.unit_prune</code></h1>
</header>
<section id="section-intro">
<p>Unit prune a neural network layer.</p>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">&#34;&#34;&#34;Unit prune a neural network layer.&#34;&#34;&#34;

import numpy as np
from condense.optimizer.masking_functions import mask_min_value as default_masking_function


def u_prune_layer(ndarray, p_sparsity=0.1, masking_function=default_masking_function):
    &#34;&#34;&#34;Prunes a ndarray t