Class OnnxFileSessionOptions
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
configOnnxConfigEnummodelPathstringmodelNamestringcalibrationPathstringgpuDeviceIdintenableProfilingbooloutputDeviceOutputBindingTarget
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
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; }