GraphProto
Models & Types · AiDotNet.Onnx.Protobuf
Graphs
A graph defines the computational logic of a model and is comprised of a parameterized list of nodes that form a directed acyclic graph based on their inputs and outputs. This is the equivalent of the “network” or “graph” in many deep learning frameworks.
Implements: IBufferMessage, IMessage<GraphProto>
Constructors
| Constructor | Summary |
|---|---|
GraphProto() |
|
GraphProto(GraphProto other) |
Properties
| Property | Summary |
|---|---|
MessageDescriptor Descriptor { get; } |
|
MessageParser<GraphProto> Parser { get; } |
|
RepeatedField<NodeProto> Node { get; } |
The nodes in the graph, sorted topologically. |
RepeatedField<SparseTensorProto> SparseInitializer { get; } |
Initializers (see above) stored in sparse format. |
RepeatedField<StringStringEntryProto> MetadataProps { get; } |
Named metadata values; keys should be distinct. |
RepeatedField<TensorAnnotation> QuantizationAnnotation { get; } |
This field carries information to indicate the mapping among a tensor and its quantization parameter tensors. |
RepeatedField<TensorProto> Initializer { get; } |
A list of named tensor values, used to specify constant inputs of the graph. |
RepeatedField<ValueInfoProto> Input { get; } |
The inputs and outputs of the graph. |
RepeatedField<ValueInfoProto> Output { get; } |
|
RepeatedField<ValueInfoProto> ValueInfo { get; } |
Information for the values in the graph. |
string DocString { get; set; } |
A human-readable documentation for this graph. |
string Name { get; set; } |
The name of the graph. |
Methods
| Method | Summary |
|---|---|
GraphProto Clone() |
|
bool Equals(GraphProto other) |
|
bool Equals(object other) |
|
int CalculateSize() |
|
int GetHashCode() |
|
string ToString() |
|
void MergeFrom(CodedInputStream input) |
|
void MergeFrom(GraphProto other) |
|
void WriteTo(CodedOutputStream output) |
Fields
| Field | Summary |
|---|---|
int DocStringFieldNumber |
Field number for the “doc_string” field. |
int InitializerFieldNumber |
Field number for the “initializer” field. |
int InputFieldNumber |
Field number for the “input” field. |
int MetadataPropsFieldNumber |
Field number for the “metadata_props” field. |
int NameFieldNumber |
Field number for the “name” field. |
int NodeFieldNumber |
Field number for the “node” field. |
int OutputFieldNumber |
Field number for the “output” field. |
int QuantizationAnnotationFieldNumber |
Field number for the “quantization_annotation” field. |
int SparseInitializerFieldNumber |
Field number for the “sparse_initializer” field. |
int ValueInfoFieldNumber |
Field number for the “value_info” field. |