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
12e977e4
Unverified
Commit
12e977e4
authored
Jun 04, 2018
by
Lukasz Kaiser
Committed by
GitHub
Jun 04, 2018
Browse files
Merge pull request #4417 from aarorasimbulus/patch-1
range doesn't return list anymore
parents
2eeb85fe
c15aedf3
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 @
12e977e4
...
@@ -125,7 +125,7 @@ def convert_data(trainingdata_dir,
...
@@ -125,7 +125,7 @@ def convert_data(trainingdata_dir,
tf
.
python_io
.
TFRecordWriter
(
"%s-%05i-of-%05i"
%
(
output_file
,
i
,
tf
.
python_io
.
TFRecordWriter
(
"%s-%05i-of-%05i"
%
(
output_file
,
i
,
output_shards
)))
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
)
random
.
shuffle
(
reading_order
)
for
c
in
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