pytorch RuntimeError size mismatch, m1: [3x 20480], m2: [2048 x 1] at

RuntimeError: size mismatch m1: [a x b], m2: [c x d]

这里的b和c要相等,否则不能点乘

size mismatch, m1: [64 x 100], m2: [784 x 128] at /pytorch/aten/src/TH/generic/THTensorMath.cpp:2070

参考:https://stackoverflow.com/questions/53828518/runtimeerror-size-mismatch-m1-a-x-b-m2-c-x-d

你可能感兴趣的:(Pytorch)