TensorFlow-Examples icon indicating copy to clipboard operation
TensorFlow-Examples copied to clipboard

WARNING: read_data_sets is deprecated and will be removed in a future version

Open zackgd1024 opened this issue 7 years ago • 4 comments

While I'm trying to run the the Convolutional Neural Network example, I got the following WARNING:

WARNING:tensorflow:From 2.py:17: 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.

Do I need to fix the WARNING?

Thanks

zackgd1024 avatar May 07 '18 07:05 zackgd1024

No,This is related to the version of tensorflow . I guess it will remove this warning in next version of tensorflow. But in next version this model will change.

anonymone avatar Oct 01 '18 17:10 anonymone

I met similar things, too. But if I don't fix it, I cannot use minist. What should I do?

reid2016 avatar Dec 03 '18 15:12 reid2016

same err. THey also say _Please write your own downloading logic screenshot from 2019-01-05 13-52-20

_

ghost avatar Jan 05 '19 10:01 ghost

I discover this on the website https://www.tensorflow.org/tutorials/keras/save_and_restore_models

(train_images, train_labels), (test_images, test_labels) = tf.keras.datasets.mnist.load_data()

train_labels = train_labels[:1000]
test_labels = test_labels[:1000]

train_images = train_images[:1000].reshape(-1, 28 * 28) / 255.0
test_images = test_images[:1000].reshape(-1, 28 * 28) / 255.0

quick0831 avatar Jan 26 '19 01:01 quick0831