Course 4, Week1,Assignment 2 ,Excercise 2 ,Error:

AttributeError: ‘Flatten’ object has no attribute ‘shape’
Need Help!!!
I did according to assignment guide but got an error and don’t know, where to be corrected?

My guess is that you are making a mistake in how you use the Functional API. Calling a layer function returns you a function and then you call that function with the actual input tensor. My guess is you only have one level of call.

The documentation in the notebooks about how to use the Sequential and Functional APIs is pretty minimal. I would recommend reading this helpful thread on the forums which gives a much nicer explanation of how to use these TF features.

Thanks for correcting my mistake.