Skip to content

Commit

Permalink
Merge pull request tensorflow#1055 from snnn/master
Browse files Browse the repository at this point in the history
Update download_and_convert_mnist.py for 1.0 and python3 compatibility
  • Loading branch information
nealwu authored Mar 15, 2017
2 parents 3c50f47 + c6a9fd8 commit 0b8bfa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slim/datasets/download_and_convert_mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def _add_to_tfrecord(data_filename, labels_filename, num_images,
png_string = sess.run(encoded_png, feed_dict={image: images[j]})

example = dataset_utils.image_to_tfexample(
png_string, 'png', _IMAGE_SIZE, _IMAGE_SIZE, labels[j])
png_string, 'png'.encode(), _IMAGE_SIZE, _IMAGE_SIZE, labels[j])
tfrecord_writer.write(example.SerializeToString())


Expand Down

0 comments on commit 0b8bfa8

Please sign in to comment.