Model not built Error C1W4 Lab1

After calling the class as shown in the lab,


I ran into this error when I tried to plot the model.

Could it be that there’s a build function that isn’t covered in the lesson?

note that I use Python 3.11.7 and tensorflow 2.15.0

I’ve resolved this by passing input data to the model.