setSessionExecutionMode method

void setSessionExecutionMode(
  1. OrtSessionExecutionMode mode
)

Sets the execution mode for the session. Sequential mode runs operations one at a time. Parallel mode allows operations to run in parallel when possible.

Implementation

void setSessionExecutionMode(OrtSessionExecutionMode mode) {
  final statusPtr = OrtEnv.instance.ortApiPtr.ref.SetSessionExecutionMode
      .asFunction<
          bg.OrtStatusPtr Function(
              ffi.Pointer<bg.OrtSessionOptions>, int)>()(_ptr, mode.value);
  OrtStatus.checkOrtStatus(statusPtr);
}