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

    Class TensorProto.Types.Segment

    For very large tensors, we may want to store them in chunks, in which case the following fields will specify the segment that is stored in the current TensorProto.

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

    Constructors

    Segment()

    Declaration
    public Segment()

    Segment(TensorProto.Types.Segment)

    Declaration
    public Segment(TensorProto.Types.Segment other)
    Parameters
    Type Name Description
    TensorProto.Types.Segment other

    Fields

    BeginFieldNumber

    Field number for the "begin" field.

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

    EndFieldNumber

    Field number for the "end" field.

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

    Properties

    Begin

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

    Descriptor

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

    End

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

    Parser

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

    Methods

    CalculateSize()

    Declaration
    public int CalculateSize()
    Returns
    Type Description
    Int32

    Clone()

    Declaration
    public TensorProto.Types.Segment Clone()
    Returns
    Type Description
    TensorProto.Types.Segment

    Equals(TensorProto.Types.Segment)

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

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