提供的训练数据和定义的模型之间的维度不对应。

在MNIST手写数字识别时,在

mnist = input_data.read_data_sets("MNIST_data/")

中,没有加关键字参数one_hot=True

应该为:

mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)

 

posted on 2018-01-17 15:34  Go_Forward  阅读(766)  评论(0编辑  收藏  举报