pytorch / 2 / generated / torch.nn.functional.mse_loss.html

torch.nn.functional.mse_loss

torch.nn.functional.mse_loss(input, target, size_average=None, reduce=None, reduction='mean') → Tensor [source]

Measures the element-wise mean squared error.

See MSELoss for details.

Return type

Tensor

© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/2.1/generated/torch.nn.functional.mse_loss.html