import tensorflow as tf
import tensorflowvisu
from tensorflow.contrib.learn.python.learn.datasets.mnist import read_data_sets
import tensorflowvisu
from tensorflow.contrib.learn.python.learn.datasets.mnist import read_data_sets
tf.set_random_seed(0)
mnist = read_data_sets("D:/GoogleDownload/machine learning/MNIST/", one_hot=True, reshape=False, validation_size=0)
附上原图
图中画红线部分为下载的MNIST数据集的路径,是整体路径,不是单个文件路径(浪费了我好久的时间),在路径末尾加上“/”