In the following section:
The last step is to define all your inputs and outputs to fit the model:
- You have input X of shape (m = 10000, T_x = 30) containing the training examples. - You need to create
s0
andc0
to initialize yourpost_attention_LSTM_cell
with zeros. - Given the
model()
you coded, you need the “outputs” to be a list of 10 elements of shape (m, T_y) .
Shouldn’t the “outputs” be a list of 10 elements of shape (m, len(machine_vocab)), which is (m, 11) ?