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

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

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

# logSoftmaxInPlace

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

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