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
f4161b6f
Commit
f4161b6f
authored
Jan 08, 2017
by
Martin Wicke
Committed by
GitHub
Jan 08, 2017
Browse files
Update vgsl_model.py
parent
9e9aa5d1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
street/python/vgsl_model.py
street/python/vgsl_model.py
+1
-1
No files found.
street/python/vgsl_model.py
View file @
f4161b6f
...
...
@@ -454,7 +454,7 @@ class VGSLImageModel(object):
self
.
labels
=
tf
.
slice
(
self
.
labels
,
[
0
,
0
],
[
-
1
,
1
])
self
.
labels
=
tf
.
reshape
(
self
.
labels
,
[
-
1
])
cross_entropy
=
tf
.
nn
.
sparse_softmax_cross_entropy_with_logits
(
logits
,
self
.
labels
,
name
=
'xent'
)
logits
=
logits
,
labels
=
self
.
labels
,
name
=
'xent'
)
else
:
# TODO(rays) Labels need an extra dimension for logistic, so different
# padding functions are needed, as well as a different loss function.
...
...
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