TensorFlow Cannot feed value of shape (100, 784) for Tensor 'Placeholder:0'

后端 未结 3 714
-上瘾入骨i
-上瘾入骨i 2021-01-13 14:41

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

3条回答
  •  粉色の甜心
    2021-01-13 14:59

    You need to reshape X.

        X = tf.placeholder(tf.float32 , [None ,28 , 28 , 1])
        X = tf.reshape(X , [-1 , 784])
    

提交回复
热议问题