若最后激活层为sigmoid函数,不宜使用交叉熵损失 回归常用损失函数 损失名称pytorchMSE/ L2损失torch.nn.MSELoss()MAE/ L1损失torch.nn.L1Loss()Huber loss/ SmoothL1torch.nn.SmoothL1Loss()Log-Cosh loss