Explorar el Código

Merge pull request #551 from inflation/patch-1

Python3 dict.values() does not return a list
Neal Wu hace 8 años
padre
commit
f7ff59490e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      slim/eval_image_classifier.py

+ 1 - 1
slim/eval_image_classifier.py

@@ -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)