---
title: "ClikaRT::ops::quick_gelu"
sidebar_label: "quick_gelu"
description: "QuickGELU: the sigmoid GELU approximation. \\[ \\mathrm{quick\\_gelu}(x) = x\\,\\sigma(1.702\\,x) \\] ClikaRT::Error when the input's dtype is not served for this operation (the machine-readable reason rides…"
---

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

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

## quick\_gelu() {#quick_gelu}

<div class="api-signature">

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

</div>

QuickGELU: the sigmoid GELU approximation.

$$
\mathrm{quick\_gelu}(x) = x\,\sigma(1.702\,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::quick_gelu(x);
```

<div class="api-declared">

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

</div>
