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

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

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

# normalizeInPlace

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

`normalizeInPlace(self: Tensor, p: Double = 2.0, dim: Long = 1L, eps: Double? = null)`: the `normalize_` operator. In-place `normalize`: rewrites `self` with its L_p-normalized value 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.