Skip to content Skip to sidebar Skip to footer

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:

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

Solution 2:

I solved this problem simply by uploading Tensorflow with pip.

pip install -U tensorflow

Post a Comment for "Tensorflow: 'module' Object Has No Attribute 'sessionrunhook'"