---
title: "l1Loss"
sidebar_label: "l1Loss"
description: "Kotlin binding reference: l1Loss."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Ops](index.md)/[l1Loss](l1Loss.md)

# l1Loss

[common]\
fun [l1Loss](l1Loss.md)(input: [Tensor](../Tensor/index.md), target: [Tensor](../Tensor/index.md), reduction: [Reduction](../Reduction/index.md) = Reduction.MEAN): [Tensor](../Tensor/index.md)

`l1Loss(input: Tensor, target: Tensor, reduction: Reduction = Reduction.MEAN)`: the `l1_loss` operator. Mean-absolute-error loss between `input` and `target`.