Another problem with 'Improvise a Jazz Solo with an LSTM Network

I am getting error in 'music_inference_model with the message:

AttributeError: The layer “lstm_3” has multiple inbound nodes, with different output shapes. Hence the notion of “output shape” is ill-defined for the layer. Use get_output_shape_at(node_index) instead.
I need assistance.


Abdus Shamim Khan

Try searching the discussion forum for the phrase “multiple inbound nodes”. You’ll find a lot of threads about this error.

I did not see any specific solution for ‘multiple inbound nodes’ in the discussion forum. Can you please suggest way around this problem. Thanks, I will appreciate your assistance.

Try this thread.

Thanks for your assistance. I got it correct.