TensorFlow MNIST example not running with fully_connected_feed.py

后端 未结 2 1646
無奈伤痛
無奈伤痛 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
    
    0 讨论(0)
  • 2020-12-18 22:44

    Another alternative is to link the 'g3doc' directory from the github repo into the tensorflow python wheel folder. That way you don't need to change the code.

    0 讨论(0)
提交回复
热议问题