docs.unity3d.com
    Show / Hide Table of Contents

    Class ONNXModelConverter

    Represents a converter from an ONNX model to Sentis format.

    Inheritance
    Object
    ONNXModelConverter
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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 true.

    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>
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023