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

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

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

# softplus

[common]\
fun [softplus](softplus.md)(input: [Tensor](../Tensor/index.md), beta: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html) = 1.0, threshold: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html) = 20.0): [Tensor](../Tensor/index.md)

`softplus(input: Tensor, beta: Double = 1.0, threshold: Double = 20.0)`: the `softplus` operator. Smooth ReLU. For numerical stability the exact linear `input` is returned where `beta * x > threshold`.