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

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

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

# renormInPlace

[common]\
fun [renormInPlace](renormInPlace.md)(self: [Tensor](../Tensor/index.md), p: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html), dim: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html), maxnorm: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html), eps: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null): [Tensor](../Tensor/index.md)

`renormInPlace(self: Tensor, p: Double, dim: Long, maxnorm: Double, eps: Double? = null)`: the `renorm_` operator. In-place `renorm`: rewrites `self` with each slice's norm capped at `maxnorm` and returns it 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.