一、关于数据集
从官网 上下载并解压数据集
第一步、下载得到的是四个压缩文件。
将这四个压缩文件全部进行解压,得到下列一共八个文件,并将这个文件夹改名为MNIST_data,之后将这个文件夹放到你的项目里。
第二步、新建一个.py文件,起名为input_data.py
将下面的代码复制粘贴到input_data.py中
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#