TensorPlay
latest (dev)
Copy
View Markdown

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 L1Loss for details.

On this page

Ask DeepWiki