Commit 0594661a authored by Aaron Hu's avatar Aaron Hu Committed by GitHub
Browse files

Python3 dict.values() does not return a list

Add a list wrapper will make it run properly in Python3 as well as Python2.
parent 0f904081
...@@ -183,7 +183,7 @@ def main(_): ...@@ -183,7 +183,7 @@ def main(_):
checkpoint_path=checkpoint_path, checkpoint_path=checkpoint_path,
logdir=FLAGS.eval_dir, logdir=FLAGS.eval_dir,
num_evals=num_batches, num_evals=num_batches,
eval_op=names_to_updates.values(), eval_op=list(names_to_updates.values()),
variables_to_restore=variables_to_restore) variables_to_restore=variables_to_restore)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment