GetBoundOutputValues property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtIoBinding> binding_ptr, Pointer<OrtAllocator> allocator, Pointer<Pointer<Pointer<OrtValue>>> output, Pointer<Size> output_count)>> GetBoundOutputValues
getter/setter pair

\brief Get the output ::OrtValue objects from an ::OrtIoBinding

Returns an array of pointers to individually allocated ::OrtValue%s that contain results of a model execution with OrtApi::RunWithBinding The array contains the same number of ::OrtValue%s and they are in the same order as they were bound with OrtApi::BindOutput or OrtApi::BindOutputToDevice.

The returned ::OrtValue%s must be released using OrtApi::ReleaseValue after they are no longer needed. The array is allocated using the specified instance of the allocator and must be freed using the same allocator after all the ::OrtValue%s contained therein are individually released.

\paramin binding_ptr \paramin allocator Allocator used to allocate output array \paramout output Set to the allocated array of allocated ::OrtValue outputs. Set to nullptr if there are 0 outputs. \paramout output_count Set to number of ::OrtValue%s returned

\snippet{doc} snippets.dox OrtStatus Return Value

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtIoBinding> binding_ptr,
      ffi.Pointer<OrtAllocator> allocator,
      ffi.Pointer<ffi.Pointer<ffi.Pointer<OrtValue>>> output,
      ffi.Pointer<ffi.Size> output_count,
    )
  >
>
GetBoundOutputValues;