Commit 1d5dba69 authored by cclauss's avatar cclauss Committed by GitHub
Browse files

Define xrange() for Python 3

See #2105
parent 928c8899
...@@ -28,6 +28,12 @@ import tensorflow as tf ...@@ -28,6 +28,12 @@ import tensorflow as tf
import rebar import rebar
import datasets import datasets
import logger as L import logger as L
try:
xrange # Python 2
except NameError:
xrange = range # Python 3
gfile = tf.gfile gfile = tf.gfile
tf.app.flags.DEFINE_string("working_dir", "/tmp/rebar", tf.app.flags.DEFINE_string("working_dir", "/tmp/rebar",
......
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