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

Some errors I noticed #2

Merged
merged 1 commit into from Jan 8, 2019
Merged

Some errors I noticed #2

merged 1 commit into from Jan 8, 2019

Conversation

och234
Copy link
Contributor

@och234 och234 commented Jan 8, 2019

since we cannot iterate through a float its better we take the floor division of
(len(train_x) / batch_size) ==> (len(train_x) // batch_size)

can't specify softmax_cross_entropy_with_logits without labels or logits
tf.nn.softmax_cross_entropy_with_logits( y, y_) ==> tf.nn.softmax_cross_entropy_with_logits(labels = y_, logits = y)

since we cannot iterate through a float its better we take the floor division of 
(len(train_x) / batch_size) ==> (len(train_x) // batch_size)

can't specify softmax_cross_entropy_with_logits without labels or logits  
tf.nn.softmax_cross_entropy_with_logits( y, y_) ==> tf.nn.softmax_cross_entropy_with_logits(labels = y_, logits = y)
@lexfridman lexfridman merged commit fe68aae into lexfridman:master Jan 8, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants