Course 1 Week 4 Exercise 5 error

Even after the previous cells ran smoothly with all test cases being passed getting dimension error for test case in exercise 5.

Error in linear_forward but linear_forward function test case is successful
Please help

Hi @ankalagigaurav, you are having that error because either the shape of W or A is incorrect when calling linear_forward.

In order to trace back the error you need to start from the line which is failing i.e. 42 in function L_model_forward and check what’s the shape of A and parameters['W' + strl(l)]

I would suggest that you would print also the value of l so you know in which layer you have the error.

I think this issue was resolved on this other parallel thread.