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
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.
I met similar things, too. But if I don't fix it, I cannot use minist. What should I do?
same err. THey also say _Please write your own downloading logic
_
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
Most helpful comment
I discover this on the website
https://www.tensorflow.org/tutorials/keras/save_and_restore_models