---
title: "ClikaRT::nn::ReLU6"
sidebar_label: "ReLU6"
description: "ReLU capped at 6: clamp(input, 0, 6). The module form of ClikaRT::ops::relu6, which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function."
---

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

[ReLU](./ReLU.md) capped at 6: clamp(input, 0, 6). The module form of [`ClikaRT::ops::relu6`](../ops/relu6.md#relu6), which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function.

## Member functions

### ReLU6() {#ReLU6}

<div class="api-signature">

`explicit` **`ReLU6`**([`ReLU6Options`](./ReLU6Options.md) `options` `=` `{}`)

</div>

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

<div class="api-declared">

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

</div>

### forward() {#forward}

<div class="api-signature">

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

</div>

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

<div class="api-declared">

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

</div>

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

<div class="api-signature">

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

</div>

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

<div class="api-declared">

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

</div>

### options() {#options}

<div class="api-signature">

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

</div>

The settings this module was constructed with.

<div class="api-declared">

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

</div>
