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
84a32a8c
Commit
84a32a8c
authored
Jan 08, 2017
by
Martin Wicke
Committed by
GitHub
Jan 08, 2017
Browse files
Update cifar10.py
parent
ba3cb317
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tutorials/image/cifar10/cifar10.py
tutorials/image/cifar10/cifar10.py
+1
-1
No files found.
tutorials/image/cifar10/cifar10.py
View file @
84a32a8c
...
...
@@ -286,7 +286,7 @@ def loss(logits, labels):
# Calculate the average cross entropy loss across the batch.
labels
=
tf
.
cast
(
labels
,
tf
.
int64
)
cross_entropy
=
tf
.
nn
.
sparse_softmax_cross_entropy_with_logits
(
logits
,
labels
,
name
=
'cross_entropy_per_example'
)
logits
=
logits
,
labels
=
labels
,
name
=
'cross_entropy_per_example'
)
cross_entropy_mean
=
tf
.
reduce_mean
(
cross_entropy
,
name
=
'cross_entropy'
)
tf
.
add_to_collection
(
'losses'
,
cross_entropy_mean
)
...
...
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