Commit 3f8ea5cb authored by Neal Wu's avatar Neal Wu
Browse files

Fixes for differential_privacy

parent 0b1e767f
......@@ -73,7 +73,7 @@ def maybe_download(file_urls, directory):
result.append(filepath)
# Test if file already exists
if not gfile.Exists(filepath):
if not tf.gfile.Exists(filepath):
def _progress(count, block_size, total_size):
sys.stdout.write('\r>> Downloading %s %.1f%%' % (filename,
float(count * block_size) / float(total_size) * 100.0))
......@@ -124,7 +124,7 @@ def extract_svhn(local_url):
:return:
"""
with gfile.Open(local_url, mode='r') as file_obj:
with tf.gfile.Open(local_url, mode='r') as file_obj:
# Load MATLAB matrix using scipy IO
dict = loadmat(file_obj)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment