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

Bug after recent Tensorflow update #16

Closed
adai183 opened this issue Feb 23, 2017 · 6 comments
Closed

Bug after recent Tensorflow update #16

adai183 opened this issue Feb 23, 2017 · 6 comments

Comments

@adai183
Copy link

adai183 commented Feb 23, 2017

cross_entropy = tf.nn.softmax_cross_entropy_with_logits(logits, one_hot_y)
need to be:
cross_entropy = tf.nn.softmax_cross_entropy_with_logits(logits=logits, labels=one_hot_y)

If not we get:

Raise en error if labels do not sum to 1 exception

This came up in the discussion forum.

@mwhayford
Copy link

Thanks for this comment! I had this same issue to when loading for the first time.

@nandanlahurikar
Copy link

cross_entropy = tf.nn.softmax_cross_entropy_with_logits(logits=LeNet(x), labels=one_hot_y)

@zippau
Copy link

zippau commented Mar 16, 2017

agree... cross_entropy = tf.nn.softmax_cross_entropy_with_logits(logits=logits, labels=one_hot_y)

@CreatCodeBuild
Copy link

I am a classroom mentor. New students start to get this bug because they use 1.0.

I think Udacity code should use 1.0 standard as well.

@CreatCodeBuild
Copy link

CreatCodeBuild commented Mar 26, 2017 via email

@mvirgo
Copy link
Contributor

mvirgo commented Apr 13, 2018

Since we are still using v0.12.1, closing this - will be updated when we move to the newer versions.

@mvirgo mvirgo closed this as completed Apr 13, 2018
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

6 participants