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
1b221a2c
Commit
1b221a2c
authored
Jul 20, 2017
by
Marianne Linhares Monteiro
Committed by
GitHub
Jul 20, 2017
Browse files
Removing duplicated tower_losses.append(tower_loss)
parent
2a5f2a95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
tutorials/image/cifar10_estimator/cifar10_main.py
tutorials/image/cifar10_estimator/cifar10_main.py
+0
-1
No files found.
tutorials/image/cifar10_estimator/cifar10_main.py
View file @
1b221a2c
...
...
@@ -282,7 +282,6 @@ def _tower_fn(is_training, weight_decay, feature, label, tower_losses,
tower_loss
=
tf
.
losses
.
sparse_softmax_cross_entropy
(
logits
=
logits
,
labels
=
label
)
tower_loss
=
tf
.
reduce_mean
(
tower_loss
)
tower_losses
.
append
(
tower_loss
)
model_params
=
tf
.
trainable_variables
()
tower_loss
+=
weight_decay
*
tf
.
add_n
(
...
...
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