WEEK 1, Assignment 2 UNQ_C2 AssertionError: Wrong values for a

Hi there!
I’m getting the following error, and I just can’t help myself anymore

########################
a[4][1] =
[-0.93013738 0.94421624 -0.99963121 -0.97342254]
a.shape =
(5, 10, 4)
y_pred[1][3] =
[0.0440187 0.21066662 0.00197809 0.10096196]
y_pred.shape =
(2, 10, 4)
caches[1][1][3] =
[-1.1425182 -0.34934272 -0.20889423 0.58662319]
len(caches) =
2

AssertionError Traceback (most recent call last)
in
18
19 #UNIT TEST
—> 20 rnn_forward_test(rnn_forward)

~/work/W1A1/public_tests.py in rnn_forward_test(target)
75 assert len(caches[0]) == T_x, f"len(cache) must be T_x = {T_x}"
76
—> 77 assert np.allclose(a[5, 2, 2:6], [0.99999291, 0.99332189, 0.9921928, 0.99503445]), “Wrong values for a”
78 assert np.allclose(y_pred[2, 1, 1: 5], [0.19428, 0.14292, 0.24993, 0.00119], atol=1e-4), “Wrong values for y_pred”
79 assert np.allclose(caches[1], x_tmp), f"Fail check: cache[1] != x_tmp"

AssertionError: Wrong values for a
#################################

I couldn’t figure out why a values are close but not enough to pass the test. Any help?

Ok, I got it. I was slicing a as parameter a_prev of rnn_cell_forward. It turns out that I should select a_next since it yould be updated each loop step.