Layer name Error in Week 1 Programming Assignment 2

Hey All ,

Can someone please help me figure out why the " for layer in summary(happy_model)" throws an exception for me?

My Model

I believe you’re showing output from two different executions of your code.

Once you get the assert from the “for layer in summary…” line of code, the code below that (which displays the “sequential_15” model summary) is invalid, because it is left-over from some previous run of your code.

I suspect you have an error in the layer definitions inside the happyModel() function.

Hey Tom,

Thanks for the help .

Yes there was a issue in happyModel() ,I could fix the code , I missed the input_shape parameter for ZeroPadding2D , so the Model wasnt build .

Thanks and Regards,