通过代码中的函数加载线上数据集经常会超时,可以通过以下方式进行下载:

cd ~/.keras
https://storage.googleapis.com/tensorflow/tf-keras-datasets/mnist.npz