question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

module 'tensorflow.python.framework.ops' has no attribute '_TensorLike'

See original GitHub issue

Hi,

I was trying to run: make_image_analogy.py images/arch-mask.jpg images/arch.jpg images/arch-newmask.jpg out/arch

When I got this:

AttributeError: module 'tensorflow.python.framework.ops' has no attribute '_TensorLike'

Any idea how to fix that?

Thank you!

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:8

github_iconTop GitHub Comments

5reactions
Rahul2991commented, Aug 9, 2020

Just fix the imports like from keras import import Sequential

to this: tensorflow.keras import Sequential

Similarly for other imports starting with ‘from keras’

0reactions
mansi-aggarwal-2504commented, Oct 15, 2020

I am getting same error while using ImageAI

I am also getting this error while using ImageAI. Referring to this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

module 'tensorflow.python.framework.ops' has no attribute ...
AttributeError: module 'tensorflow.python.framework.ops' has no attribute '_TensorLike'. Also referred other open issues, but there is no ...
Read more >
module 'tensorflow.python.framework.ops' has no attribute ...
For me, the fix was importing from tensorflow.keras import Sequential from tensorflow.keras.layers import Conv2D, Flatten, Dense. instead of
Read more >
[Fixed] 'tensorflow.python.framework.ops' has no attribute ...
This article will cover the solution for the attribute error that goes like 'tensorflow.python.framework.ops' has no attribute '_tensorlike.
Read more >
AttributeError: module 'tensorflow.python.framework.ops' has ...
ops ' has no attribute '_TensorLike'” Error solution. Hi! Today I will talk about the solution to an error I encountered.
Read more >
module 'tensorflow.python.framework.ops' has no attribute ...
The AttributeError: module 'tensorflow.python.framework.ops' has no attribute '_TensorLike' occurs when you use the Keras standalone API instead of the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found