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, 2020 in Machine Learning by akhtar
• 38,230 points
5,791 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, 2020 by MD
• 95,440 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, 2020 in Machine Learning by akhtar
• 38,230 points
7,594 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
818 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, 2020 in Machine Learning by Sirajul
• 59,230 points
763 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, 2020 in Machine Learning by MD
• 95,440 points
10,697 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,300 points
2,845 views
0 votes
1 answer
0 votes
1 answer

AttributeError: module 'coco' has no attribute 'CocoConfig'

Hi@akhtar, You need to import the coco module ...READ MORE

answered Jul 13, 2020 in Machine Learning by MD
• 95,440 points
1,543 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
• 58,090 points
5,331 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, 2020 in Machine Learning by MD
• 95,440 points
1,912 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, 2020 in Machine Learning by MD
• 95,440 points
23,219 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP