ValueError: operands could not be broadcast together with shapes (2,7) (2,)

Hi @vijayneuralnet

Check this explanation to understand the calculations.

Having said that, the most common mistake is forgetting axis= -1 where appropriate (three instances of np.sum).

Cheers

2 Likes