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

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

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

# uniformInPlace

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

`uniformInPlace(self: Tensor, low: Double = 0.0, high: Double = 1.0, device: Placement? = null)`: the `uniform_` operator. In-place uniform fill on `[low, high)`: overwrites `self` at its own 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.