TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tf.contrib.model_pruning.get_weight_sparsity

View source on GitHub

Get sparsity of the weights.

tf.contrib.model_pruning.get_weight_sparsity()

Args:

None

Returns:

A list containing the sparsity of each of the weight tensors