Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
1d5dba69
Commit
1d5dba69
authored
Aug 04, 2017
by
cclauss
Committed by
GitHub
Aug 04, 2017
Browse files
Define xrange() for Python 3
See #2105
parent
928c8899
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
rebar/rebar_train.py
rebar/rebar_train.py
+6
-0
No files found.
rebar/rebar_train.py
View file @
1d5dba69
...
@@ -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"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment