Tensorflow: 'module' Object Has No Attribute 'sessionrunhook'
I'm running TensorFlow version r0.10 on Ubuntu 16.04. I have been able to run some basic tutorials, including the MIST character recognition tutorial. I'm trying to complete the CI
Solution 1:
The code you are trying to run is from a later version of the TensorFlow repository than the version you have installed:
- The code that uses
tf.train.SessionRunHook
was added to the master branch on November 23rd, 2016, and is part of the r0.12 release. - The
tf.train.SessionRunHook
class itself was created on October 3rd, 2016, and first became part of an official release in r0.12.
TensorFlow tutorial code only works with the contemporary version of the library. To run the CIFAR-10 tutorial using r0.10, you should clone the r0.10
branch of the GitHub repository:
$ git clone -b r0.10 https://github.com/tensorflow/tensorflow.git
Post a Comment for "Tensorflow: 'module' Object Has No Attribute 'sessionrunhook'"