Skip to content

Commit 4998f07

Browse files
liyunlu0618alanchiao
authored andcommitted
Python 3 compatability fix.
PiperOrigin-RevId: 247704781
1 parent f031247 commit 4998f07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def on_epoch_end(self, batch, logs=None):
102102
del values[-1]
103103
del params[-1]
104104

105-
param_value_pairs = zip(params, values)
105+
param_value_pairs = list(zip(params, values))
106106

107107
for mask, mask_value in param_value_pairs[::2]:
108108
pruning_logs.update({

0 commit comments

Comments
 (0)