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

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

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

# geluInPlace

[common]\
fun [geluInPlace](geluInPlace.md)(self: [Tensor](../Tensor/index.md), approximate: [GeluMode](../GeluMode/index.md) = GeluMode.NONE): [Tensor](../Tensor/index.md)

`geluInPlace(self: Tensor, approximate: GeluMode = GeluMode.NONE)`: the `gelu_` operator. In-place `gelu`: writes the result through `self`; same formula, arguments, and error conditions as `gelu()`. A view input writes through its base storage. Returns `self` under the value surface, `Result<void>` under the `Result` surface; `CLIKART_CHECK` is the mode-stable spelling. Writes through `self` and returns it, so calls chain.