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

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

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

# SITU

[common]\
[SITU](index.md)

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.

## 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) |