Trying to create a simply keras model where the output of the model is the input multiplied by a dense layer element-wise.
inputs = tf.keras.Input(shape=256)
weightLayer = tf.keras.layers.Dense(256)
multipled = tf.keras.layers.Dot(axes=1)([inputs,weightLayer])
model = tf.keras.Model(inputs, multipled)
However this gives me the "Nonetype object is not subscriptable" error. I'm assuming this is because the input shape for the Dot layer is facing issues? How do I solve this?