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

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

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

# scatterReduce

[common]\
fun [scatterReduce](scatterReduce.md)(input: [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)

`scatterReduce(input: Tensor, dim: Long, index: Tensor, src: Tensor, reduce: ScatterReduceMode, includeSelf: Boolean = true, deterministic: Boolean = false)`: the `scatter_reduce` operator. `scatter` with a REDUCTION at each destination: `Sum` / `Prod` / `Mean` / `AMax` / `AMin` (`ScatterReduceMode`).