Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: cannot import name 'keras_tensor' from 'tensorflow.python.keras.engine'

I'm getting this error while loading the tensorflow addons library

import tensorflow_addons as tfa

ImportError: cannot import name 'keras_tensor' from 'tensorflow.python.keras.engine'
like image 579
dpacman Avatar asked Dec 27 '20 09:12

dpacman


Video Answer


1 Answers

This error is because you have incompatibility issues between your TensorFlow, Python and tensorflow-addons. Uninstall the tensorflow-addons and install the version based on the table below. Refer the Github repo for more information.

enter image description here

like image 110
dpacman Avatar answered Oct 19 '22 20:10

dpacman