---
title: "ClikaRT::ops::scatter_add_"
sidebar_label: "scatter_add_"
description: "In-place scatter_add: accumulates through self at the indexed positions; same arguments (incl. deterministic) and error conditions as scatter_add(). 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\_add\_() {#scatter_add_}

<div class="api-signature">

[`Tensor`](../Tensor.md)`&` **`scatter_add_`**(<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;`bool` `deterministic` `=` `false`<br />
)

</div>

In-place [`scatter_add`](./scatter_add.md#scatter_add): accumulates through `self` at the indexed positions; same arguments (incl. `deterministic`) and error conditions as [`scatter_add()`](./scatter_add.md#scatter_add). 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 2671

</div>
