googlecodelabs / feedback

Provide feedback to our codelabs by filing an issue here
18 stars 22 forks source link

[cloud-tensorflow-mnist]: Add logits and labels for softmax_cross_entropy_with_logits #320

Open gokul-uf opened 6 years ago

gokul-uf commented 6 years ago

In section 8 of the tutorial, the call to softmax is cross_entropy = tf.nn.softmax_cross_entropy_with_logits(Ylogits, Y_)

Latest versions of TF require that you explicitly mention which arguments are logits and labels.

So, it should be cross_entropy = tf.nn.softmax_cross_entropy_with_logits(logits = Ylogits, labels = Y_)

thehans commented 6 years ago

I just experienced the same issue.