C4 W2 Assignment 2 Exercise 2

Here is my code
[snippet deleted by mentor]

And here is error I get

I was stuck here for some time. And I don’t understand the code much, so I don’t know what is wrong in it. Please help guide me to the right direction.

Please pay attention to the tensorflow functional api and notice that output of the previous layer is connected to the current layer via the __call__ method. Do you notice anything wrong with the parameter when calling preprocess_input ?

I’m no longer stuck now, thank you.