I\'m trying to pass the output of one layer into two different layers and then join them back together. However, I\'m being stopped by this error which is telling me that my inp
I think you need to add axis=1 to concatenate, Try:
x = keras.layers.concatenate([book_out, char_out], axis=1)
It looks like you're not actually giving an input to your LSTM layer. You specify the number of recurrent neurons and the shape of the input, but do not provide an input. Try:
lstm_out = LSTM(128, input_shape=(maxlen, len(chars)))(net_input)
I know, documentation can be confusing, but Concatenate actually only requires "axis" as parameter, while you passed the layers. The layers need to be passed as argument to the result of it as follow:
Line to modify:
x = keras.layers.concatenate([book_out, char_out])
How it should be:
x = keras.layers.Concatenate()([book_out, char_out])