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

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

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

# smoothL1Loss

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

`smoothL1Loss(input: Tensor, target: Tensor, reduction: Reduction = Reduction.MEAN, beta: Double = 1.0)`: the `smooth_l1_loss` operator. Smooth-L1 loss: quadratic within `beta` of zero, L1 beyond it. `beta == 0` degenerates to plain L1.