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

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

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

# zeroInPlace

[common]\
fun [zeroInPlace](zeroInPlace.md)(self: [Tensor](../Tensor/index.md), device: [Placement](../Placement/index.md)? = null): [Tensor](../Tensor/index.md)

`zeroInPlace(self: Tensor, device: Placement? = null)`: the `zero_` operator. In-place zero fill: overwrites every element of `self` with zero (the error conditions of `zeros()`). 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.