Closed luhongkai closed 5 years ago
RuntimeError: input and target shapes do not match: input [60 x 1], target [60] at c:\users\administrator\downloads\new-builder\win-wheel\pytorch\aten\src\thnn\generic/MSECriterion.c:13
I solved it myself.
loss = criterion(out.view(len(target)), target)
RuntimeError: input and target shapes do not match: input [60 x 1], target [60] at c:\users\administrator\downloads\new-builder\win-wheel\pytorch\aten\src\thnn\generic/MSECriterion.c:13