This is possible using the RepeatVector layer. For instance:
model = Sequential() model.add(Dense(10, input_shape=(1)) model.add(RepeatVector(10)) model.add(LSTM(1, return_sequences=True))
Then - the input form (1) , and the output - (10, 1) .
source share