//clika-runtime/io.clika.runtime/Ops/cast
cast
[common]
fun cast(input: Tensor, target: DType, forceCopy: Boolean = false): Tensor
cast(input: Tensor, target: DType, forceCopy: Boolean = false): the cast operator. Same-device dtype conversion. Converts per element to target. When input already has target's dtype and force_copy is false, the input passes through unchanged (no new storage); set force_copy = true to guarantee an owning copy.