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
e93ec372
Commit
e93ec372
authored
Jan 08, 2017
by
Martin Wicke
Committed by
GitHub
Jan 08, 2017
Browse files
Fix xent call in mnist tutorial code
Fixes #857.
parent
4b53df3c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tutorials/image/mnist/convolutional.py
tutorials/image/mnist/convolutional.py
+1
-1
No files found.
tutorials/image/mnist/convolutional.py
View file @
e93ec372
...
...
@@ -228,7 +228,7 @@ def main(_):
# Training computation: logits + cross-entropy loss.
logits
=
model
(
train_data_node
,
True
)
loss
=
tf
.
reduce_mean
(
tf
.
nn
.
sparse_softmax_cross_entropy_with_logits
(
l
ogits
,
train_labels_node
))
l
abels
=
train_labels_node
,
logits
=
logits
))
# L2 regularization for the fully connected parameters.
regularizers
=
(
tf
.
nn
.
l2_loss
(
fc1_weights
)
+
tf
.
nn
.
l2_loss
(
fc1_biases
)
+
...
...
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