udacity/deep-learning-v2-pytorch

RuntimeError: mat1 and mat2 shapes cannot be multiplied (3584x7 and 25088x4096)

HamdiTarek opened this issue · 1 comments

I am trying two different images and I am getting this error, this is the size of the two images after loading them:
torch.Size([1, 3, 400, 444])
torch.Size([1, 3, 400, 444])

The error message shows the dimension shapes of the two matrices can't be multiplied. The matrix multiplication requires the shapes to be (m,n) and (n, p),