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
3f8ea5cb
Commit
3f8ea5cb
authored
Apr 12, 2017
by
Neal Wu
Browse files
Fixes for differential_privacy
parent
0b1e767f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
34 deletions
+34
-34
differential_privacy/multiple_teachers/analysis.py
differential_privacy/multiple_teachers/analysis.py
+3
-3
differential_privacy/multiple_teachers/deep_cnn.py
differential_privacy/multiple_teachers/deep_cnn.py
+28
-28
differential_privacy/multiple_teachers/input.py
differential_privacy/multiple_teachers/input.py
+3
-3
No files found.
differential_privacy/multiple_teachers/analysis.py
View file @
3f8ea5cb
differential_privacy/multiple_teachers/deep_cnn.py
View file @
3f8ea5cb
differential_privacy/multiple_teachers/input.py
View file @
3f8ea5cb
...
...
@@ -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
)
...
...
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