C5W1 Ass3 Jass Impro

Hi , I can’t find the mistake in my code.

def music_inference_model(LSTM_cell, densor, Ty=100):

I get only the message:

name ‘inference_model’ is not defined

I restart the kernel but no success. Please give me a hint .
ipython-input-39-c395f100af16> in
1 # UNIT TEST
----> 2 inference_summary = summary(inference_model)
3 comparator(inference_summary, music_inference_model_out)

NameError: name ‘inference_model’ is not defined

Did you run the cell just before the unit test?
That cell creates the “inference_model” variable.

After you restart the kernel, you should run all the cells in the Notebook again.

Yes, I did. First: " Restart and run all " and than again Restart and run cell after cell. Today again, no success.

The correct sequence is:
“Kernel → Restart & Clear Output”
followed by
“Cell → Run All”

Perhaps you modified the contents of the cell that creates the inference_model.
Does your notebook look exactly like this?

oh yes, thank you. There ist the mistake. The first cell of your picture wasn’t in my notebook. After adding it, it works. I don’t know, why I had lost these cell.