AttributeError module tensorflow has no attribute log

0 votes

Hi Guys,

I am trying to use the TensorFlow module in my Mask-RCNN code. But it is showing me the below error.

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

How can I solve this error?

Jul 13, 2020 in Machine Learning by akhtar
• 38,260 points

edited Jul 13, 2020 by MD 6,591 views

1 answer to this question.

0 votes

Hi@akhtar,

In Tensorflow 2.0, there is no attribute named log. You need to downgrade your TensorFlow if you want to use log attribute in your code. You can create one different environment in anaconda and install TensorFlow 1.x and run your code. It will work. 

I hope this will help.

answered Jul 13, 2020 by MD
• 95,460 points
Sorry, it is not working.

this is very strange that Tensorflow and Keras librarires have lots of and crucial conflicts with each other.

I am also grabbed with such tension. Even, my Mask RCNN is working on CPU side but not working on GPU side just because of libraries installation.

if I install Tensorflow then Keras is not working, and if I install the correct version of Keras then tensorflow is not working, They hate each others.....

I am sorry for that.....
0 votes
Use tf.math.log
answered Apr 23, 2021 by Vipulnath

edited 5 days ago

Related Questions In Machine Learning

0 votes
1 answer

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

Hi@akhtar, Tensorflow 2.0 has eager_execution enabled by default and ...READ MORE

answered Apr 21, 2020 in Machine Learning by MD
• 95,460 points
3,252 views
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, 2020 in Machine Learning by MD
• 95,460 points
5,040 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, 2020 in Machine Learning by MD
• 95,460 points
3,893 views
0 votes
1 answer

AttributeError: module 'matplotlib' has no attribute 'scatter'

Hi@akhtar, To avoid this error, make sure you ...READ MORE

answered Apr 16, 2020 in Machine Learning by MD
• 95,460 points
12,333 views
0 votes
2 answers
+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 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,639 views
0 votes
1 answer
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 19, 2019 in Machine Learning by anonymous

edited May 20, 2019 by Omkar 1,461 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 19, 2020 in Machine Learning by MD
• 95,460 points
4,016 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, 2020 in Machine Learning by MD
• 95,460 points
11,830 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