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

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

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

# softminInPlace

[common]\
fun [softminInPlace](softminInPlace.md)(self: [Tensor](../Tensor/index.md), dim: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) = -1L): [Tensor](../Tensor/index.md)

`softminInPlace(self: Tensor, dim: Long = -1L)`: the `softmin_` operator. In-place `softmin`: writes the result through `self`; same formula, arguments, and error conditions as `softmin()`. 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.