Options
All
  • Public
  • Public/Protected
  • All
Menu

A set of configurations for inference run behavior

Hierarchy

  • RunOptions

Index

Properties

Optional extra

extra?: Record<string, unknown>

Set a single run configuration entry. See https://github.com/microsoft/onnxruntime/blob/master/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",
}
}

Optional logSeverityLevel

logSeverityLevel?: 0 | 1 | 2 | 3 | 4

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

Optional logVerbosityLevel

logVerbosityLevel?: number

Log verbosity level.

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

Optional tag

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

Optional terminate

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