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
120526af
Commit
120526af
authored
Jan 02, 2018
by
Asim Shankar
Browse files
[mnist]: Address review comments.
parent
73def645
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/mnist/dataset.py
official/mnist/dataset.py
+1
-1
No files found.
official/mnist/dataset.py
View file @
120526af
...
@@ -57,7 +57,7 @@ def check_labels_file_header(filename):
...
@@ -57,7 +57,7 @@ def check_labels_file_header(filename):
def
maybe_download
(
directory
,
filename
):
def
maybe_download
(
directory
,
filename
):
"""Download a file from the MNIST dataset, if it doesn't already exist."""
"""Download
(and unzip)
a file from the MNIST dataset, if it doesn't already exist."""
if
not
tf
.
gfile
.
Exists
(
directory
):
if
not
tf
.
gfile
.
Exists
(
directory
):
tf
.
gfile
.
MakeDirs
(
directory
)
tf
.
gfile
.
MakeDirs
(
directory
)
filepath
=
os
.
path
.
join
(
directory
,
filename
)
filepath
=
os
.
path
.
join
(
directory
,
filename
)
...
...
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