I'm new to Tensorflow and trying to programm a CNN with it. Im watching a tutorial and do exactly, 100% same code, and still get an error message at the end, that says: ValueError:
Solution 1:
You define y
of size [?, 1]
here:
y = tf.placeholder(tf.int32, shape=[None,1], name="y")
.
Change it to:
y = tf.placeholder(tf.int32, shape=[None,10], name="y")
Note that the shape is changed to [None,10]
.
Edit:
Set one_hot
to False
in mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
.
Post a Comment for "Valueerror: Cannot Feed Value Of Shape"