CreateSessionOptions property
Pointer<NativeFunction<OrtStatusPtr Function(Pointer<Pointer<OrtSessionOptions> > options)> >
CreateSessionOptions
getter/setter pair
\brief Create an ::OrtSessionOptions object
To use additional providers, you must build ORT with the extra providers enabled. Then call one of these
functions to enable them in the session:
OrtSessionOptionsAppendExecutionProvider_CPU
OrtSessionOptionsAppendExecutionProvider_CUDA
OrtSessionOptionsAppendExecutionProvider_(remaining providers...)
The order they are called indicates the preference order as well. In other words call this method
on your most preferred execution provider first followed by the less preferred ones.
If none are called Ort will use its internal CPU execution provider.
\paramout options The newly created OrtSessionOptions. Must be freed with OrtApi::ReleaseSessionOptions
\snippet{doc} snippets.dox OrtStatus Return Value
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(ffi.Pointer<ffi.Pointer<OrtSessionOptions>> options)
>
>
CreateSessionOptions;