Course 5: Week 1: Music inference model (LSTM)

PLEASE FIX this:
Add: LSTM_cell = LSTM(n_a, return_state = True)
Before:
inference_model = music_inference_model(LSTM_cell, densor, Ty = 50)

I just spent several days on this.

PS. love the courses.

3 Likes

Yes I tried for 2 days but this code worked. Thank you @SteveRegis

I agree this exercise was confusing because of too many information into one exercise and having to scroll up and down many times to read the contents. This exercise could have been divided into two parts.

1 Like

Thank you very much my man :slight_smile:

1 Like

Thank you for this tip. It really helped as it would have taken a lot of time if I had not seen your post.

1 Like

It didnt solve my problem

1 Like

Thanks for your solution. I have the same problem and your answer helped me to solve it. But this is weird to me. In the music_inference_model, I think we should use the trained LSTM_cell from the previous section. However, based on what you suggest and my understanding, we create a new LSTM block that needs to train and use for inference. Can you correct me and explain your idea a little more?
Thanks

1 Like