Skip to content

Commit c15aedf

Browse files
range doesn't return list anymore
Code was written for python2
1 parent 3d2f895 commit c15aedf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/rnn/quickdraw/create_dataset.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def _pick_output_shard():
125125
tf.python_io.TFRecordWriter("%s-%05i-of-%05i" % (output_file, i,
126126
output_shards)))
127127

128-
reading_order = range(len(file_handles)) * observations_per_class
128+
reading_order = list(range(len(file_handles))) * observations_per_class
129129
random.shuffle(reading_order)
130130

131131
for c in reading_order:

0 commit comments

Comments
 (0)