BHTan
June 16, 2023, 12:06pm
1
Hi, I tried to figure out the output errors from rnn_forward’s unit test without much much luck. Hope anyone can point out where my mistake could be.
So far, the output of the unit test matches the expected output (see below), except it showed errors of the output.
I guess, either you are not appending the cache to the list of caches, or appending it outside of the loop.
BHTan
June 16, 2023, 1:48pm
3
Thanks @saifkhanengr for your swift reply as always.
I did have “caches.append(cache)” at the end within the t loop.
Then try Kernel --> Restart and Clear Output
and then rerun all the cells and see what happens. If still facing this error, send me your code in a private message. Click my name and message.
BHTan
June 16, 2023, 1:54pm
5
Yes, I restarted the kernel and clear output and rerun but error output appears. I will post my code privately to you. Thanks.
BHTan
June 16, 2023, 1:55pm
6
Thanks for your help in advance.
BHTan
June 16, 2023, 2:33pm
7
Many thanks to @saifkhanengr helped me to debug and found my mistake in storing only single cache value needed for backward propagation in caches.
So this thread can be closed now.
It is very important to not change the pre-written code outside of the:
### START CODE HERE ### and ### END CODE HERE ###
BHTan
June 16, 2023, 4:03pm
9
thanks. I will remind myself again.