---
title: "ClikaRT::nn::Softmin"
sidebar_label: "Softmin"
description: "Softmax of the negated input along dim: small values weigh most."
---

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

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

**Header:** `ClikaRT/nn/generated/activation.h`  
**Inherits:** [`ClikaRT::nn::Module`](./Module.md)

[Softmax](./Softmax.md) of the negated input along dim: small values weigh most. The module form of [`ClikaRT::ops::softmin`](../ops/softmin.md#softmin), which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function.

## Member functions

### Softmin(SoftminOptions) {#Softmin}

<div class="api-signature">

`explicit` **`Softmin`**([`SoftminOptions`](./SoftminOptions.md) `options` `=` `{}`)

</div>

Constructs the module from [`options`](./Softmin.md#options) (every default when omitted).

<div class="api-declared">

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

</div>

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

<div class="api-signature">

`explicit` **`Softmin`**(`std::int64_t` `dim`)

</div>

`Softmin(dim)`: the positional form of `SoftminOptions(dim)`.

<div class="api-declared">

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

</div>

### forward() {#forward}

<div class="api-signature">

[`Tensor`](../Tensor.md) **`forward`**([`Tensor`](../Tensor.md) `input`) `const`

</div>

[`forward_impl`](./Softmin.md#forward), unwrapped: raises [`ClikaRT::Error`](../Error.md) on failure.

<div class="api-declared">

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

</div>

### operator()() {#operator-call}

<div class="api-signature">

[`Tensor`](../Tensor.md) **`operator()`**([`Tensor`](../Tensor.md) `input`) `const`

</div>

Same as [`forward`](./Softmin.md#forward).

<div class="api-declared">

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

</div>

### options() {#options}

<div class="api-signature">

`const` [`SoftminOptions`](./SoftminOptions.md)`&` **`options`**() `const`

</div>

The settings this module was constructed with.

<div class="api-declared">

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

</div>
