Week 4 Exercise 9 L_model_backward 1 test failed

values are not matching to expected values
I checked for hard coding found none.

dA0 = [[ 0. 0.12853824]
[ 0. -0.08041233]
[ 0. -0.07888325]
[ 0. -0.18221184]]
dA1 = [[-0.41311681 -0.10826111]
[ 0.45350638 0.11884557]
[-0.0532252 -0.01394816]]
dW1 = [[0.10087189 0.0192033 0.03393989 0.02583208]
[0. 0. 0. 0. ]
[0.01299615 0.00247412 0.00437275 0.00332816]]
dW2 = [[ 0.33288923 -0.16886813 -0.53686918]]
db1 = [[-0.05413055]
[ 0. ]
[-0.00697408]]
db2 = [[0.25460995]]
Error: Wrong output for variable dA1.
Error: Wrong output for variable dW2.
Error: Wrong output for variable db2.
Error: Wrong output for variable dA0.
Error: Wrong output for variable dW1.
Error: Wrong output for variable db1.
2 Tests passed
1 Tests failed

AssertionError Traceback (most recent call last)
in
9 print("db2 = " + str(grads[‘db2’]))
10
—> 11 L_model_backward_test(L_model_backward)

~/work/release/W4A1/public_tests.py in L_model_backward_test(target)
442 ]
443
→ 444 multiple_test(test_cases, target)
445
446 def update_parameters_test(target):

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

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

Hi @Abz, you are hard-coding the values somewhere in your equations instead of using the parameters to pass the functions. This fails the assertions for value comparisons when different input parameters are provided.

I have checked the code multiple times can’t find any hard coding

Okay, share you code in a private message if the asked things do not give you the proper result.
First, save your work and try refreshing your page. If that’s not the case, go to kernel—> click restart and clear output, then save your work. Run all the cells from the beginning through shift+enter.

@Abz, yes, I went through your codes and it seems you are not calling the functions right for dAL above, while initializing the backpropagation. Check your equations and the signs you are using.

Additionally, look at the layer you are calling for to pass the functions in the linear activation backward. AL, isn’t appropriate.

@Abz, was your problem solved? Do you need further help with the same assignment?

Yeah Rashmi, the problem is solved I marked your suggestion as solution too.
Thanks

Okay, that’s great !