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

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

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

# clone

[common]\
fun [clone](clone.md)(src: [Tensor](../Tensor/index.md)): [Tensor](../Tensor/index.md)

`clone(src: Tensor)`: the `clone` operator. Deep copy on the same device: fresh storage, identical shape, dtype, and values. Equivalent to `copy(src)` with the defaults.