---
title: "ClikaRT::nn::LogSoftmaxOptions"
sidebar_label: "LogSoftmaxOptions"
description: "Settings of LogSoftmax: chain the setters, or assign the fields."
---

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

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

**Header:** `ClikaRT/nn/generated/activation.h`

Settings of [`LogSoftmax`](./LogSoftmax.md): chain the setters, or assign the fields.

## Member functions

### LogSoftmaxOptions() {#LogSoftmaxOptions}

<div class="api-signature">

**`LogSoftmaxOptions`**() `=default`

</div>

<div class="api-declared">

Declared in `ClikaRT/nn/generated/activation.h`, line 1274

</div>

### LogSoftmaxOptions(int64\_t) {#LogSoftmaxOptions-2}

<div class="api-signature">

**`LogSoftmaxOptions`**(`std::int64_t` `dim`)

</div>

`LogSoftmaxOptions(dim)`: implicit, so `LogSoftmax(dim)` reads like the function call.

<div class="api-declared">

Declared in `ClikaRT/nn/generated/activation.h`, line 1277

</div>

### dim(int64\_t) {#dim}

<div class="api-signature">

[`LogSoftmaxOptions`](./LogSoftmaxOptions.md)`&` **`dim`**(`std::int64_t` `v`)

</div>

Sets [`dim`](./LogSoftmaxOptions.md#dim), the reduction dimension; negative counts from the end.

<div class="api-declared">

Declared in `ClikaRT/nn/generated/activation.h`, line 1280

</div>

### dim() {#dim-2}

<div class="api-signature">

`std::int64_t` **`dim`**() `const`

</div>

Reads [`dim`](./LogSoftmaxOptions.md#dim).

<div class="api-declared">

Declared in `ClikaRT/nn/generated/activation.h`, line 1282

</div>

### dtype(DataType) {#dtype}

<div class="api-signature">

[`LogSoftmaxOptions`](./LogSoftmaxOptions.md)`&` **`dtype`**([`DataType`](../../index.md#DataType) `v`)

</div>

Sets [`dtype`](../dtype/index.md), the output dtype; [`DataType::Undefined`](../../index.md#DataType) keeps the input's.

<div class="api-declared">

Declared in `ClikaRT/nn/generated/activation.h`, line 1288

</div>

### dtype() {#dtype-2}

<div class="api-signature">

[`DataType`](../../index.md#DataType) **`dtype`**() `const`

</div>

Reads [`dtype`](../dtype/index.md).

<div class="api-declared">

Declared in `ClikaRT/nn/generated/activation.h`, line 1290

</div>

## Data members

### dim\_ {#dim_}

<div class="api-signature">

`std::int64_t` **`dim_`** `= -1`

</div>

The reduction dimension; negative counts from the end. Default `-1`.

<div class="api-declared">

Declared in `ClikaRT/nn/generated/activation.h`, line 1284

</div>

### dtype\_ {#dtype_}

<div class="api-signature">

[`DataType`](../../index.md#DataType) **`dtype_`** `=` [`DataType::Undefined`](../../index.md#DataType)

</div>

The output dtype; [`DataType::Undefined`](../../index.md#DataType) keeps the input's. Default [`DataType::Undefined`](../../index.md#DataType).

<div class="api-declared">

Declared in `ClikaRT/nn/generated/activation.h`, line 1293

</div>
