Skip to main content

//clika-runtime/io.clika.runtime/Ops/numelHost

numelHost

[common]
fun numelHost(input: Tensor): Tensor

numelHost(input: Tensor): the numel_host operator. The element count as a 0-D Int64 HOST tensor, written from metadata; the same no-sync contract as shape_host. Composes with shape-consuming arguments, e.g. reshape(x, {numel_host(x)}) flattens without reading sizes to the host.