为了账号安全,请及时绑定邮箱和手机立即绑定

提示请使用tf.data来实现此功能,怎么搞

D:\Anaconda3\python.exe F:/Python/mnist_testdemo/mnist/regression.py

D:\Anaconda3\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.

  from ._conv import register_converters as _register_converters

WARNING:tensorflow:From F:/Python/mnist_testdemo/mnist/regression.py:4: 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.

WARNING:tensorflow:From D:\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\mnist.py:260: maybe_download (from tensorflow.contrib.learn.python.learn.datasets.base) is deprecated and will be removed in a future version.

Instructions for updating:

Please write your own downloading logic.

WARNING:tensorflow:From D:\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\base.py:252: _internal_retry.<locals>.wrap.<locals>.wrapped_fn (from tensorflow.contrib.learn.python.learn.datasets.base) is deprecated and will be removed in a future version.

Instructions for updating:

Please use urllib or similar directly.

Successfully downloaded train-images-idx3-ubyte.gz 9912422 bytes.

Extracting MNIST_data\train-images-idx3-ubyte.gz

WARNING:tensorflow:From D:\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\mnist.py:262: extract_images (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.

Instructions for updating:

Please use tf.data to implement this functionality.


正在回答

5 回答

这里报的是个警告,说这个mnist数据接口在后续版本里会删除掉。不影响正常使用的。

0 回复 有任何疑惑可以回复我~

多运行两次就可以了

0 回复 有任何疑惑可以回复我~

可以先把TensorFlow降级,弄到1.5左右应该可以。tf.data是相对新一些的API,或许是不兼容

0 回复 有任何疑惑可以回复我~

我的跟你的差不多下载数据集时一堆警告,不知道什么原因

0 回复 有任何疑惑可以回复我~

首先看一下你的数据是否完全下载成功,怀疑是数据下载的问题

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

提示请使用tf.data来实现此功能,怎么搞

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信