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

    Class TensorShapeProto.Types.Dimension

    Inheritance
    Object
    TensorShapeProto.Types.Dimension
    Namespace: Onnx
    Syntax
    public sealed class Dimension : Google.Protobuf.IMessage<TensorShapeProto.Types.Dimension>

    Constructors

    Dimension()

    Declaration
    public Dimension()

    Dimension(TensorShapeProto.Types.Dimension)

    Declaration
    public Dimension(TensorShapeProto.Types.Dimension other)
    Parameters
    Type Name Description
    TensorShapeProto.Types.Dimension other

    Fields

    DenotationFieldNumber

    Field number for the "denotation" field.

    Declaration
    public const int DenotationFieldNumber = 3
    Field Value
    Type Description
    Int32

    DimParamFieldNumber

    Field number for the "dim_param" field.

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

    DimValueFieldNumber

    Field number for the "dim_value" field.

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

    Properties

    Denotation

    Standard denotation can optionally be used to denote tensor dimensions with standard semantic descriptions to ensure that operations are applied to the correct axis of a tensor. Refer to https://github.com/onnx/onnx/blob/master/docs/DimensionDenotation.md#denotation-definition for pre-defined dimension denotations.

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

    Descriptor

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

    DimParam

    namespace Shape

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

    DimValue

    Declaration
    public long DimValue { get; set; }
    Property Value
    Type Description
    Int64

    Parser

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

    ValueCase

    Declaration
    public TensorShapeProto.Types.Dimension.ValueOneofCase ValueCase { get; }
    Property Value
    Type Description
    TensorShapeProto.Types.Dimension.ValueOneofCase

    Methods

    CalculateSize()

    Declaration
    public int CalculateSize()
    Returns
    Type Description
    Int32

    ClearValue()

    Declaration
    public void ClearValue()

    Clone()

    Declaration
    public TensorShapeProto.Types.Dimension Clone()
    Returns
    Type Description
    TensorShapeProto.Types.Dimension

    Equals(TensorShapeProto.Types.Dimension)

    Declaration
    public bool Equals(TensorShapeProto.Types.Dimension other)
    Parameters
    Type Name Description
    TensorShapeProto.Types.Dimension 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(TensorShapeProto.Types.Dimension)

    Declaration
    public void MergeFrom(TensorShapeProto.Types.Dimension other)
    Parameters
    Type Name Description
    TensorShapeProto.Types.Dimension 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