Week 2 Assignment 2 "Dense has no attribute op"

Not sure what I’m doing wrong here. The relevant lines of code and the error message are below.

You don’t need the “activation” argument, and you need to also provide the layer with a data parameter.

I’ve been reading the documentation for Dense, but I’m not sure what you mean by a “data parameter” here.

You have to pass the ‘x’ variable to the Dense layer.

1 Like