GetNumHardwareDevices property
Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtEnv> env, Pointer<Size> num_devices)> >
GetNumHardwareDevices
getter/setter pair
\brief Get the number of available hardware devices.
Returns the count of hardware devices discovered on the system. Use this to allocate an array before calling GetHardwareDevices().
\paramin env The OrtEnv instance where device discovery results are stored.
\paramout num_devices The number of OrtHardwareDevice instances available.
\snippet{doc} snippets.dox OrtStatus Return Value
\since Version 1.24.
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<OrtEnv> env,
ffi.Pointer<ffi.Size> num_devices,
)
>
>
GetNumHardwareDevices;