C1W3_Lab Error: "Layer has never been called and thus has no defined input"

I am sharing a very well explained post related to recalling sequential layers, I don’t if it’s related to this, but surely will help you understand how one needs to recall codes related to sequential and functional api