AttributeError: module ‘tensorflow.python.framework.ops’ has no attribute ‘_TensorLike’” Error solution

SoftkaAI
1 min readSep 25, 2020

Hi! Today I will talk about the solution to an error I encountered.

from keras.models import Sequential
from keras.layers import Dense

I ran into Attribute Error when I used the Keras library in this way. But don’t let that scare you. The solution is pretty simple. The first thing you need to do is make sure that the Tensorflow and Keras libraries are loaded into the virtual environment, and then change the imported Keras libraries as shown below.

from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense

Thank you for reading. Good luck with.

--

--

SoftkaAI

Deep Learning Artificial Intelligence & Machine Learning Solutions