Hi, I’m getting the wrong values and an error. When I use my code and calculate manually it does what I expect it to but clearly my expectations are wrong - in some way my understanding as to what pooling should do is incorrect - help, here is the error:
AssertionError Traceback (most recent call last)
in
13 print(“A[1, 1] =\n”, A[1, 1])
14
—> 15 pool_forward_test(pool_forward)
~/work/release/W1A1/public_tests.py in pool_forward_test(target)
152 [0.31515939, 0.84616065, 0.07734007],
153 [0.69803203, 0.84616065, 1.2245077 ],
→ 154 [0.69803203, 1.12141771, 1.2245077 ]])), “Wrong value for A[1, 1]”
155
156 assert np.allclose(cache[0][1, 2], np.array([[ 0.16938243, 0.74055645, -0.9537006 ],
AssertionError: Wrong value for A[1, 1]