# tf.contrib.model_pruning.apply_mask

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/model_pruning/python/pruning.py#L90-L114) |

Apply mask to a given weight tensor.

    tf.contrib.model_pruning.apply_mask(
        x, scope=''
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | Input weight tensor |
| `scope` | The current variable scope. Defaults to "". |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Tensor representing masked_weights ||

<br />