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

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

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

# normal

[common]\
fun [normal](normal.md)(mean: [Tensor](../Tensor/index.md), stddev: [Tensor](../Tensor/index.md), shape: [LongArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html), device: [Placement](../Placement/index.md)? = null): [Tensor](../Tensor/index.md)

`normal(mean: Tensor, stddev: Tensor, shape: LongArray, device: Placement? = null)`: the `normal` operator. Normal draws with the given mean and standard deviation. `mean` and `stddev` are scalars or tensors broadcast over `shape`.

[common]\
fun [normal](normal.md)(mean: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html), stddev: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html), shape: [LongArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html), device: [Placement](../Placement/index.md)? = null): [Tensor](../Tensor/index.md)

`normal(mean: Double, stddev: Double, shape: LongArray, device: Placement? = null)`: the number form of `normal`, `mean`, `stddev` as scalars.