W4_A1_Ex5_local variable ‘linear_cache’ referenced before assignment

Hi I keep getting below error. I checked teh threads an everyone suggested passing a string for relu and sigmoid and i think i have done that but keep getting the same error.


UnboundLocalError Traceback (most recent call last)
in
1 t_X, t_parameters = L_model_forward_test_case_2hidden()
----> 2 t_AL, t_caches = L_model_forward(t_X, t_parameters)
3
4 print("AL = " + str(t_AL))
5

in L_model_forward(X, parameters)
27 # caches …
28 # YOUR CODE STARTS HERE
—> 29 A,cache=linear_activation_forward(A_prev, parameters[“W”+ str(l)], parameters[“b”+ str(l)], “linear”)
30 caches=caches.append(cache)
31

in linear_activation_forward(A_prev, W, b, activation)
36
37 # YOUR CODE ENDS HERE
—> 38 cache = (linear_cache, activation_cache)
39
40 return A, cache

UnboundLocalError: local variable ‘linear_cache’ referenced before assignment

Did you look at this thread
Course 1 [Week 4] Assignment #1, Exercise 5 L_model_forward - #10 by minreie

I figured out the issue , i was passing linear instead of relu. I had fixed that once before so didn’t realize when i refreshed my notebook