In function L_model_forward getting this error;
ValueError: shapes (3,4) and (3,4) not aligned: 4 (dim 1) != 3 (dim 0)
How to debug?
Code;
for l in range(1, L):
A_prev = A
A, cache = linear_activation_forward(A_prev, parameters['W' + str(l)], parameters['b' + str(l)], 'relu')
caches.append(cache)
AL,cache = linear_activation_forward(A,parameters["W"+str(l)],parameters["b"+str(l)], activation = 'sigmoid')
caches.append(cache)