ValueInfo_GetValueNumConsumers property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtValueInfo> value_info, Pointer<Size> num_consumers)>> ValueInfo_GetValueNumConsumers
getter/setter pair

\brief Get the number of consumers of a value as a node input.

Only nodes are considered "consumers" by this function. To check if an OrtValueInfo is a graph output, call ValueInfo_IsGraphOutput().

A single OrtNode may use a single value for more than one input (e.g., Mul(x, x)), so the returned num_consumers may be larger than the number of unique OrtNode instances that consume the value.

\paramin value_info The OrtValueInfo instance. \paramout num_consumers Output parameter set to the number of consumers of the value.

\snippet{doc} snippets.dox OrtStatus Return Value

\since Version 1.23.

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtValueInfo> value_info,
      ffi.Pointer<ffi.Size> num_consumers,
    )
  >
>
ValueInfo_GetValueNumConsumers;