Kürzlich habe ich Tensorflow installiert und Python-Importfehler in CIFAR-Lernprogramm erhalten.
Ich benutze Mac OS X, nur CPU, Python 2.7.Tensorflow - Importfehler in CIFAR-Lernprogramm
$ python cifar10_train.py
Filling queue with 20000 CIFAR images before starting to train. This will take a few minutes.
Traceback (most recent call last):
File "cifar10_train.py", line 120, in
tf.app.run()
File "/Users/sunwoo/tensorflow/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 30, in run
sys.exit(main(sys.argv[:1] + flags_passthrough))
File "cifar10_train.py", line 116, in main
train()
File "cifar10_train.py", line 76, in train
class _LoggerHook(tf.train.SessionRunHook):
AttributeError: 'module' object has no attribute 'SessionRunHook'
Wie kann ich importieren tf.train.SessionRunHook?
Können Sie mir mehr Detailcode geben? Ich kann nicht herausfinden, was mit einer Linie passiert. – daoliker
Mein Code ist hier. https://github.com/tensorflow/tensorflow/blob/r0.11/tensorflow/models/image/cifar10/cifar10_train.py – hamzzi