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
c15aedf3
Unverified
Commit
c15aedf3
authored
May 31, 2018
by
Akshit Arora
Committed by
GitHub
May 31, 2018
Browse files
range doesn't return list anymore
Code was written for python2
parent
3d2f8959
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tutorials/rnn/quickdraw/create_dataset.py
tutorials/rnn/quickdraw/create_dataset.py
+1
-1
No files found.
tutorials/rnn/quickdraw/create_dataset.py
View file @
c15aedf3
...
...
@@ -125,7 +125,7 @@ def convert_data(trainingdata_dir,
tf
.
python_io
.
TFRecordWriter
(
"%s-%05i-of-%05i"
%
(
output_file
,
i
,
output_shards
)))
reading_order
=
range
(
len
(
file_handles
))
*
observations_per_class
reading_order
=
list
(
range
(
len
(
file_handles
))
)
*
observations_per_class
random
.
shuffle
(
reading_order
)
for
c
in
reading_order
:
...
...
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