Hello,
When i submit my C4-Assignment 1 on Conv_forward function i get the following error as pasted below , Has anybody come across such error? Iam not able to to understand the source of error since conv_forward_test is already defined, Would appreciate any feedback in this regard.
Thanks in advance,
…Error part of Code Below…
np.random.seed(1)
A_prev = np.random.randn(2, 5, 7, 4)
W = np.random.randn(3, 3, 4, 8)
b = np.random.randn(1, 1, 1, 8)
hparameters = {“pad” : 1,
“stride”: 2}
Z, cache_conv = conv_forward(A_prev, W, b, hparameters)
print(“Z’s mean =\n”, np.mean(Z))
print(“Z[0,2,1] =\n”, Z[0, 2, 1])
print(“cache_conv[0][1][2][3] =\n”, cache_conv[0][1][2][3])
conv_forward_test(conv_forward)
Z’s mean =
0.5329033220060434
Z[0,2,1] =
[-0.05723279 0.03991888 -6.24285862 0.53960581 -5.04059676 6.96991358
3.69509379 -0.20955895]
cache_conv[0][1][2][3] =
[-1.1191154 1.9560789 -0.3264995 -1.34267579]
NameError Traceback (most recent call last)
in
11 print(“cache_conv[0][1][2][3] =\n”, cache_conv[0][1][2][3])
12
—> 13 conv_forward_test(conv_forward)
NameError: name ‘conv_forward_test’ is not defined