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

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

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

# normalInPlace

[common]\
fun [normalInPlace](normalInPlace.md)(self: [Tensor](../Tensor/index.md), mean: [Tensor](../Tensor/index.md)? = null, stddev: [Tensor](../Tensor/index.md)? = null, device: [Placement](../Placement/index.md)? = null): [Tensor](../Tensor/index.md)

`normalInPlace(self: Tensor, mean: Tensor? = null, stddev: Tensor? = null, device: Placement? = null)`: the `normal_` operator. In-place normal fill: overwrites `self` with `N(mean, stddev^2)` draws at `self`'s shape/dtype 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.

[common]\
fun [normalInPlace](normalInPlace.md)(self: [Tensor](../Tensor/index.md), mean: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html) = 0.0, stddev: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html) = 1.0, device: [Placement](../Placement/index.md)? = null): [Tensor](../Tensor/index.md)

`normalInPlace(self: Tensor, mean: Double = 0.0, stddev: Double = 1.0, device: Placement? = null)`: the number form of `normal_`, `mean`, `stddev` as scalars.