10

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'
denfromufa
  • 5,610
  • 13
  • 81
  • 138
dpacman
  • 3,683
  • 2
  • 20
  • 35

1 Answers1

40

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.

compatibility

dpacman
  • 3,683
  • 2
  • 20
  • 35