Check that the a_next is calculated correctly in rnn_cell_forward() and the correct parameters are passed to rnn_cell_forward() when it is called at rnn_forward()
In my case I used a_prev for calculating yt_pred in rnn_cell_forward function. Looks like you have provided the correct value. Check the value of a_next.
You are right Rasitha, I was giving a0 instead of a_next to the function.
Its working now. Many thanks.
Tá an t-eolas atá le fáil sa ríomhphost seo faoi iontaoibh agus tá sé ceaptha le haghaidh aird an fhaighteora bheartaithe/na bhfaighteoirí beartaithe amháin. Más rud é go bhfuair tú an ríomhphost seo go hearráideach, ná húsáid agus ná tarchuir é ar mhaithe le haon chuspóir, le do thoil; ina áit sin cuir ar an eolas muid láithreach agus scrios gach cóip den ríomhphost seo ó do chóra(i)s ríomhaireachta. Ach amháin sa chás gur comhaontaíodh a leithéid go sonrach ag ár n-ionadaí údaraithe, is le húdar an ríomhphoist amháin na tuairimí a chuirtear in iúl ann, agus ní léiríonn siad tuairim ná ní chuireann siad ceangal ar aon chaoi eile ar Institiúid Teicneolaíochta Bhaile Átha Luain. Déan teagmháil le administrator@ait.ie nó cuir glao ar 090 6468000. The information contained in this email is confidential and is designated solely for the attention of the intended recipient(s). If you have received this email in error, please do not use or transmit it for any purpose but rather notify us immediately and delete all copies of this email from your computer system(s). Unless otherwise specifically agreed by our authorised representative, the views expressed in this email are those of the author only and shall not represent the view of or otherwise bind Athlone Institute of Technology. Contact administrator@ait.ie or telephone 090 6468000.
Hi, I have the same problem and I have checked all the comments. What else it can be?
the cell function (rnn_cell_forward) has already been validated so it shouldn’t be there the problem.
a and the dimensions are correct. ¿?
I’ve got the same y_pred[1][3] as what you’ve got and I couldn’t solve the problem before seeing your comments. Thanks for your remind of the single cell function.