Class ONNXModelConverter
Represents a converter from an ONNX model to Sentis format.
Inherited Members
Namespace: Unity.Sentis.ONNX
Syntax
public class ONNXModelConverter
Constructors
ONNXModelConverter(Boolean)
Initializes and returns an instance of ONNXModelConverter
.
Declaration
public ONNXModelConverter(bool optimizeModel)
Parameters
Type | Name | Description |
---|---|---|
Boolean | optimizeModel | Whether to perform optimizations on the model during the import. The default value is |
Methods
Convert(String, String)
Converts an ONNX model to a Sentis Model
object.
Declaration
public Model Convert(string filePath, string directoryPath)
Parameters
Type | Name | Description |
---|---|---|
String | filePath | |
String | directoryPath |
Returns
Type | Description |
---|---|
Model |
Events
ModelImported
Calls the methods in its invocation list when the model is imported.
Declaration
public static event Action<object, Model> ModelImported
Event Type
Type | Description |
---|---|
Action<Object, Model> |