CreateEnvWithGlobalThreadPools property

Pointer<NativeFunction<OrtStatusPtr Function(UnsignedInt log_severity_level, Pointer<Char> logid, Pointer<OrtThreadingOptions> tp_options, Pointer<Pointer<OrtEnv>> out)>> CreateEnvWithGlobalThreadPools
getter/setter pair

\brief Create an OrtEnv

Create an environment with global threadpools that will be shared across sessions. Use this in conjunction with OrtApi::DisablePerSessionThreads or else the session will use its own thread pools.

\paramin log_severity_level The log severity level. \paramin logid The log identifier. \paramin tp_options \paramout out Returned newly created OrtEnv. Must be freed with OrtApi::ReleaseEnv

\snippet{doc} snippets.dox OrtStatus Return Value

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.UnsignedInt log_severity_level,
      ffi.Pointer<ffi.Char> logid,
      ffi.Pointer<OrtThreadingOptions> tp_options,
      ffi.Pointer<ffi.Pointer<OrtEnv>> out,
    )
  >
>
CreateEnvWithGlobalThreadPools;