Struct ONNXModelMetadata
Contains additional metadata about the ONNX model, stored in the ONNX file.
Implements
Inherited Members
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()