class OnnxRuntime::RunOptions

Overview

RunOptions class provides options for inference execution.

Defined in:

onnxruntime/run_options.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(session : InferenceSession) #

Creates a new RunOptions instance.


[View source]

Instance Method Detail

def finalize #

Finalizer to release resources


[View source]
def log_severity_level=(level : Int32) #

Set run log severity level


[View source]
def log_verbosity_level=(level : Int32) #

Set run log verbosity level


[View source]
def release #

Explicitly release resources


[View source]
def tag=(tag : String) #

Set run tag


[View source]
def terminate #

Set terminate flag


[View source]
def to_unsafe : Pointer(OnnxRuntime::LibOnnxRuntime::OrtRunOptions) #

Get the underlying OrtRunOptions pointer


[View source]