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
b0581d0a
Commit
b0581d0a
authored
Oct 17, 2019
by
Hongkun Yu
Committed by
saberkun
Oct 17, 2019
Browse files
Internal change
PiperOrigin-RevId: 275393975
parent
2791e600
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 @
b0581d0a
...
@@ -65,7 +65,7 @@ def download(directory, filename):
...
@@ -65,7 +65,7 @@ def download(directory, filename):
if
tf
.
io
.
gfile
.
exists
(
filepath
):
if
tf
.
io
.
gfile
.
exists
(
filepath
):
return
filepath
return
filepath
if
not
tf
.
io
.
gfile
.
exists
(
directory
):
if
not
tf
.
io
.
gfile
.
exists
(
directory
):
tf
.
io
.
gfile
.
m
k
dir
(
directory
)
tf
.
io
.
gfile
.
m
ake
dir
s
(
directory
)
# CVDF mirror of http://yann.lecun.com/exdb/mnist/
# CVDF mirror of http://yann.lecun.com/exdb/mnist/
url
=
'https://storage.googleapis.com/cvdf-datasets/mnist/'
+
filename
+
'.gz'
url
=
'https://storage.googleapis.com/cvdf-datasets/mnist/'
+
filename
+
'.gz'
_
,
zipped_filepath
=
tempfile
.
mkstemp
(
suffix
=
'.gz'
)
_
,
zipped_filepath
=
tempfile
.
mkstemp
(
suffix
=
'.gz'
)
...
...
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