PyTorch · Function
F.mse_loss
Computes squared error between predicted and ground-truth values. It can weight samples and return unreduced, averaged, or summed results.
Last updated
Syntax
torch.nn.functional.mse_loss(input, target, size_average=None, reduce=None, reduction='mean', weight=None)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
MSELoss