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
70c86f24
".github/vscode:/vscode.git/clone" did not exist on "1bfe6bf20a1de877cc623d11c2eeed8c7091ae90"
Commit
70c86f24
authored
Sep 25, 2017
by
Changming Sun
Committed by
Neal Wu
Sep 25, 2017
Browse files
make official/mnist support hdfs input (#2453)
parent
2d1e1782
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
official/mnist/mnist.py
official/mnist/mnist.py
+2
-2
No files found.
official/mnist/mnist.py
View file @
70c86f24
...
@@ -64,7 +64,7 @@ def input_fn(mode, batch_size=1):
...
@@ -64,7 +64,7 @@ def input_fn(mode, batch_size=1):
assert
mode
==
tf
.
estimator
.
ModeKeys
.
EVAL
,
'invalid mode'
assert
mode
==
tf
.
estimator
.
ModeKeys
.
EVAL
,
'invalid mode'
tfrecords_file
=
os
.
path
.
join
(
FLAGS
.
data_dir
,
'test.tfrecords'
)
tfrecords_file
=
os
.
path
.
join
(
FLAGS
.
data_dir
,
'test.tfrecords'
)
assert
os
.
path
.
e
xists
(
tfrecords_file
),
(
'Run convert_to_records.py first to '
assert
tf
.
gfile
.
E
xists
(
tfrecords_file
),
(
'Run convert_to_records.py first to '
'convert the MNIST data to TFRecord file format.'
)
'convert the MNIST data to TFRecord file format.'
)
dataset
=
tf
.
contrib
.
data
.
TFRecordDataset
([
tfrecords_file
])
dataset
=
tf
.
contrib
.
data
.
TFRecordDataset
([
tfrecords_file
])
...
...
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