Keras fails after upgrade

Good find — it’s because if you do import keras it’s version 2.3.1 at the time of writing and if you do import tensorflow.keras it’s version 2.4.0 which aren’t compatible. It looks like your models were 2.4.0 compatible?