Course 4 Week 1 Programming Assignment 1

Hi,

I have been stuck on this issue for quite a long time. Any help on this issue would help me a lot.

I am facing one error after another in the function conv_forward. I tried looking into the errors others get and correcting my code. I was able to figure out resolving some of the previous errors but was unable to figure out where am I going wrong. No matter what I try, it keeps giving me the following error:

Error: Wrong output for variable in position 0.
2 Tests passed
1 Tests failed

AssertionError 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)

~/work/release/W1A1/public_tests.py in conv_forward_test(target)
118 ]
119
→ 120 multiple_test(test_cases, target)
121
122

~/work/release/W1A1/test_utils.py in multiple_test(test_cases, target)
151 print(’\033[91m’, len(test_cases) - success, " Tests failed")
152 raise AssertionError(
→ 153 “Not all tests were passed for {}. Check your equations and avoid using global variables inside the function.”.format(target.name))

AssertionError: Not all tests were passed for conv_forward. Check your equations and avoid using global variables inside the function.

Please help me with this.

Best regards,
Anantha Sai.

Hi @kavuriananthasai, let me help you with this.
Can you share your lab ID with me ?
In your assignment, you’ll see a “Help” icon on the top right, once you click on it a panel will open Your lab ID will be shown at the bottom.

Hi @Mubsi

Thanks for your quick reply.

Please find my lab ID: lifdnpkz

Best regards,
Anantha Sai.

Finally resolved the issue. I tried many things in conv_forward function, but it turned out that there is a small detail in conv_single_step function which I missed out to check.

Hi @kavuriananthasai,

I’m glad you figured it out.

My apologise for not replying back in time, I had lost access to Discourse for a bit.

Cheers,
Mubsi