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

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

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

# zeros

[common]\
fun [zeros](zeros.md)(shape: [LongArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html), dtype: [DType](../DType/index.md), device: [Placement](../Placement/index.md)? = null, pinnedFor: [Placement](../Placement/index.md)? = null): [Tensor](../Tensor/index.md)

`zeros(shape: LongArray, dtype: DType, device: Placement? = null, pinnedFor: Placement? = null)`: the `zeros` operator. A new tensor of the given shape with every element set to zero. Same shape-span and `pinned_for` contract as `empty` (extents are literals or 0-D integer Tensors).