Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bda41af

Browse files
authored
Update cluttered_mnist.py
1 parent e93ec37 commit bda41af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

transformer/cluttered_mnist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123

124124
# %% Define loss/eval/training functions
125125
cross_entropy = tf.reduce_mean(
126-
tf.nn.softmax_cross_entropy_with_logits(y_logits, y))
126+
tf.nn.softmax_cross_entropy_with_logits(logits=y_logits, targets=y))
127127
opt = tf.train.AdamOptimizer()
128128
optimizer = opt.minimize(cross_entropy)
129129
grads = opt.compute_gradients(cross_entropy, [b_fc_loc2])

0 commit comments

Comments
 (0)