AttributeError: module 'tensorflow' has no attribute 'enable_eager_execution'

0 votes

Hi Guys,

I am getting this below error when trying to import tensorflow module.

AttributeError: module 'tensorflow' has no attribute 'enable_eager_execution'

How can I solve this error?

Apr 21 in Machine Learning by akhtar
• 32,960 points
764 views

1 answer to this question.

0 votes

Hi@akhtar,

Tensorflow 2.0 has eager_execution enabled by default and so there is no need for you to run enable_eager_execution. Only if you are  running versions below 2.0 then, you have to enable eager execution.

$ conda update tensorflow

Hope this will clear your doubt.

answered Apr 21 by MD
• 77,580 points

Related Questions In Machine Learning

0 votes
1 answer

AttributeError: module 'tensorflow' has no attribute 'estimator'.

Hi@akhtar, There was an environment issue, tensorflow was ...READ MORE

answered Apr 23 in Machine Learning by MD
• 77,580 points
862 views
0 votes
1 answer

AttributeError: module 'tensorflow' has no attribute 'placeholder'

Hi@akhtar, In Tensorflow 2.0, there is no placeholder. ...READ MORE

answered Jul 13 in Machine Learning by MD
• 77,580 points
762 views
0 votes
1 answer

AttributeError: module 'tensorflow' has no attribute 'log'

Hi@akhtar, In Tensorflow 2.0, there is no attribute named ...READ MORE

answered Jul 13 in Machine Learning by MD
• 77,580 points
1,307 views
0 votes
1 answer
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,556 views
0 votes
0 answers
0 votes
0 answers

Hello I have some errors while implementing variational autoencoder

def dense_layers(sizes): return tfk.Sequential([tfkl.Dense(size, ...READ MORE

May 18, 2019 in Machine Learning by anonymous

edited May 20, 2019 by Omkar 529 views
0 votes
1 answer

AttributeError: module 'tensorflow.compat' has no attribute 'v1'

Hi@Usman, It seems you are using an older ...READ MORE

answered Jul 18 in Machine Learning by MD
• 77,580 points
1,698 views
0 votes
1 answer

AttributeError: module 'tensorflow' has no attribute 'constant'

Hi@akhtar, There may be problem in the versions. ...READ MORE

answered Apr 21 in Machine Learning by MD
• 77,580 points
5,123 views