A set of configurations for inference run behavior

interface RunOptions {
    extra?: Record<string, unknown>;
    logSeverityLevel?: 0 | 2 | 1 | 3 | 4;
    logVerbosityLevel?: number;
    tag?: string;
    terminate?: boolean;
}

Properties

extra?: Record<string, unknown>

Set a single run configuration entry. See https://github.com/microsoft/onnxruntime/blob/main/include/onnxruntime/core/session/ onnxruntime_run_options_config_keys.h

This setting is available only in WebAssembly backend. Will support Node.js binding and react-native later

Example

extra: {
memory: {
enable_memory_arena_shrinkage: "1",
}
}
logSeverityLevel?: 0 | 2 | 1 | 3 | 4

Log severity level. See https://github.com/microsoft/onnxruntime/blob/main/include/onnxruntime/core/common/logging/severity.h

This setting is available only in ONNXRuntime (Node.js binding and react-native) or WebAssembly backend

logVerbosityLevel?: number

Log verbosity level.

This setting is available only in WebAssembly backend. Will support Node.js binding and react-native later

tag?: string

A tag for the Run() calls using this

This setting is available only in ONNXRuntime (Node.js binding and react-native) or WebAssembly backend

terminate?: boolean

Terminate all incomplete OrtRun calls as soon as possible if true

This setting is available only in WebAssembly backend. Will support Node.js binding and react-native later

Generated using TypeDoc