import input_data MNIST tensorflow not working

前端 未结 15 1572
感情败类
感情败类 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:36

    The old tutorial said, to import the MNIST data, use:

    import input_data
    mnist = input_data.read_data_sets('MNIST_data', one_hot=True)
    

    This will cause the error. The new tutorial uses the following code to do so:

    from tensorflow.examples.tutorials.mnist import input_data
    mnist = input_data.read_data_sets("MNIST_data", one_hot=True)
    

    And this works well.

提交回复
热议问题