Programming assignment week 4

I’m stuck with the L_model_forward function, it keeps saying that the error is at line 37 of the linear_activation_forward function: local variable ‘linear_cache’ referenced before assignment, although I have already passed the test cases. Please help

here is my code:

Moderator Edit: Solution Code Removed.

Please note that relu is not the same as “relu”. Same for the sigmoid.

2 Likes

oh i see now, ty!