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
289b4393
Commit
289b4393
authored
Mar 13, 2017
by
Neal Wu
Browse files
Use the old clone loss name instead
parent
8c798f47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
slim/deployment/model_deploy.py
slim/deployment/model_deploy.py
+1
-1
No files found.
slim/deployment/model_deploy.py
View file @
289b4393
...
...
@@ -232,7 +232,7 @@ def _gather_clone_loss(clone, num_clones, regularization_losses):
sum_loss
=
tf
.
add_n
(
all_losses
)
# Add the summaries out of the clone device block.
if
clone_loss
is
not
None
:
tf
.
summary
.
scalar
(
'
clone_loss'
,
clone_loss
)
tf
.
summary
.
scalar
(
clone
.
scope
+
'/
clone_loss'
,
clone_loss
)
if
regularization_loss
is
not
None
:
tf
.
summary
.
scalar
(
'regularization_loss'
,
regularization_loss
)
return
sum_loss
...
...
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