天天看點

成功解決 \tensorflow\…\datasets\mnist.py:290: DataSet.__init__ (from tensorflow.contrib.learn.python.lea

解決問題

\tensorflow\contrib\learn\python\learn\datasets\mnist.py:290: DataSet.__init__ (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.

解決思路

警告位置:\tensorflow\contrib\learn\python\learn\datasets\mnist.py:290:

DataSet.__init__ 來自tensorflow.contrib.learn.python.learn.datasets.mnist)已棄用,将在将來的版本中删除。

解決方法

更新說明:

請使用tensorflow/models 中的 official/mnist/dataset.py 等備選方案。