Class GraphProto | Barracuda | 0.5.0-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class GraphProto

    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.

    Inheritance
    Object
    GraphProto
    Namespace: Onnx
    Syntax
    public sealed class GraphProto : Google.Protobuf.IMessage<GraphProto>

    Constructors

    GraphProto()

    Declaration
    public GraphProto()

    GraphProto(GraphProto)

    Declaration
    public GraphProto(GraphProto other)
    Parameters
    Type Name Description
    GraphProto other

    Fields

    DocStringFieldNumber

    Field number for the "doc_string" field.

    Declaration
    public const int DocStringFieldNumber = 10
    Field Value
    Type Description
    Int32

    InitializerFieldNumber

    Field number for the "initializer" field.

    Declaration
    public const int InitializerFieldNumber = 5
    Field Value
    Type Description
    Int32

    InputFieldNumber

    Field number for the "input" field.

    Declaration
    public const int InputFieldNumber = 11
    Field Value
    Type Description
    Int32

    NameFieldNumber

    Field number for the "name" field.

    Declaration
    public const int NameFieldNumber = 2
    Field Value
    Type Description
    Int32

    NodeFieldNumber

    Field number for the "node" field.

    Declaration
    public const int NodeFieldNumber = 1
    Field Value
    Type Description
    Int32

    OutputFieldNumber

    Field number for the "output" field.

    Declaration
    public const int OutputFieldNumber = 12
    Field Value
    Type Description
    Int32

    QuantizationAnnotationFieldNumber

    Field number for the "quantization_annotation" field.

    Declaration
    public const int QuantizationAnnotationFieldNumber = 14
    Field Value
    Type Description
    Int32

    SparseInitializerFieldNumber

    Field number for the "sparse_initializer" field.

    Declaration
    public const int SparseInitializerFieldNumber = 15
    Field Value
    Type Description
    Int32

    ValueInfoFieldNumber

    Field number for the "value_info" field.

    Declaration
    public const int ValueInfoFieldNumber = 13
    Field Value
    Type Description
    Int32

    Properties

    Descriptor

    Declaration
    public static Google.Protobuf.Reflection.MessageDescriptor Descriptor { get; }
    Property Value
    Type Description
    Google.Protobuf.Reflection.MessageDescriptor

    DocString

    A human-readable documentation for this graph. Markdown is allowed.

    Declaration
    public string DocString { get; set; }
    Property Value
    Type Description
    String

    Initializer

    A list of named tensor values, used to specify constant inputs of the graph. Each TensorProto entry must have a distinct name (within the list) that MAY also appear in the input list.

    Declaration
    public Google.Protobuf.Collections.RepeatedField<TensorProto> Initializer { get; }
    Property Value
    Type Description
    Google.Protobuf.Collections.RepeatedField<TensorProto>

    Input

    The inputs and outputs of the graph.

    Declaration
    public Google.Protobuf.Collections.RepeatedField<ValueInfoProto> Input { get; }
    Property Value
    Type Description
    Google.Protobuf.Collections.RepeatedField<ValueInfoProto>

    Name

    The name of the graph.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    String

    Node

    The nodes in the graph, sorted topologically.

    Declaration
    public Google.Protobuf.Collections.RepeatedField<NodeProto> Node { get; }
    Property Value
    Type Description
    Google.Protobuf.Collections.RepeatedField<NodeProto>

    Output

    Declaration
    public Google.Protobuf.Collections.RepeatedField<ValueInfoProto> Output { get; }
    Property Value
    Type Description
    Google.Protobuf.Collections.RepeatedField<ValueInfoProto>

    Parser

    Declaration
    public static Google.Protobuf.MessageParser<GraphProto> Parser { get; }
    Property Value
    Type Description
    Google.Protobuf.MessageParser<GraphProto>

    QuantizationAnnotation

    This field carries information to indicate the mapping among a tensor and its quantization parameter tensors. For example: For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated, which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.

    Declaration
    public Google.Protobuf.Collections.RepeatedField<TensorAnnotation> QuantizationAnnotation { get; }
    Property Value
    Type Description
    Google.Protobuf.Collections.RepeatedField<TensorAnnotation>

    SparseInitializer

    Initializers (see above) stored in sparse format.

    Declaration
    public Google.Protobuf.Collections.RepeatedField<SparseTensorProto> SparseInitializer { get; }
    Property Value
    Type Description
    Google.Protobuf.Collections.RepeatedField<SparseTensorProto>

    ValueInfo

    Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.

    Declaration
    public Google.Protobuf.Collections.RepeatedField<ValueInfoProto> ValueInfo { get; }
    Property Value
    Type Description
    Google.Protobuf.Collections.RepeatedField<ValueInfoProto>

    Methods

    CalculateSize()

    Declaration
    public int CalculateSize()
    Returns
    Type Description
    Int32

    Clone()

    Declaration
    public GraphProto Clone()
    Returns
    Type Description
    GraphProto

    Equals(GraphProto)

    Declaration
    public bool Equals(GraphProto other)
    Parameters
    Type Name Description
    GraphProto other
    Returns
    Type Description
    Boolean

    Equals(Object)

    Declaration
    public override bool Equals(object other)
    Parameters
    Type Name Description
    Object other
    Returns
    Type Description
    Boolean

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    MergeFrom(Google.Protobuf.CodedInputStream)

    Declaration
    public void MergeFrom(Google.Protobuf.CodedInputStream input)
    Parameters
    Type Name Description
    Google.Protobuf.CodedInputStream input

    MergeFrom(GraphProto)

    Declaration
    public void MergeFrom(GraphProto other)
    Parameters
    Type Name Description
    GraphProto other

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    WriteTo(Google.Protobuf.CodedOutputStream)

    Declaration
    public void WriteTo(Google.Protobuf.CodedOutputStream output)
    Parameters
    Type Name Description
    Google.Protobuf.CodedOutputStream output
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023