Hi, I have submitted week 2 assignment 1, and my grade was 100/100. However, when I downloaded the code and then ran the code on my pc, I receive the following error which is related to the identity block:
AssertionError Traceback (most recent call last)
in
26 print(np.around(A4.numpy()[:,(0,-1),:,:].mean(axis = 3), 5))
27
—> 28 public_tests.identity_block_test(identity_block)
~\OneDrive - ------\Course\deepLearning AndrewNg\C4\W2A1-Residual Networks\public_tests.py in identity_block_test(target)
35 assert resume[1, 1, 0] - np.floor(resume[1, 1, 0]) > 0.7, “Looks like the BatchNormalization units are not working”
36
—> 37 assert np.allclose(resume,
38 np.array([[[ 0., 0., 0., 0., ],
39 [ 0., 0., 0., 0., ]],
AssertionError: Wrong values with training=False
and my code is as follows:
{Moderator edit: Code Removed}
I really appreciate it if anyone can guide me to solve this issue.
Many thanks!