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

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

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

# copyToCpu

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

`copyToCpu(src: Tensor)`: the `copy_to_cpu` operator. Materializes a host-resident copy of the tensor (device-to-host transfer; an owning CPU tensor even when `src` is already on the CPU).