1.AttributeError: module 'tensorflow.python.layers.layers' has no attribute 'Conv2D'
官方解释:https://www.tensorflow.org/api_docs/python/tf/layers/conv2d 弃用了
改; 删除 tf.layers.
2.Error when checking target: expected dense_2 to have 2 dimensions, but got array with shape (55000, 10, 10)
大致意思,就是模型希望输入一个2维的tensor进来,结果输入进来了(55000, 10, 10)这个三维变量。