API symbolsnn
Copy
tensorplay.nn.functional.l1_loss
- tensorplay.nn.functional.l1_loss(input: TensorBase, target: TensorBase, size_average=None, reduce=None, reduction: str = 'mean', weight: TensorBase | None = None) TensorBase[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?
