---
title: "ClikaRT::ops::softsign"
sidebar_label: "softsign"
description: "Softsign activation. \\[ \\mathrm{softsign}(x) = \\frac{x}{1 + |x|} \\] ClikaRT::Error when the input's dtype is not served for this operation (the machine-readable reason rides code_name())."
---

<!-- Generated by tools/doxygen2mdx from Doxygen XML. Do not edit. -->

<span class="api-kind api-kind--function">function</span>

## softsign() {#softsign}

<div class="api-signature">

[`Tensor`](../Tensor.md) **`softsign`**([`Tensor`](../Tensor.md) `input`)

</div>

Softsign activation.

$$
\mathrm{softsign}(x) = \frac{x}{1 + |x|}
$$

**Throws**

- `ClikaRT::Error`: when the input's dtype is not served for this operation (the machine-readable reason rides `code_name()`).

**Returns:** a new tensor, same shape and dtype as `input`.

```cpp
auto y = ClikaRT::ops::softsign(x);
```

<div class="api-declared">

Declared in `ClikaRT/compute/ops.h`, line 1130

</div>
