Skip to content

Commit

Permalink
Closes tensorflow#32
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 239054994
  • Loading branch information
npapernot authored and tensorflower-gardener committed Mar 18, 2019
1 parent f58891f commit a1e9ca2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions research/pate_2017/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def extract_mnist_data(filename, num_images, image_size, pixel_depth):
np.save(filename, data)
return data
else:
with tf.gfile.Open(filename+'.npy', mode='r') as file_obj:
with tf.gfile.Open(filename+'.npy', mode='rb') as file_obj:
return np.load(file_obj)


Expand All @@ -266,7 +266,7 @@ def extract_mnist_labels(filename, num_images):
np.save(filename, labels)
return labels
else:
with tf.gfile.Open(filename+'.npy', mode='r') as file_obj:
with tf.gfile.Open(filename+'.npy', mode='rb') as file_obj:
return np.load(file_obj)


Expand Down

0 comments on commit a1e9ca2

Please sign in to comment.