TensorFlow MNIST example not running with fully_connected_feed.py
I checked this out and realized that input_data
was not built-in. So I downloaded the
For Tensorflow API above 2.0, to use MNIST dataset following command can be used,
import tensorflow_datasets as tfds
data = tfds.load(name = "mnist")
So let's assume that you are in the directory: /somePath/tensorflow/tutorial
(and this is your working directory).
All you need to do is to download the input_data.py and put it this. Let the file name where you invoke:
import input_data
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
...
is main.py
and it is also in this directory.
Whenever this is done, you can just start running main.py
which will start downloading the files and will put them in the MNIST_data folder (once they are there the script will not be downloading them next time).
How can I start the tutorial
I didn't download the folder you did but I installed tensorflow by pip and then I had similar problem.
My workaround was to replace
import tensorflow.examples.tutorials.mnist.input_data
with
import tensorflow.examples.tutorials.mnist.input_data as input_data