You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: