tensorflow ValueError: Cannot feed value of shape ,5000, for Tensor 'output:0', which has shape '
提供的训练数据和定义的模型之间的维度不对应。
在MNIST手写数字识别时,在
mnist = input_data.read_data_sets("MNIST_data/")
中,没有加关键字参数one_hot=True
应该为:
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)