Skip to main content

ClikaRT::ops::numel_host

function

numel_host()

Tensor numel_host(Tensor x)

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.

Declared in ClikaRT/compute/ops.h, line 5334