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

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

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

# gatedRmsNorm

[common]\
fun [gatedRmsNorm](gatedRmsNorm.md)(input: [Tensor](../Tensor/index.md), gate: [Tensor](../Tensor/index.md), normalizedShape: [LongArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html), weight: [Tensor](../Tensor/index.md)? = null, eps: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null): [Tensor](../Tensor/index.md)

`gatedRmsNorm(input: Tensor, gate: Tensor, normalizedShape: LongArray, weight: Tensor? = null, eps: Double? = null)`: the `gated_rms_norm` operator. Fused group RMS norm + post-norm silu(z) gate: `out = rms_norm(x) · silu(z)`, the norm taken over the trailing `normalized_shape` group extent (`{vd}` for a per-head norm over `[.., HV, vd]`). `weight` is the optional `[group]` gamma applied after the normalization; an absent `eps` takes the runtime's rms-norm default.