CreateSession property
Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtEnv> env, Pointer<Char> model_path, Pointer<OrtSessionOptions> options, Pointer<Pointer<OrtSession> > out)> >
CreateSession
getter/setter pair
\brief Create an OrtSession from a model file
\paramin env
\paramin model_path
\paramin options
\paramout out Returned newly created OrtSession. Must be freed with OrtApi::ReleaseSession
\snippet{doc} snippets.dox OrtStatus Return Value / // TODO: document the path separator convention? '/' vs '' // TODO: should specify the access characteristics of model_path. Is this read only during the // execution of CreateSession, or does the OrtSession retain a handle to the file/directory // and continue to access throughout the OrtSession lifetime? // What sort of access is needed to model_path : read or read/write?
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<OrtEnv> env,
ffi.Pointer<ffi.Char> model_path,
ffi.Pointer<OrtSessionOptions> options,
ffi.Pointer<ffi.Pointer<OrtSession>> out,
)
>
>
CreateSession;