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
bda41af1
Commit
bda41af1
authored
Jan 08, 2017
by
Martin Wicke
Committed by
GitHub
Jan 08, 2017
Browse files
Update cluttered_mnist.py
parent
e93ec372
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
transformer/cluttered_mnist.py
transformer/cluttered_mnist.py
+1
-1
No files found.
transformer/cluttered_mnist.py
View file @
bda41af1
...
...
@@ -123,7 +123,7 @@ y_logits = tf.matmul(h_fc1_drop, W_fc2) + b_fc2
# %% Define loss/eval/training functions
cross_entropy
=
tf
.
reduce_mean
(
tf
.
nn
.
softmax_cross_entropy_with_logits
(
y_logits
,
y
))
tf
.
nn
.
softmax_cross_entropy_with_logits
(
logits
=
y_logits
,
targets
=
y
))
opt
=
tf
.
train
.
AdamOptimizer
()
optimizer
=
opt
.
minimize
(
cross_entropy
)
grads
=
opt
.
compute_gradients
(
cross_entropy
,
[
b_fc_loc2
])
...
...
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