public class OnnxRuntimeSessionOptions extends Object
| Modifier and Type | Field and Description |
|---|---|
static ExecutionModeOnnx |
executionMode
Execution mode for the session.
|
static GraphOptimizationLevelOnnx |
graphOptimizationLevel
Graph optimization level for the session.
|
static int |
interOpNumThreads
Number of threads for running multiple operations in parallel.
|
static int |
intraOpNumThreads
Number of threads for a single operation.
|
| Constructor and Description |
|---|
OnnxRuntimeSessionOptions() |
| Modifier and Type | Method and Description |
|---|---|
static ai.onnxruntime.OrtSession.SessionOptions |
applyTo(ai.onnxruntime.OrtSession.SessionOptions options)
Applies current options to a given ONNX Runtime session options object.
|
public static GraphOptimizationLevelOnnx graphOptimizationLevel
public static ExecutionModeOnnx executionMode
public static int intraOpNumThreads
public static int interOpNumThreads
public static ai.onnxruntime.OrtSession.SessionOptions applyTo(ai.onnxruntime.OrtSession.SessionOptions options)
throws ai.onnxruntime.OrtException
options - OrtSession.SessionOptions to rewrite.ai.onnxruntime.OrtException - if options can not be applied.Copyright © 2025 Aspose. All rights reserved.