in the function convolution_model(input_shape), when i put the value of
outputs = tf.keras.layers.Dense(6, activation='softmax')
i get the error
'Dense' object has no attribute 'op'
How can i correct this?
in the function convolution_model(input_shape), when i put the value of
outputs = tf.keras.layers.Dense(6, activation='softmax')
i get the error
'Dense' object has no attribute 'op'
How can i correct this?
Hi @pg7064,
The outputs should be something along the lines of:
outputs = tf.keras.layers.Dense(6, activation='softmax')(outputs)
Do check if this helps or not!
Hi, I tried this but now i get this error:
UnboundLocalError: local variable 'outputs' referenced before assignment
Well, maybe outputs is not the correct input for that layer. What tensor holds the output of the previous layer? I think @thearkamitra was just making the point that you need an input tensor for that layer. It’s up to you to look at the code and pick the appropriate input.