我正在尝试使用tensorflow本身提供的MNIST数据集运行一个简单的NN示例,该数据集在Google Colab上运行。我想要获取原始数据,并自行安装包含这些数据的结构。我能够训练NN,但是当我尝试从测试集中预测一个示例时,我得到了错误 ValueError: Error when checking input: expected dense_input to have shape (784,) but got array with shape (1,). 有人能帮我解决这个问题吗?我是Python和Keras/TensorFlow的新手。 当我跑的时候 print(inp.shape