I am learning TensorFLow. So to understand how to make something, I tried to copy some code from a source and execute it. But I\'m hitting an error message. So I tried some
You are getting that error because there is a mismatch between the shape of what you are feeding in and what the TensorFlow is expecting. To fix the issue, you might want to reshape your data at placeholder:0
which is batch_X
to
(?, 28, 28, 1)
. For example, you would do the following:
batch_X = np.reshape(batch_X, (-1, 28, 28, 1))