tf.contrib.model_pruning.apply_mask

Apply mask to a given weight tensor.

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

Defined in contrib/model_pruning/python/pruning.py.

Args:

  • x: Input weight tensor
  • scope: The current variable scope. Defaults to "".

Returns:

Tensor representing masked_weights