Hello, I am getting assertion error for Exercise 3: conv_forward function. My input is:

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}.

given the padding value 1, how can the expected output of Z n_H and n_W be 9 and 11.

The exercise instructions give you the code for the n_W value. All you need do is implement it. Perhaps your code has scrambled the values of n_H and n_W.

The unit test utility calls the conv_forward() functions several times with different shapes.