---
title: "ClikaRT::nn::LeakyReLUOptions"
sidebar_label: "LeakyReLUOptions"
description: "Settings of LeakyReLU: 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 [`LeakyReLU`](./LeakyReLU.md): chain the setters, or assign the fields.

## Member functions

### negative\_slope(double) {#negative_slope}

<div class="api-signature">

[`LeakyReLUOptions`](./LeakyReLUOptions.md)`&` **`negative_slope`**(`double` `v`)

</div>

Sets [`negative_slope`](./LeakyReLUOptions.md#negative_slope), the negative-side slope.

<div class="api-declared">

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

</div>

### negative\_slope() {#negative_slope-2}

<div class="api-signature">

`double` **`negative_slope`**() `const`

</div>

Reads [`negative_slope`](./LeakyReLUOptions.md#negative_slope).

<div class="api-declared">

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

</div>

### inplace(bool) {#inplace}

<div class="api-signature">

[`LeakyReLUOptions`](./LeakyReLUOptions.md)`&` **`inplace`**(`bool` `v`)

</div>

Sets [`inplace`](./LeakyReLUOptions.md#inplace), whether the forward writes the result into its input and returns that input.

<div class="api-declared">

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

</div>

### inplace() {#inplace-2}

<div class="api-signature">

`bool` **`inplace`**() `const`

</div>

Reads [`inplace`](./LeakyReLUOptions.md#inplace).

<div class="api-declared">

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

</div>

## Data members

### negative\_slope\_ {#negative_slope_}

<div class="api-signature">

`double` **`negative_slope_`** `= 0.01`

</div>

The negative-side slope. Default `0.01`.

<div class="api-declared">

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

</div>

### inplace\_ {#inplace_}

<div class="api-signature">

`bool` **`inplace_`** `= false`

</div>

Whether the forward writes the result into its input and returns that input. Default `false`.

<div class="api-declared">

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

</div>
