Keras fails after upgrade

Since this might be helpful to others, I finally chased down the source of this error.

There’s an incompatibility between the lambda-stack versions of tensorflow and Keras, but tensorflow includes it’s own keras module which can be used instead. So I changed all my imports that originally looked like

from Keras import backend as K

to instead look like

from tensorflow.keras import backend as K

and things started working again.

1 Like