Tensorflow ImportError: cannot import name'abs' error

0 votes

I created one model of ANN using keras and tensorflow. But when I tried to abs in keras it shows me the below error.

Tensorflow ImportError: cannot import name'abs' error
Apr 23 in Machine Learning by akhtar
• 11,270 points
237 views

1 answer to this question.

0 votes

Hi@akhtar,

You may get this error, if you don't have proper versions of keras and tensorflow. Follow the below given steps.

$ pip uninstall tensorflow
$ conda uinstall tensorflow
$ pip uninstall keras
$ conda uninstall keras
$ pip uninstall protobuf
$ conda uninstall protobuf
$ pip install tensorflow
$ pip install keras
answered Apr 23 by MD
• 24,500 points

Related Questions In Machine Learning

0 votes
1 answer

ImportError: cannot import name 'train_test_split' from 'sklearn.linear_model

Hi@MD, I think in your version, linear_model  don't have train_test_split ...READ MORE

answered Apr 13 in Machine Learning by akhtar
• 11,270 points
175 views
0 votes
1 answer

Error While Installing Tensorflow

To install tensorflow you need to have ...READ MORE

answered Sep 20, 2019 in Machine Learning by Sharan
124 views
0 votes
1 answer

After installation of tensorflow ,attribute error: no Session module exists

To install TensorFlow you need to have ...READ MORE

answered Mar 16 in Machine Learning by Sirajul
• 53,110 points
104 views
0 votes
1 answer

ImportError: No module named 'tensorflow.contrib.rnn.python.ops.core_rnn

Hi@akhtar, I think you got this error because of incompatible ...READ MORE

answered Apr 22 in Machine Learning by MD
• 24,500 points
1,169 views
0 votes
1 answer

keras model.fit_generator() several times slower than model.fit()

You may want to check out the ...READ MORE

answered May 31, 2019 in Python by SDeb
• 13,250 points
977 views
+1 vote
1 answer

Index of predicted wrong data in Keras, how to find it?

Simply, use: model.predict() pred = model.predict(x_test) indices = [i for ...READ MORE

answered Sep 28, 2018 in Python by Priyaj
• 57,530 points
894 views
0 votes
1 answer

How to get rid of tensorflow verbose messages with Keras?

If you are using TensorFlow 0.12, you ...READ MORE

answered Jan 24, 2019 in Python by SDeb
• 13,250 points
1,268 views
0 votes
1 answer

ImportError: cannot import name minimum_spanning_tree

Hi@akhtar, I think there may be problem in ...READ MORE

answered Apr 20 in Machine Learning by MD
• 24,500 points
149 views
0 votes
1 answer

ImportError: cannot import name 'LinearRegression' from 'sklearn'

Hi@akhtar, You got this error because LinearRegression is ...READ MORE

answered Apr 24 in Machine Learning by MD
• 24,500 points
239 views