Functional API Code - AttributeError

I get this error.

AttributeError: ‘Dense’ object has no attribute ‘op’

So, I can’t go forward from there.

I’m also not sure how to write the code correctly. In the early one, the layers were a list. But here, they are separately assigned to variables. I don’t think I understand the theory of Functional API. I need to learn more about that as well.

The Functional API is just like calling regular python functions. You pass it some data arguments and get back at least one data value.

Typically that data value is used as the input to the next layer.