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

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

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

# huberLoss

[common]\
fun [huberLoss](huberLoss.md)(input: [Tensor](../Tensor/index.md), target: [Tensor](../Tensor/index.md), reduction: [Reduction](../Reduction/index.md) = Reduction.MEAN, delta: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html) = 1.0): [Tensor](../Tensor/index.md)

`huberLoss(input: Tensor, target: Tensor, reduction: Reduction = Reduction.MEAN, delta: Double = 1.0)`: the `huber_loss` operator. Huber loss: quadratic near zero, linear past the `delta` knee.