Watch talks from the 2019 TensorFlow Dev Summit Watch now

tf.contrib.model_pruning.get_weight_sparsity

tf.contrib.model_pruning.get_weight_sparsity()

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

Get sparsity of the weights.

Args:

None

Returns:

A list containing the sparsity of each of the weight tensors