Struct ONNXModelMetadata
Contains additional metadata about the ONNX model, stored in the ONNX file.
Implements
Inherited Members
Namespace: Unity.InferenceEngine
Assembly: Unity.InferenceEngine.ONNX.Editor.dll
Syntax
[MovedFrom("Unity.Sentis")]
[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 callback to transform data back into runtime data types after an object is deserialized.
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
Implement this callback to transform data into serializable data types immediately before an object is serialized.
Declaration
public void OnBeforeSerialize()