Skip to content

Commit

Permalink
Define xrange() for Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Aug 4, 2017
1 parent 928c889 commit 1d5dba6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rebar/rebar_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
import rebar
import datasets
import logger as L

try:
xrange # Python 2
except NameError:
xrange = range # Python 3

gfile = tf.gfile

tf.app.flags.DEFINE_string("working_dir", "/tmp/rebar",
Expand Down

0 comments on commit 1d5dba6

Please sign in to comment.