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

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

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

# emptyStrided

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

`emptyStrided(size: LongArray, stride: LongArray, dtype: DType, device: Placement? = null)`: the `empty_strided` operator. Uninitialized tensor with caller-chosen sizes AND strides (element units). The storage is sized to the strided footprint. Extents and strides are host integers (no tensor-valued entries on this factory).