---
title: "scatterReduceInPlace"
sidebar_label: "scatterReduceInPlace"
description: "Kotlin binding reference: scatterReduceInPlace."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Ops](index.md)/[scatterReduceInPlace](scatterReduceInPlace.md)

# scatterReduceInPlace

[common]\
fun [scatterReduceInPlace](scatterReduceInPlace.md)(self: [Tensor](../Tensor/index.md), dim: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html), index: [Tensor](../Tensor/index.md), src: [Tensor](../Tensor/index.md), reduce: [ScatterReduceMode](../ScatterReduceMode/index.md), includeSelf: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = true, deterministic: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false): [Tensor](../Tensor/index.md)

`scatterReduceInPlace(self: Tensor, dim: Long, index: Tensor, src: Tensor, reduce: ScatterReduceMode, includeSelf: Boolean = true, deterministic: Boolean = false)`: the `scatter_reduce_` operator. 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. Returns `self` under the value surface, `Result<void>` under the `Result` surface; `CLIKART_CHECK` is the mode-stable spelling. Writes through `self` and returns it, so calls chain.