# Keras fails after upgrade

**URL:** <https://deeptalk.lambda.ai/t/keras-fails-after-upgrade/1956>\
**Category:** Technical Help\
**Created:** [November 2, 2020, 4:41pm UTC](https://deeptalk.lambda.ai/t/keras-fails-after-upgrade/1956 "2020-11-02T16:41:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bgold](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@bgold](https://deeptalk.lambda.ai/u/bgold)\
**Post date:** [November 9, 2020, 5:01pm UTC](https://deeptalk.lambda.ai/t/keras-fails-after-upgrade/1956/2 "2020-11-09T17:01:53Z")

</div>

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

```auto
from Keras import backend as K

```

to instead look like

```auto
from tensorflow.keras import backend as K

```

and things started working again.

---

_[View the full topic](https://deeptalk.lambda.ai/t/keras-fails-after-upgrade/1956)._
