Skip to content

Commit 162ddc7

Browse files
committed
address reviewer comment: update comment.
Change-Id: Ia5d8d2a9c7455099e9dd1023c311ce6702eb739d
1 parent a7e4522 commit 162ddc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_model_optimization/python/core/sparsity/keras/pruning_impl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def conditional_mask_update(self):
241241

242242
def maybe_update_masks():
243243
if self._sparsity_m_by_n:
244-
# only calculate m_by_n masks at step 1
244+
# Update structured sparsity masks only at step 1
245245
return tf.math.equal(self._step_fn(), 1)
246246
else:
247247
return self._pruning_schedule(self._step_fn())[0]

0 commit comments

Comments
 (0)