On this page
torch.nn.functional.l1_loss
torch.nn.functional.l1_loss(input, target, size_average=None, reduce=None, reduction='mean') → Tensor
[source]-
Function that takes the mean element-wise absolute value difference.
See
L1Loss
for details.- Return type
© 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.l1_loss.html