BindOutputToDevice property
Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtIoBinding> binding_ptr, Pointer<Char> name, Pointer<OrtMemoryInfo> mem_info_ptr)> >
BindOutputToDevice
getter/setter pair
\brief Bind an ::OrtIoBinding output to a device
Binds the ::OrtValue to a device which is specified by ::OrtMemoryInfo. You can either create an instance of ::OrtMemoryInfo with a device id or obtain one from the allocator that you have created/are using This is useful when one or more outputs have dynamic shapes and, it is hard to pre-allocate and bind a chunk of memory within ::OrtValue ahead of time.
\see OrtApi::RunWithBinding
\paramin binding_ptr
\paramin name Null terminated string of the device name
\paramin mem_info_ptr
\snippet{doc} snippets.dox OrtStatus Return Value
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<OrtIoBinding> binding_ptr,
ffi.Pointer<ffi.Char> name,
ffi.Pointer<OrtMemoryInfo> mem_info_ptr,
)
>
>
BindOutputToDevice;