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

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

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

# maskedScatterInPlace

[common]\
fun [maskedScatterInPlace](maskedScatterInPlace.md)(self: [Tensor](../Tensor/index.md), mask: [Tensor](../Tensor/index.md), source: [Tensor](../Tensor/index.md)): [Tensor](../Tensor/index.md)

`maskedScatterInPlace(self: Tensor, mask: Tensor, source: Tensor)`: the `masked_scatter_` operator. In-place `masked_scatter`: writes `src`'s leading elements through `self` where `mask` is true; same arguments and error conditions as `masked_scatter()`. A view input writes through its base storage. 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.