---
title: "numelHost"
sidebar_label: "numelHost"
description: "Kotlin binding reference: numelHost."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Ops](index.md)/[numelHost](numelHost.md)

# numelHost

[common]\
fun [numelHost](numelHost.md)(input: [Tensor](../Tensor/index.md)): [Tensor](../Tensor/index.md)

`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.