SetSessionExecutionMode property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtSessionOptions> options, UnsignedInt execution_mode)>> SetSessionExecutionMode
getter/setter pair

\brief Set execution mode

Controls whether you want to execute operators in your graph sequentially or in parallel. Usually when the model has many branches, setting this option to ExecutionMode.ORT_PARALLEL will give you better performance. See docs/ONNX_Runtime_Perf_Tuning.md for more details.

\paramin options \paramin execution_mode

\snippet{doc} snippets.dox OrtStatus Return Value

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtSessionOptions> options,
      ffi.UnsignedInt execution_mode,
    )
  >
>
SetSessionExecutionMode;