import input_data MNIST tensorflow not working

前端 未结 15 1594
感情败类
感情败类 2020-12-09 14:44

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

15条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-09 15:33

    The following steps work perfectly in my Notebook:

    step 1 : get Python files from github : !git clone https://github.com/tensorflow/tensorflow.git

    step 2 : append these files in my Python path :

    import sys

    sys.path.append('/content/tensorflow/tensorflow/examples/tutorials/mnist')

    step 3 : load the MNIST data with 'input_data' fonction

    import input_data

    mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)

    That's all !

提交回复
热议问题