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
ceed1a31
Commit
ceed1a31
authored
Mar 20, 2017
by
stream
Committed by
Neal Wu
Mar 20, 2017
Browse files
old argument targets->labels of tf.nn.softmax_cross_entropy_with_logits for tf 1.0
parent
0bd8e24d
Changes
1
Show 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 @
ceed1a31
...
...
@@ -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
(
logits
=
y_logits
,
target
s
=
y
))
tf
.
nn
.
softmax_cross_entropy_with_logits
(
logits
=
y_logits
,
label
s
=
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