Course 4, week 1, assignment 2, use dense

How can I use Dense?
I used " outputs = tf.keras.layers.Dense(6, activation=‘softmax’)" but I have error ‘‘Dense’ object has no attribute ‘op’’.

¿What way I could do it about?

You need to pass something to your layer, as you have done for previous layers, i.e., func(x).

1 Like

Yup! I had the same issues and Jonaslalin is right. You don’t need to pass anything in the sequential model (because it is sequential, and thus assumes the input will come from the last output), but you do need an input for each step in the functional model since the model gives you more flexibility.