TensorPlay
API symbolsnn
Copy
View MarkdownDownload .md

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

Ask DeepWiki