I am getting an error on this line:
in music_inference_model(LSTM_cell, densor, Ty)
38 for t in range(Ty):
39 # Step 2.A: Perform one step of LSTM_cell. Use “x”, not “x0” (≈1 line)
—> 40 a, _, c = LSTM_cell(inputs=x, initial_state=[a, c])
41
42 # Step 2.B: Apply Dense layer to the hidden state output of the LSTM_cell (≈1 line)
which eventually complains about expecting more inputs:
ValueError: Layer lstm expects 5 inputs, but it received 3 input tensors. Inputs received: [<tf.Tensor ‘input_8:0’ shape=(None, 1, 90) dtype=float32>, <tf.Tensor ‘a0_7:0’ shape=(None, 64) dtype=float32>, <tf.Tensor ‘c0_7:0’ shape=(None, 64) dtype=float32>]
I’ve used this exact syntax to call lstm_cell in the previous exercise with no issue, so what am I missing here?
Also why are we sampling using the max prediction? I thought we sample using the output prediction as a probability vector to sample the next value. Don’t we always get the same sample now?