Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit c5e13db

Browse files
authored
Merge pull request #210 from ajbouh/ajbouh-python3
Fix Python3 support in model_builder.py
2 parents 2758f5b + 51279cf commit c5e13db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensor2tensor/utils/model_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def nth_model(n):
195195
features, skip=(skipping_is_on and skip_this_one))
196196
with tf.variable_scope("losses_avg", reuse=True):
197197
total_loss, ops = 0.0, []
198-
for loss_key, loss_value in losses_dict.iteritems():
198+
for loss_key, loss_value in six.iteritems(losses_dict):
199199
loss_moving_avg = tf.get_variable("problem_%d/%s_loss" % (n,
200200
loss_key))
201201
ops.append(

0 commit comments

Comments
 (0)