---
title: "ClikaRT::ops::log_softmax_"
sidebar_label: "log_softmax_"
description: "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."
---

<!-- Generated by tools/doxygen2mdx from Doxygen XML. Do not edit. -->

<span class="api-kind api-kind--function">function</span>

## log\_softmax\_() {#log_softmax_}

<div class="api-signature">

[`Tensor`](../Tensor.md)`&` **`log_softmax_`**([`Tensor`](../Tensor.md)`&` `self`, `int64_t` `dim` `=` `-1`)

</div>

In-place [`log_softmax`](./log_softmax.md#log_softmax): writes the result through `self`; same formula, arguments, and error conditions as [`log_softmax()`](./log_softmax.md#log_softmax). A view input writes through its base storage. Returns `self` under the value surface, [`Result`](../Result.md)`<void>` under the [`Result`](../Result.md) surface; [`CLIKART_CHECK`](../../index.md#CLIKART_CHECK) is the mode-stable spelling.

<div class="api-declared">

Declared in `ClikaRT/compute/ops.h`, line 932

</div>
