Class OnnxOptions
Process-wide ONNX Runtime settings, applied by the order-200 startup task.
public sealed class OnnxOptions
- Inheritance
-
OnnxOptions
- Inherited Members
Remarks
LogSeverity and BridgeNativeLogging default together, and the pair
is the reason a consumer sees ORT's native warnings in their own ILogger with no
configuration: LogSeverity is what the environment passes to
EnvironmentCreationOptions, and BridgeNativeLogging is what installs the
DOrtLoggingFunction that forwards them. Turning the bridge off leaves ORT logging to its
own stderr sink, which on a device is nowhere.
Properties
- BridgeNativeLogging
Bridges ORT's native logger into
ILoggerthroughDOrtLoggingFunction.
- DisableOrtDllImportResolver
Sets
OrtEnv.DisableDllImportResolverbefore any ORT type is touched. Default false; the escape hatch if SP1's provider resolver ever collides with ORT's.
- LogId
The log id ORT stamps on its own lines.
- LogSeverity
The severity floor handed to
EnvironmentCreationOptions.logLevel.
- ShareThreadPool
Calls
SessionOptions.DisablePerSessionThreads()so every session shares one process pool. Default true once more than one model is registered.