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

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

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

# clampMinInPlace

[common]\
fun [clampMinInPlace](clampMinInPlace.md)(self: [Tensor](../Tensor/index.md), min: [Tensor](../Tensor/index.md)): [Tensor](../Tensor/index.md)

`clampMinInPlace(self: Tensor, min: Tensor)`: the `clamp_min_` operator. In-place `clamp_min`: writes the result through `self`; same formula, arguments, and error conditions as `clamp_min()`. A view input writes through its base storage. Returns `self` 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 [clampMinInPlace](clampMinInPlace.md)(self: [Tensor](../Tensor/index.md), min: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)): [Tensor](../Tensor/index.md)

`clampMinInPlace(self: Tensor, min: Double)`: the number form of `clamp_min_`, `min` as a scalar.