We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7e4522 commit 162ddc7Copy full SHA for 162ddc7
tensorflow_model_optimization/python/core/sparsity/keras/pruning_impl.py
@@ -241,7 +241,7 @@ def conditional_mask_update(self):
241
242
def maybe_update_masks():
243
if self._sparsity_m_by_n:
244
- # only calculate m_by_n masks at step 1
+ # Update structured sparsity masks only at step 1
245
return tf.math.equal(self._step_fn(), 1)
246
else:
247
return self._pruning_schedule(self._step_fn())[0]
0 commit comments