Skip to main content

//clika-runtime/io.clika.runtime/Ops/copyInto

copyInto

[common]
fun copyInto(self: Tensor, src: Tensor, target: Placement? = null): Tensor

copyInto(self: Tensor, src: Tensor, target: Placement? = null): the copy_into operator. Write src into the caller-supplied out buffer (the destination-first spelling of the in-place copy; bind a persistent buffer once, write it every step with no allocation). Dtype conversion is interleaved with the write; a cross-device src is transferred first. Returns out. Writes through self and returns it, so calls chain.