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

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

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

# empty

[common]\
fun [empty](empty.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)

`empty(shape: LongArray, dtype: DType, device: Placement? = null, pinnedFor: Placement? = null)`: the `empty` operator. Uninitialized tensor of the given shape; the contents are whatever the allocator hands back; write every element before reading any. Each `shape` extent is an int literal OR a 0-D integer Tensor (a tensor extent traces symbolically, never syncing to the host).