---
title: "ClikaRT::nn::GELUOptions"
sidebar_label: "GELUOptions"
description: "Settings of GELU: 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 [`GELU`](./GELU.md): chain the setters, or assign the fields.

## Member functions

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

<div class="api-signature">

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

</div>

Sets [`approximate`](./GELUOptions.md#approximate), the [GELU](./GELU.md) variant; [`ops::GeluMode::None`](../ops/index.md#GeluMode) is the exact form.

<div class="api-declared">

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

</div>

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

<div class="api-signature">

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

</div>

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

<div class="api-declared">

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

</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; [`ops::GeluMode::None`](../ops/index.md#GeluMode) is the exact form. Default [`ops::GeluMode::None`](../ops/index.md#GeluMode).

<div class="api-declared">

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

</div>
