Hi,
In course 5 - week 1 - Assignment 1, in the def rnn_forward(x, a0, parameters), for the following code, I wrote a-prev first in the def parenthesis, but I got an arror, then I changed it to a-next , and it run well. Unfortunately I do not understand why we should write a-next?
Doesn’t it take the previous cell value? So it should be a-prev
for t in range(T_x):
a_next, yt_pred, cache = rnn_cell_forward(x[:,:,t], a_next, parameters)