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

在MNIST手写数字识别时,在

mnist = input_data.read_data_sets("MNIST_data/")

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

应该为:

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

 

相关文章:

  • 2022-12-23
  • 2021-11-18
  • 2022-03-12
  • 2022-12-23
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2021-09-19
猜你喜欢
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2021-10-27
  • 2021-06-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案