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

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

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

# putInPlace

[common]\
fun [putInPlace](putInPlace.md)(self: [Tensor](../Tensor/index.md), index: [Tensor](../Tensor/index.md), source: [Tensor](../Tensor/index.md), accumulate: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false): [Tensor](../Tensor/index.md)

`putInPlace(self: Tensor, index: Tensor, source: Tensor, accumulate: Boolean = false)`: the `put_` operator. In-place `put`: writes (or accumulates) through `self` at flat positions; same arguments and error conditions as `put()`. 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.