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

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

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

# Activation

[common]\
enum [Activation](index.md) : [Enum](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-enum/index.html)&lt;[Activation](index.md)&gt; 

A fused activation epilogue. `Identity` = none. The gated kinds (`SwiGlu`, `GeGlu`, `ReGlu`, `Situ`) take a concatenated `[*, 2d]` gate‖up input and emit `[*, d]`, used as a fused projection epilogue.

## Entries

| | |
|---|---|
| [IDENTITY](IDENTITY/index.md) | [common]<br>[IDENTITY](IDENTITY/index.md)<br>0 on purpose: a zero-initialized field means &quot;no activation&quot; |
| [SIGMOID](SIGMOID/index.md) | [common]<br>[SIGMOID](SIGMOID/index.md) |
| [SILU](SILU/index.md) | [common]<br>[SILU](SILU/index.md) |
| [RELU](RELU/index.md) | [common]<br>[RELU](RELU/index.md) |
| [GELU](GELU/index.md) | [common]<br>[GELU](GELU/index.md)<br>exact, erf-based |
| [FAST_GELU](FAST_GELU/index.md) | [common]<br>[FAST_GELU](FAST_GELU/index.md)<br>the fast approximation (binds the tanh form) |
| [TANH](TANH/index.md) | [common]<br>[TANH](TANH/index.md) |
| [QUICK_GELU](QUICK_GELU/index.md) | [common]<br>[QUICK_GELU](QUICK_GELU/index.md)<br>sigmoid approximation: x·sigmoid(1.702·x) |
| [RELU6](RELU6/index.md) | [common]<br>[RELU6](RELU6/index.md)<br>min(max(x, 0), 6) |
| [TANH_GELU](TANH_GELU/index.md) | [common]<br>[TANH_GELU](TANH_GELU/index.md)<br>the tanh approximation, named |
| [SWIGLU](SWIGLU/index.md) | [common]<br>[SWIGLU](SWIGLU/index.md) |
| [GEGLU](GEGLU/index.md) | [common]<br>[GEGLU](GEGLU/index.md) |
| [REGLU](REGLU/index.md) | [common]<br>[REGLU](REGLU/index.md) |
| [SITU](SITU/index.md) | [common]<br>[SITU](SITU/index.md)<br>Soft-capped gated activation; BOTH halves transform: `out = β·tanh(gate/β)·sigmoid(gate) · lβ·tanh(up/lβ)`. The two soft-cap scalars ride `ops::matmul`/`ops::linear` as `situ_beta` (β, the gate cap) and `situ_linear_beta` (lβ, the up cap); both must be 0 and come from the model's own config; passing `Situ` without them (or either scalar with any other kind) rejects. Computed at fp32 end-to-end with one demote at the store for f16/bf16 outputs. |

## Types

| Name | Summary |
|---|---|
| [Companion](Companion/index.md) | [common]<br>object [Companion](Companion/index.md) |

## Properties

| Name | Summary |
|---|---|
| [code](code.md) | [common]<br>val [code](code.md): [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) |
| [name](../PaddingSide/LEFT/index.md) | [common]<br>val [name](../PaddingSide/LEFT/index.md): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) |
| [ordinal](../PaddingSide/LEFT/index.md) | [common]<br>val [ordinal](../PaddingSide/LEFT/index.md): [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) |

## Functions

| Name | Summary |
|---|---|
| [valueOf](valueOf.md) | [common]<br>fun [valueOf](valueOf.md)(value: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)): [Activation](index.md)<br>Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.) |
| [values](values.md) | [common]<br>fun [values](values.md)(): [Array](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html)&lt;[Activation](index.md)&gt;<br>Returns an array containing the constants of this enum type, in the order they're declared. |