Chapter 13 Question 7 Code
- Langage dominant
- Jupyter Notebook
- Étoiles
- 25.6k
- Forks
- 12.7k
- Métriques de merge des PR
- Métriques de PR en attente
Description
The code provided to produce a CNN seems to error out. I am able to run all of the code up to the very last block.
```
with tf.Session() as sess:
init.run()
for epoch in range(n_epochs):
for X_batch, y_batch in shuffle_batch(X_train, y_train, batch_size):
sess.run(training_op, feed_dict={X: X_batch, y: y_batch})
acc_batch = accuracy.eval(feed_dict={X: X_batch, y: y_batch})
acc_test = accuracy.eval(feed_dict={X: X_test, y: y_test})
print(epoch, "Last batch accuracy:", acc_batch, "Test accuracy:", acc_test)
save_path = saver.save(sess, "./my_mnist_model")
```
Which produces the following error.
`ValueError: Cannot feed value of shape (100, 784) for Tensor 'inputs/X:0', which has shape '(?, 1960)'`
Has anyone else encountered this or knowledgeable about what could be going on?
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.