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

    Class TensorShapeProto

    Defines a tensor shape. A dimension can be either an integer value or a symbolic variable. A symbolic variable represents an unknown dimension.

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

    Constructors

    TensorShapeProto()

    Declaration
    public TensorShapeProto()

    TensorShapeProto(TensorShapeProto)

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

    Fields

    DimFieldNumber

    Field number for the "dim" field.

    Declaration
    public const int DimFieldNumber = 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

    Dim

    Declaration
    public Google.Protobuf.Collections.RepeatedField<TensorShapeProto.Types.Dimension> Dim { get; }
    Property Value
    Type Description
    Google.Protobuf.Collections.RepeatedField<TensorShapeProto.Types.Dimension>

    Parser

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

    Methods

    CalculateSize()

    Declaration
    public int CalculateSize()
    Returns
    Type Description
    Int32

    Clone()

    Declaration
    public TensorShapeProto Clone()
    Returns
    Type Description
    TensorShapeProto

    Equals(TensorShapeProto)

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

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