---
title: "ClikaRT::nn::LogSigmoid"
sidebar_label: "LogSigmoid"
description: "Logarithm of the sigmoid, computed stably: -softplus(-input). The module form of ClikaRT::ops::log_sigmoid, which documents the full contract (shapes, dtypes, errors); construct once, then call it lik…"
---

<!-- 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)

Logarithm of the sigmoid, computed stably: -softplus(-input). The module form of [`ClikaRT::ops::log_sigmoid`](../ops/log_sigmoid.md#log_sigmoid), which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function.

## Member functions

### LogSigmoid() {#LogSigmoid}

<div class="api-signature">

`explicit` **`LogSigmoid`**([`LogSigmoidOptions`](./LogSigmoidOptions.md) `options` `=` `{}`)

</div>

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

<div class="api-declared">

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

</div>

### forward() {#forward}

<div class="api-signature">

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

</div>

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

<div class="api-declared">

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

</div>

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

<div class="api-signature">

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

</div>

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

<div class="api-declared">

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

</div>

### options() {#options}

<div class="api-signature">

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

</div>

The settings this module was constructed with.

<div class="api-declared">

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

</div>
