Layers defined with vars() does not appear in summary() method

When we define layers using the vars() function, such as we have done in the week 4 assignment, the model.summary() method does not show the layers. For example:

image

image

image

The only layer that appears is the one I did not define using the vars() function. Is there a way to make the other layers appear properly?

Try defining the layers without using vars()? It seems the vars() function is not properly recognized.