RuntimeError: mean(): input dtype should be either floating point or complex dtypes.Got Long instead
运行代码:importtorchfromtorch.nnimportL1Lossinputs=torch.tensor([1,2,3])targets=torch.tensor([1,2,5])inputs=torch.reshape(inputs,(1,1,1,3))#1batch_size,1个channel,1行,3列targets=torch.reshape(targets,(1,1,1,