W4_A1_EX3 Value error

Hey hope you are well I wrote code below but I am getting ValueError I don’t know why can you help me?

{moderator edit - solution code removed}

Error:
ith sigmoid: A = [[0.96890023 0.11013289]]

ValueError Traceback (most recent call last)
in
4 print("With sigmoid: A = " + str(t_A))
5
----> 6 t_A, t_linear_activation_cache = linear_activation_forward(t_A_prev, t_W, t_b, activation = “relu”)
7 print("With ReLU: A = " + str(t_A))
8

in linear_activation_forward(A_prev, W, b, activation)
29 #(≈ 2 lines of code)
30 Z, linear_cache = linear_forward(A_prev,W,b)
—> 31 A, activation_cache = max(0,Z),Z
32 # YOUR CODE STARTS HERE
33

ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

When computing relu on more than 1 element, you want to perform element-wise maximum with respect to 0 (see this). dnn_utils.py has functions relu and sigmoid which you can use for this lab.

Posting code in a public topic is discouraged and can get your account suspended. It’s okay to share stacktrace on a public post and send code to a mentor via direct message. Please clean up the post.

thanks sorry for code.