W4-Exercise 9 - L_model_backward dA_prev

Hi
i use “dA_prev_temp” in the function but why show below error?

UnboundLocalError: local variable ‘dA_prev’ referenced before assignment

[Moderator edit: Solution code removed!]

pls delete after i got the answer

Please note well: posting your solution code is a violation of the course honor code.

Hi Lucy,

I see a problem in one of the spellings (for activation) that is causing an error. Try that!