Class OnnxFileSessionOptions

Namespace
NT2I.ONNX.Engine
Assembly
NT2I.ONNX.Engine.dll

A helper configuration class that inherits from OnnxSessionOptions and populates the byte array properties by reading from file paths.

public class OnnxFileSessionOptions : OnnxSessionOptions, IOnnxFileSessionOptions, IOnnxSessionOptions
Inheritance
OnnxFileSessionOptions
Implements
Inherited Members

Constructors

OnnxFileSessionOptions()

public OnnxFileSessionOptions()

OnnxFileSessionOptions(OnnxConfigEnum, string, string, string?, int, bool, OutputBindingTarget)

public OnnxFileSessionOptions(OnnxConfigEnum config, string modelPath, string modelName = "Model", string? calibrationPath = null, int gpuDeviceId = 0, bool enableProfiling = false, OutputBindingTarget outputDevice = OutputBindingTarget.Host)

Parameters

config OnnxConfigEnum
modelPath string
modelName string
calibrationPath string
gpuDeviceId int
enableProfiling bool
outputDevice OutputBindingTarget

Properties

CalibrationFilePath

Sets the path to the calibration file. The file is read and its content is stored in the CalibrationData property.

public string CalibrationFilePath { set; }

Property Value

string

ModelPath

Sets the path to the ONNX model file. The file is read and its content is stored in the ModelData property.

public string ModelPath { set; }

Property Value

string