可选
extra设置单个运行配置条目。参见 https://github.com/microsoft/onnxruntime/blob/main/include/onnxruntime/core/session/ onnxruntime_run_options_config_keys.h
此设置仅在 WebAssembly 后端可用。稍后将支持 Node.js 绑定和 react-native
extra: {
memory: {
enable_memory_arena_shrinkage: "1",
}
}
可选
log此设置仅在 ONNXRuntime (Node.js 绑定和 react-native) 或 WebAssembly 后端可用
可选
log日志详细级别。
此设置仅在 WebAssembly 后端可用。稍后将支持 Node.js 绑定和 react-native
可选
tag使用此标签标记 Run() 调用
此设置仅在 ONNXRuntime (Node.js 绑定和 react-native) 或 WebAssembly 后端可用
可选
terminate如果为 true,则尽快终止所有未完成的 OrtRun 调用
此设置仅在 WebAssembly 后端可用。稍后将支持 Node.js 绑定和 react-native
使用 TypeDoc 生成
推断运行行为的一组配置