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

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

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

# qkRmsNormInPlace

[common]\
fun [qkRmsNormInPlace](qkRmsNormInPlace.md)(self: [Tensor](../Tensor/index.md), key: [Tensor](../Tensor/index.md)? = null, value: [Tensor](../Tensor/index.md)? = null, queryWeight: [Tensor](../Tensor/index.md)? = null, keyWeight: [Tensor](../Tensor/index.md)? = null, headDim: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) = 0, eps: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null): [Tensor](../Tensor/index.md)

`qkRmsNormInPlace(self: Tensor, key: Tensor? = null, value: Tensor? = null, queryWeight: Tensor? = null, keyWeight: Tensor? = null, headDim: Long = 0L, eps: Double? = null)`: the `qk_rms_norm_` operator. In-place `qk_rms_norm`: normalizes `query` (and `key` and `value`, when given) through their own storage (no output allocation). `key` and `value` are optional operands written through: pass a pointer to your tensor, or `nullptr` for absent. Every written-through handle is rebound to the op's output, so under a `TracingScope` the caller's `key` becomes the traced output exactly as `query` does. Otherwise the same arguments and error conditions as `qk_rms_norm()`. Returns `query` under the value surface, `Result<void>` under the `Result` surface; `CLIKART_CHECK` is the mode-stable spelling. Writes through `self` and returns it, so calls chain.