input data (X) shape is (2000, 7, 7, 512)
the net is
visible = Input(shape=(7,7,512))
Lstm = LSTM(units=22, return_sequences=True)(visible)
Dense_1 = Dense(4096)(Lstm)
Dense_2 = Dense(512 ,activation='sigmoid')(Dense_1)
Dense_3 = Dense(5, activation='sigmoid')(Dense_2)
model = Model(input = visible, output=Dense_3)
And the error is:
ValueError: Input 0 is incompatible with layer lstm_1: expected ndim=3, found ndim=4
What should be input_shape for lstm
and other layers?