In the backprop for the CNN, I get the following error off the bat in the conv_backward function:
17 # Retrieve dimensions from A_prev’s shape (≈1 line)
—> 18 (m, n_H_prev, n_W_prev, n_C_prev) = A_prev.shape[0:1,1:2,2:3,3:]
19
20 # Retrieve dimensions from W’s shape (≈1 line)
TypeError: tuple indices must be integers or slices, not tuple
Any help would be appreciated, as I’ve spent an inordinate amount of time on this so far…