Table of Contents

Class OnnxModelMetadata

Namespace
AiDotNet.Onnx
Assembly
AiDotNet.dll

Metadata about a loaded ONNX model.

public class OnnxModelMetadata : IOnnxModelMetadata
Inheritance
OnnxModelMetadata
Implements
Inherited Members

Properties

CustomMetadata

Gets the custom metadata as key-value pairs.

public IReadOnlyDictionary<string, string> CustomMetadata { get; init; }

Property Value

IReadOnlyDictionary<string, string>

Description

Gets the model description if available.

public string? Description { get; init; }

Property Value

string

Domain

Gets the domain from the model.

public string? Domain { get; init; }

Property Value

string

GraphName

Gets the graph name from the model.

public string? GraphName { get; init; }

Property Value

string

Inputs

Gets information about all input tensors.

public IReadOnlyList<IOnnxTensorInfo> Inputs { get; init; }

Property Value

IReadOnlyList<IOnnxTensorInfo>

ModelName

Gets the model name from the ONNX file.

public string ModelName { get; init; }

Property Value

string

OpsetVersion

Gets the ONNX opset version used by this model.

public long OpsetVersion { get; init; }

Property Value

long

Outputs

Gets information about all output tensors.

public IReadOnlyList<IOnnxTensorInfo> Outputs { get; init; }

Property Value

IReadOnlyList<IOnnxTensorInfo>

ProducerName

Gets the producer name (e.g., "pytorch", "tensorflow").

public string? ProducerName { get; init; }

Property Value

string

ProducerVersion

Gets the producer version.

public string? ProducerVersion { get; init; }

Property Value

string