python计算MSE损失和L1损失

python计算L2损失和L1损失

import torch.nn as nn
low_criterion = nn.L1Loss()
low_criterion = nn.MSELoss()

你可能感兴趣的:(深度学习,机器学习,神经网络)