I am getting the following error,
AttributeError: The layer “lstm_2” 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.
Can someone please explain this? I also rerun the kernel but it did not work.
It means that the shapes are wrong somewhere in your code. Look at the inputs of the LSTM cell and then add some print statements to see their shapes.
Doing “Kernel → Restart and Clear Output” followed by “Cell → Run All” will make sure everything is in a consistent state in the notebook, but if it still throws the error after that, it means your code is incorrect. Now you need to figure out how that happened.
BTW that error message occurs pretty frequently and you can find other threads which discuss it, e.g. this one. The search terms I used were “jazz multiple inbound nodes”.
1 Like