解決問題
read_data_sets (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use alternatives such as official/mnist/dataset.py from tensorflow/models.
解決思路
read_data_set(來自tensorflow.contrib.learn.python.learn.data sets.mnist)已棄用,将在将來的版本中删除。
解決方法
更新說明:使用tensorflow/models中的official/mnist/dataset.py等備選方案。
将
from tensorflow.examples.tutorials.mnist import input_data
改為
from tensorflow.contrib.learn.python.learn.datasets.mnist import read_data_sets
哈哈,大功告成!