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

    Class TensorAnnotation

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

    Constructors

    TensorAnnotation()

    Declaration
    public TensorAnnotation()

    TensorAnnotation(TensorAnnotation)

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

    Fields

    QuantParameterTensorNamesFieldNumber

    Field number for the "quant_parameter_tensor_names" field.

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

    TensorNameFieldNumber

    Field number for the "tensor_name" field.

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

    Properties

    Descriptor

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

    Parser

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

    QuantParameterTensorNames

    <key, value> pairs to annotate tensor specified by <tensor_name> above. The keys used in the mapping below must be pre-defined in ONNX spec. For example, for 8-bit linear quantization case, 'SCALE_TENSOR', 'ZERO_POINT_TENSOR' will be pre-defined as quantization parameter keys.

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

    TensorName

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

    Methods

    CalculateSize()

    Declaration
    public int CalculateSize()
    Returns
    Type Description
    Int32

    Clone()

    Declaration
    public TensorAnnotation Clone()
    Returns
    Type Description
    TensorAnnotation

    Equals(TensorAnnotation)

    Declaration
    public bool Equals(TensorAnnotation other)
    Parameters
    Type Name Description
    TensorAnnotation 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(TensorAnnotation)

    Declaration
    public void MergeFrom(TensorAnnotation other)
    Parameters
    Type Name Description
    TensorAnnotation 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