---
title: "ClikaRT::ops::gelu_"
sidebar_label: "gelu_"
description: "In-place gelu: writes the result through self; same formula, arguments, and error conditions as gelu(). A view input writes through its base storage."
---

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

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

## gelu\_() {#gelu_}

<div class="api-signature">

[`Tensor`](../Tensor.md)`&` **`gelu_`**([`Tensor`](../Tensor.md)`&` `self`, [`GeluMode`](./index.md#GeluMode) `approximate` `=` [`GeluMode::None`](./index.md#GeluMode))

</div>

In-place [`gelu`](./gelu.md#gelu): writes the result through `self`; same formula, arguments, and error conditions as [`gelu()`](./gelu.md#gelu). A view input writes through its base storage. Returns `self` under the value surface, [`Result`](../Result.md)`<void>` under the [`Result`](../Result.md) surface; [`CLIKART_CHECK`](../../index.md#CLIKART_CHECK) is the mode-stable spelling.

<div class="api-declared">

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

</div>
