Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 466955128
  • Loading branch information
evcu authored and tensorflower-gardener committed Aug 11, 2022
1 parent 9131a7a commit c4b0254
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def _update_mask(self, weights):
"""
sparsity = self._pruning_schedule(self._step_fn())[1]
with tf.name_scope('pruning_ops'):
abs_weights = tf.math.abs(weights)
# abs_weights = tf.math.abs(weights)
abs_weights = tf.random.uniform(weights.shape, dtype=weights.dtype)
k = tf.dtypes.cast(
tf.math.maximum(
tf.math.round(
Expand Down

0 comments on commit c4b0254

Please sign in to comment.