---
title: "ClikaRT::ops::mish"
sidebar_label: "mish"
description: "Mish activation. \\[ \\mathrm{mish}(x) = x\\,\\tanh\\!\\bigl(\\mathrm{softplus}(x)\\bigr) \\] 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>

## mish() {#mish}

<div class="api-signature">

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

</div>

Mish activation.

$$
\mathrm{mish}(x) = x\,\tanh\!\bigl(\mathrm{softplus}(x)\bigr)
$$

**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::mish(x);
```

<div class="api-declared">

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

</div>
