ModelProto

Models & Types · AiDotNet.Onnx.Protobuf

Models

ModelProto is a top-level file/container format for bundling a ML model and associating its computation graph with metadata.

The semantics of the model are described by the associated GraphProto’s.

Implements: IBufferMessage, IMessage<ModelProto>

Constructors

Constructor Summary
ModelProto()
ModelProto(ModelProto other)

Properties

Property Summary
GraphProto Graph { get; set; } The parameterized graph that is evaluated to execute the model.
MessageDescriptor Descriptor { get; }
MessageParser<ModelProto> Parser { get; }
RepeatedField<FunctionProto> Functions { get; } A list of function protos local to the model.
RepeatedField<OperatorSetIdProto> OpsetImport { get; } The OperatorSets this model relies on.
RepeatedField<StringStringEntryProto> MetadataProps { get; } Named metadata values; keys should be distinct.
RepeatedField<TrainingInfoProto> TrainingInfo { get; } Training-specific information.
long IrVersion { get; set; } The version of the IR this model targets.
long ModelVersion { get; set; } The version of the graph encoded.
string DocString { get; set; } A human-readable documentation for this model.
string Domain { get; set; } Domain name of the model.
string ProducerName { get; set; } The name of the framework or tool used to generate this model.
string ProducerVersion { get; set; } The version of the framework or tool used to generate this model.

Methods

Method Summary
ModelProto Clone()
bool Equals(ModelProto other)
bool Equals(object other)
int CalculateSize()
int GetHashCode()
string ToString()
void MergeFrom(CodedInputStream input)
void MergeFrom(ModelProto other)
void WriteTo(CodedOutputStream output)

Fields

Field Summary
int DocStringFieldNumber Field number for the “doc_string” field.
int DomainFieldNumber Field number for the “domain” field.
int FunctionsFieldNumber Field number for the “functions” field.
int GraphFieldNumber Field number for the “graph” field.
int IrVersionFieldNumber Field number for the “ir_version” field.
int MetadataPropsFieldNumber Field number for the “metadata_props” field.
int ModelVersionFieldNumber Field number for the “model_version” field.
int OpsetImportFieldNumber Field number for the “opset_import” field.
int ProducerNameFieldNumber Field number for the “producer_name” field.
int ProducerVersionFieldNumber Field number for the “producer_version” field.
int TrainingInfoFieldNumber Field number for the “training_info” field.