TensorFlow MNIST example not running with fully_connected_feed.py

后端 未结 2 1649
無奈伤痛
無奈伤痛 2020-12-18 22:05

I am able to run the Deep MNIST Example fine, but when running fully_connected_feed.py, I am getting the following error:

File \"fu         


        
2条回答
  •  温柔的废话
    2020-12-18 22:31

    This is a Python path issue. Assuming that the directory tensorflow/g3doc/tutorials/mnist is your current working directory (or in your Python path), the easiest way to resolve it is to change the following lines in fully_connected_feed.py from:

    from tensorflow.g3doc.tutorials.mnist import input_data
    from tensorflow.g3doc.tutorials.mnist import mnist
    

    ...to:

    import input_data
    import mnist
    

提交回复
热议问题