ageron / ageron/handson-ml

Chapter 13 Question 7 Code

Aberta
#566 1 comentário 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Jupyter Notebook
Estrelas
25.6k
Forks
12.7k
Métricas de merge de PRs
Métricas de PR pendentes

Descrição

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?

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.