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

mlp_mnist_simple.ipynb => softmax_cross_entropy_with_logits with named arguments (labels=..., logits=..., ...) #17

Open
aydenkim opened this issue Nov 16, 2017 · 1 comment

Comments

@aydenkim
Copy link

aydenkim commented Nov 16, 2017

About https://github.com/sjchoi86/Tensorflow-101/blob/master/notebooks/mlp_mnist_simple.ipynb

Recently updated Tensorflow (1.4) will make the following error.

ValueError: Only call softmax_cross_entropy_with_logits with named arguments (labels=..., logits=..., ...)

Just simply adding named arguments will solve this issue.

cost = tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(logits =pred, labels=y))

FYI, http://www.edwith.org/deeplearningchoi/lecture/15552/ has the right code.

@aydenkim aydenkim changed the title softmax_cross_entropy_with_logits with named arguments (labels=..., logits=..., ...) mlp_mnist_simple.ipynb => softmax_cross_entropy_with_logits with named arguments (labels=..., logits=..., ...) Nov 16, 2017
@hierarchyJK
Copy link

got it

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

2 participants