Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cloud-tensorflow-mnist]: Section 8 using tf.nn.softmax_cross_entropy_with_logits #160

Open
hgarrereyn opened this issue Feb 26, 2017 · 1 comment
Assignees

Comments

@hgarrereyn
Copy link

For part 4/4 of section 8, the tutorial says to use:

cross_entropy = tf.nn.softmax_cross_entropy_with_logits(Ylogits, Y_)

However, when you use this function you must use named arguments (or it will not run):

cross_entropy = tf.nn.softmax_cross_entropy_with_logits(logits=Y, labels=Y_)

It's a technicality (and the error message you get is straightforward) but I think this might be a point of confusion for people as the line doesn't work out of the box.

@hgarrereyn
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants