latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.nn.functional.l1_loss
- tensorplay.nn.functional.l1_loss(input: Tensor, target: Tensor, size_average=None, reduce=None, reduction: str = 'mean', weight: Tensor | None = None) Tensor[source]
Compute the L1 loss, with optional weighting.
Function that takes the mean element-wise absolute value difference. See
L1Lossfor details.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

