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
3a6fff33
Commit
3a6fff33
authored
Apr 04, 2018
by
Dominik Schlösser
Committed by
Karmel Allison
Apr 04, 2018
Browse files
fix: user input for data_format is ignored (#3871)
parent
2041d5ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/mnist/mnist_eager.py
official/mnist/mnist_eager.py
+1
-1
No files found.
official/mnist/mnist_eager.py
View file @
3a6fff33
...
@@ -107,7 +107,7 @@ def main(argv):
...
@@ -107,7 +107,7 @@ def main(argv):
(
device
,
data_format
)
=
(
'/cpu:0'
,
'channels_last'
)
(
device
,
data_format
)
=
(
'/cpu:0'
,
'channels_last'
)
# If data_format is defined in FLAGS, overwrite automatically set value.
# If data_format is defined in FLAGS, overwrite automatically set value.
if
flags
.
data_format
is
not
None
:
if
flags
.
data_format
is
not
None
:
data_format
=
data_format
data_format
=
flags
.
data_format
print
(
'Using device %s, and data format %s.'
%
(
device
,
data_format
))
print
(
'Using device %s, and data format %s.'
%
(
device
,
data_format
))
# Load the datasets
# Load the datasets
...
...
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