AttributeError: module ‘tensorflow’ has no attribute ‘enable_eager_execution’

No overhead anymore — Tensorflow…

Photo by Possessed Photography on Unsplash

Hi,

You might be getting this problem because of the TensorFlow version.

  1. Check your TensorFlow version
resource: Author

2. So, Now if you are using enable_eager_execution , It will raise an Error. Because TensorFlow 2 by default running eager_execution(). You can check it!

resource: Author

3. If your TensorFlow version is less than 2.0 then enable_eager_execution will not raise an error.

So, If you are using TensorFlow 2. No need to do it manually, Hurray!

For more updates in the field of Computer Science, go to my YouTube channel:

Click Here!

--

--

Muhammad Iqbal bazmi

A self-taught programmer, Data Scientist and Machine Learning Engineer