---
title: "ClikaRT::nn::GeGLUOptions"
sidebar_label: "GeGLUOptions"
description: "Settings of GeGLU: chain the setters, or assign the fields."
---

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

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

**Header:** `ClikaRT/nn/generated/activation.h`

Settings of [`GeGLU`](./GeGLU.md): chain the setters, or assign the fields.

## Member functions

### approximate(ops::GeluMode) {#approximate}

<div class="api-signature">

[`GeGLUOptions`](./GeGLUOptions.md)`&` **`approximate`**([`ops::GeluMode`](../ops/index.md#GeluMode) `v`)

</div>

Sets [`approximate`](./GeGLUOptions.md#approximate), the [GELU](./GELU.md) variant applied to the gate half.

<div class="api-declared">

Declared in `ClikaRT/nn/generated/activation.h`, line 1464

</div>

### approximate() {#approximate-2}

<div class="api-signature">

[`ops::GeluMode`](../ops/index.md#GeluMode) **`approximate`**() `const`

</div>

Reads [`approximate`](./GeGLUOptions.md#approximate).

<div class="api-declared">

Declared in `ClikaRT/nn/generated/activation.h`, line 1466

</div>

## Data members

### approximate\_ {#approximate_}

<div class="api-signature">

[`ops::GeluMode`](../ops/index.md#GeluMode) **`approximate_`** `=` [`ops::GeluMode::None`](../ops/index.md#GeluMode)

</div>

The [GELU](./GELU.md) variant applied to the gate half. Default [`ops::GeluMode::None`](../ops/index.md#GeluMode).

<div class="api-declared">

Declared in `ClikaRT/nn/generated/activation.h`, line 1469

</div>
