InvalidArgumentError after model compilation

Good Evening guys :slight_smile:
I am really delighted to join your community and learn more from you , I have begun Tensorflow professional developer certificate and reached the last week of the last course however I faced an issue with regards to weeks four assignment it returned an error InvalidArgumentError it says incompatible shapes
after I created , compiled and trained the model but I have no clue as to how I can solve this issue
see the attached pictures and help me with your suggestions and ideas
thanks in advance

Thank you guys I solved it by changing the architecture of the model

Please see this topic. Do remove code from your post. It’s ok to leave stacktraces.

Hello, how to solve that? I have same problem. Thanks

Did you see the link in my previous reply?

It has been solved, thank you.