How is dot product possible?

I did not understand how the dot product of w and a_in is possible because they both seem like 2x1 matrix.

Hello @Ashish_Ganesh,

If we check the slide more carefully, they are both 1D array of shape (2, ) instead of 2D array of shape (2, 1). Therefore, the first rule in np.dot applies!

Cheers,
Raymond

1 Like