Pytorch Warning 问题 UserWarning: Using a target size (torch.Size([64])) that is different to the input size (torch.Size([64,1])) 解决 在forward(self, x)函数体中,在return x之前,加一句 x = x.squeeze(-1) 以达到降低一维的目的~