tf.contrib.model_pruning.apply_mask

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

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

Apply mask to a given weight tensor.

Args:

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

Returns:

Tensor representing masked_weights