W3_A1_Wrong value output for variable A2

Yes, please show us the output when you run the test cell for the forward_propagation function. Here’s what I see:

A2 = [[0.21292656 0.21274673 0.21295976]]
All tests passed!

I also added an additional cell with the following print statements:

print(parameters)
print(f"t_X = {t_X}")
Z1 = cache["Z1"]
A1 = cache["A1"]
Z2 = cache["Z2"]
A2 = cache["A2"]
print(f"Z1 = {Z1}")
print(f"A1 = {A1}")
print(f"Z2 = {Z2}")
print(f"A2 = {A2}")

Here’s what I get from running that:

{'W1': array([[-0.00416758, -0.00056267],
       [-0.02136196,  0.01640271],
       [-0.01793436, -0.00841747],
       [ 0.00502881, -0.01245288]]), 'W2': array([[-0.01057952, -0.00909008,  0.00551454,  0.02292208]]), 'b1': array([[ 1.74481176],
       [-0.7612069 ],
       [ 0.3190391 ],
       [-0.24937038]]), 'b2': array([[-1.3]])}
t_X = [[ 1.62434536 -0.61175641 -0.52817175]
 [-1.07296862  0.86540763 -2.3015387 ]]
Z1 = [[ 1.7386459   1.74687437  1.74830797]
 [-0.81350569 -0.73394355 -0.78767559]
 [ 0.29893918  0.32272601  0.34788465]
 [-0.2278403  -0.2632236  -0.22336567]]
A1 = [[ 0.9400694   0.94101876  0.94118266]
 [-0.67151964 -0.62547205 -0.65709025]
 [ 0.29034152  0.31196971  0.33449821]
 [-0.22397799 -0.25730819 -0.2197236 ]]
Z2 = [[-1.30737426 -1.30844761 -1.30717618]]
A2 = [[0.21292656 0.21274673 0.21295976]]

Please try that and maybe it will be a clue where your Z1, A1, Z2, A2 values go off the rails.