AllocatorGetStats property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtAllocator> ort_allocator, Pointer<Pointer<OrtKeyValuePairs>> out)>> AllocatorGetStats
getter/setter pair

\brief Calls OrtAllocator::GetStats function

Return a pointer to the OrtKeyValuePairs structure that contains the statistics of the allocator and the user should call OrtApi::ReleaseKeyValuePairs.

NOTE: If the allocator does not implement this function, the OrtKeyValuePairs instance will be empty.

\paramin ort_allocator The allocator to get stats from \paramout out A pointer to the OrtKeyValuePairs instance that contains the stats

\snippet{doc} snippets.dox OrtStatus Return Value

\since Version 1.23.

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtAllocator> ort_allocator,
      ffi.Pointer<ffi.Pointer<OrtKeyValuePairs>> out,
    )
  >
>
AllocatorGetStats;