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

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

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

# maskedFillInPlace

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

`maskedFillInPlace(self: Tensor, mask: Tensor, value: Tensor)`: the `masked_fill_` operator. In-place `masked_fill`: writes `value` through `self` where `mask` is true; same arguments and error conditions as `masked_fill()`. 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.

[common]\
fun [maskedFillInPlace](maskedFillInPlace.md)(self: [Tensor](../Tensor/index.md), mask: [Tensor](../Tensor/index.md), value: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)): [Tensor](../Tensor/index.md)

`maskedFillInPlace(self: Tensor, mask: Tensor, value: Double)`: the number form of `masked_fill_`, `value` as a scalar.