Help in Improvise a Jazz Solo

Hi! I’m trying to finish Module 1 of the Sequence Models course, but I’m stuck on the programming assignment, Jazz Improvisation with LSTM.

In section 3 (Generating Music ) I get this error, I am lost.

It seem to be a problem with the LSTM.

This is what I have in the LSTM-cell

{mentor edit: code removed}

Please, Can someone give me some guidance?

Please do not share your code on the forum. That’s not allowed by the Code of Conduct.

Try removing the “inputs =” part of that statement, see if that helps.

If not, then do a forum search for “multiple inbound nodes”. This is a fairly common issue in this assignment.

Tip: Since the LSTM_cell is a global object within the notebook, every time you make a change to one of functions that modify or use LSTM_cell during debugging, you need to restart the kernel and run all of the cells again. Otherwise your code gets out-of-sync with the state of the LSTM_cell object.

I apologize for sharing a small piece of the code. I promise I won’t do it again.

Thanks for the tips. Removing the “inputs =" and restarting the kernel solved the problem.

Finally, I could finish Module 1. Thanks again.

1 Like