User Activity

I have a Keras model and topology. It works in version 5.2.0 but shows an error in version 5.0.0 as shown below. May i know how i could resolve it?