Open lkoll opened 4 years ago
Here source of the problem lies at the position where you defined placeholder X. It should be like:
X = tf.placeholder(tf.float32, shape=[None, n_inputs], name="X")
given,
height = 28
width = 28
n_inputs = height * width
Notice n_inputs
evaluate to 784
here, so X
has the shape (?, 784)
.
But in your case X
evaluates to shape (?, 1960)
.
I hope this resolves the error.
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.
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?