首先下载mnist数据集,网址为yan lecun_mnist

读取mnist数据集

然后运行下列代码:

from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("D:\\data\\mnist\\", False, one_hot=True)

相关文章: