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,170 points
2,429 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,060 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,170 points
2,129 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
322 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
• 58,990 points
304 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,060 points
6,419 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
1,467 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,060 points
281 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,100 points
1,831 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,060 points
994 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,060 points
3,493 views