TypeError Traceback (most recent call last)
TypeError: only size-1 arrays can be converted to Python scalars
The above exception was the direct cause of the following exception:
ValueError Traceback (most recent call last)
in
6 “stride”: 2}
7
----> 8 Z, cache_conv = conv_forward(A_prev, W, b, hparameters)
9 z_mean = np.mean(Z)
10 z_0_2_1 = Z[0, 2, 1]
in conv_forward(A_prev, W, b, hparameters)
78 weights= W[:,:,c]
79 bias= b[:,:,c]
—> 80 Z[i, h, w, c]=conv_single_step(a_slice_prev, weights, bias)
81
82 # YOUR CODE ENDS HERE
ValueError: setting an array element with a sequence.
Hello everyone , I just tried to reshape to 4D in zero_pad of a_prev_pad and reshaped while slicing a_prev_pad to broadcast with Weights.Without all these steps I can’t proceed. Is there any mistakes in my steps?