Commit a29a1d4
authored
Some errors I noticed
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)1 parent 123312f commit a29a1d4
File tree
1 file changed
+2
-2
lines changed- tutorials_previous
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
| 343 | + | |
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| |||
0 commit comments