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

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

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

# geglu

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

`geglu(input: Tensor, approximate: GeluMode = GeluMode.NONE)`: the `geglu` operator. GeGLU gated activation over a concatenated gate‖up tensor. The input's LAST dimension must be even (`2d`); the output halves it (`d`). `approximate` selects the exact (erf) or tanh GELU for the gate.