---
title: "ClikaRT::ops::numel_host"
sidebar_label: "numel_host"
description: "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."
---

<!-- Generated by tools/doxygen2mdx from Doxygen XML. Do not edit. -->

<span class="api-kind api-kind--function">function</span>

## numel\_host() {#numel_host}

<div class="api-signature">

[`Tensor`](../Tensor.md) **`numel_host`**([`Tensor`](../Tensor.md) `input`)

</div>

The element count as a 0-D Int64 HOST tensor, written from metadata; the same no-sync contract as [`shape_host`](./shape_host.md#shape_host). Composes with shape-consuming arguments, e.g. [`reshape`](./reshape.md#reshape)`(x, {numel_host(x)})` flattens without reading sizes to the host.

<div class="api-declared">

Declared in `ClikaRT/compute/ops.h`, line 5472

</div>
