docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ONNXModelMetadata

    Contains additional metadata about the ONNX model, stored in the ONNX file.

    Implements
    ISerializationCallbackReceiver
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Sentis
    Assembly: Unity.Sentis.ONNX.dll
    Syntax
    [Serializable]
    public struct ONNXModelMetadata : ISerializationCallbackReceiver

    Fields

    DocString

    Human-readable documentation for this model.

    Declaration
    public string DocString
    Field Value
    Type Description
    string

    Domain

    A reverse-DNS name to indicate the model namespace or domain.

    Declaration
    public string Domain
    Field Value
    Type Description
    string

    IRVersion

    Version number of the ONNX Intermediate Representation (IR) used in this model.

    Declaration
    public long IRVersion
    Field Value
    Type Description
    long

    MetadataProps

    Named metadata as dictionary.

    Declaration
    [NonSerialized]
    public Dictionary<string, string> MetadataProps
    Field Value
    Type Description
    Dictionary<string, string>

    ModelVersion

    The version of the model itself, encoded in an integer.

    Declaration
    public long ModelVersion
    Field Value
    Type Description
    long

    ProducerName

    The name of the tool used to generate the model.

    Declaration
    public string ProducerName
    Field Value
    Type Description
    string

    ProducerVersion

    The version of the generating tool.

    Declaration
    public string ProducerVersion
    Field Value
    Type Description
    string

    Methods

    OnAfterDeserialize()

    Implement this method to receive a callback after Unity deserializes your object.

    Declaration
    public void OnAfterDeserialize()

    OnBeforeSerialize()

    Implement this method to receive a callback before Unity serializes your object.

    Declaration
    public void OnBeforeSerialize()

    Implements

    ISerializationCallbackReceiver
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)