I have this auto-encoder model built in keras with tensorflow backend
encoded = Dense(units=600, activation='relu')(input_img)
encoded = Dense(units=500, activation='relu')(encoded)
encoded = Dense(units=bottleneck, activation='relu')(encoded)
decoded = Dense(units=500, activation='relu')(encoded)
decoded = Dense(units=600, activation='relu')(decoded)
decoded = Dense(units=img_size, activation='sigmoid')(decoded)
The input to the encoder is a one-dimensional array i.e [1,2,3,4,5] or in other words, a vector of an image
I'd like to add an LSTM layer in to improve my results, however, my understanding it that an LSTM requires 3 dimensional data, and I want to keep my data as a vector. Could someone give me an example of how I could integrate a layer like this using reshaping perhaps? All of my attempts thus far have failed.
[[1], [2], ..., [5]]