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
97f97d99
Commit
97f97d99
authored
Oct 17, 2019
by
minoring
Browse files
Fix indent
parent
9691ef7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
official/mnist/mnist.py
official/mnist/mnist.py
+2
-1
No files found.
official/mnist/mnist.py
View file @
97f97d99
...
...
@@ -144,7 +144,8 @@ def model_fn(features, labels, mode, params):
return
tf
.
estimator
.
EstimatorSpec
(
mode
=
tf
.
estimator
.
ModeKeys
.
TRAIN
,
loss
=
loss
,
train_op
=
optimizer
.
minimize
(
loss
,
train_op
=
optimizer
.
minimize
(
loss
,
tf
.
compat
.
v1
.
train
.
get_or_create_global_step
()))
if
mode
==
tf
.
estimator
.
ModeKeys
.
EVAL
:
logits
=
model
(
image
,
training
=
False
)
...
...
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