---
title: "ClikaRT::ops::scatter_reduce_"
sidebar_label: "scatter_reduce_"
description: "In-place scatter_reduce: reduces into self at the indexed positions; same arguments and error conditions as scatter_reduce(). A strided view reaches its base buffer."
---

<!-- Generated by tools/doxygen2mdx from Doxygen XML. Do not edit. -->

<span class="api-kind api-kind--function">function</span>

## scatter\_reduce\_() {#scatter_reduce_}

<div class="api-signature">

[`Tensor`](../Tensor.md)`&` **`scatter_reduce_`**(<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`Tensor`](../Tensor.md)`&` `self`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;`int64_t` `dim`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`Tensor`](../Tensor.md) `index`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`Tensor`](../Tensor.md) `src`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`ScatterReduceMode`](./index.md#ScatterReduceMode) `reduce`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;`bool` `include_self` `=` `true`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;`bool` `deterministic` `=` `false`<br />
)

</div>

In-place [`scatter_reduce`](./scatter_reduce.md#scatter_reduce): reduces into `self` at the indexed positions; same arguments and error conditions as [`scatter_reduce()`](./scatter_reduce.md#scatter_reduce). A strided view reaches its base buffer. Returns `self` under the value surface, [`Result`](../Result.md)`<void>` under the [`Result`](../Result.md) surface; [`CLIKART_CHECK`](../../index.md#CLIKART_CHECK) is the mode-stable spelling.

<div class="api-declared">

Declared in `ClikaRT/compute/ops.h`, line 2686

</div>
