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

    Class TypeProto.Types.SparseTensor

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

    Constructors

    SparseTensor()

    Declaration
    public SparseTensor()

    SparseTensor(TypeProto.Types.SparseTensor)

    Declaration
    public SparseTensor(TypeProto.Types.SparseTensor other)
    Parameters
    Type Name Description
    TypeProto.Types.SparseTensor other

    Fields

    ElemTypeFieldNumber

    Field number for the "elem_type" field.

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

    ShapeFieldNumber

    Field number for the "shape" field.

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

    Properties

    Descriptor

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

    ElemType

    This field MUST NOT have the value of UNDEFINED This field MUST have a valid TensorProto.DataType value This field MUST be present for this version of the IR.

    Declaration
    public int ElemType { get; set; }
    Property Value
    Type Description
    Int32

    Parser

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

    Shape

    Declaration
    public TensorShapeProto Shape { get; set; }
    Property Value
    Type Description
    TensorShapeProto

    Methods

    CalculateSize()

    Declaration
    public int CalculateSize()
    Returns
    Type Description
    Int32

    Clone()

    Declaration
    public TypeProto.Types.SparseTensor Clone()
    Returns
    Type Description
    TypeProto.Types.SparseTensor

    Equals(TypeProto.Types.SparseTensor)

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

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