---
title: "ClikaRT::nn::MSELossOptions"
sidebar_label: "MSELossOptions"
description: "Settings of MSELoss: 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/loss.h`

Settings of [`MSELoss`](./MSELoss.md): chain the setters, or assign the fields.

## Member functions

### reduction(ops::Reduction) {#reduction}

<div class="api-signature">

[`MSELossOptions`](./MSELossOptions.md)`&` **`reduction`**([`ops::Reduction`](../ops/index.md#Reduction) `v`)

</div>

Sets [`reduction`](./MSELossOptions.md#reduction), how the elementwise losses reduce.

<div class="api-declared">

Declared in `ClikaRT/nn/generated/loss.h`, line 36

</div>

### reduction() {#reduction-2}

<div class="api-signature">

[`ops::Reduction`](../ops/index.md#Reduction) **`reduction`**() `const`

</div>

Reads [`reduction`](./MSELossOptions.md#reduction).

<div class="api-declared">

Declared in `ClikaRT/nn/generated/loss.h`, line 38

</div>

## Data members

### reduction\_ {#reduction_}

<div class="api-signature">

[`ops::Reduction`](../ops/index.md#Reduction) **`reduction_`** `=` [`ops::Reduction::Mean`](../ops/index.md#Reduction)

</div>

How the elementwise losses reduce. Default [`ops::Reduction::Mean`](../ops/index.md#Reduction).

<div class="api-declared">

Declared in `ClikaRT/nn/generated/loss.h`, line 40

</div>
