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

## Member functions

### inplace(bool) {#inplace}

<div class="api-signature">

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

</div>

Sets [`inplace`](./HardswishOptions.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 697

</div>

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

<div class="api-signature">

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

</div>

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

<div class="api-declared">

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

</div>

## Data members

### 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 702

</div>
