Class TypeProto.Types.SparseTensor
Inheritance
TypeProto.Types.SparseTensor
Namespace: Onnx
Syntax
public sealed class SparseTensor : Google.Protobuf.IMessage<TypeProto.Types.SparseTensor>
Constructors
SparseTensor()
Declaration
SparseTensor(TypeProto.Types.SparseTensor)
Declaration
public SparseTensor(TypeProto.Types.SparseTensor other)
Parameters
Fields
ElemTypeFieldNumber
Field number for the "elem_type" field.
Declaration
public const int ElemTypeFieldNumber = 1
Field Value
ShapeFieldNumber
Field number for the "shape" field.
Declaration
public const int ShapeFieldNumber = 2
Field Value
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
Parser
Declaration
public static Google.Protobuf.MessageParser<TypeProto.Types.SparseTensor> Parser { get; }
Property Value
Shape
Declaration
public TensorShapeProto Shape { get; set; }
Property Value
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Clone()
Declaration
public TypeProto.Types.SparseTensor Clone()
Returns
Equals(TypeProto.Types.SparseTensor)
Declaration
public bool Equals(TypeProto.Types.SparseTensor other)
Parameters
Returns
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
Object |
other |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
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
ToString()
Declaration
public override string ToString()
Returns
WriteTo(Google.Protobuf.CodedOutputStream)
Declaration
public void WriteTo(Google.Protobuf.CodedOutputStream output)
Parameters
Type |
Name |
Description |
Google.Protobuf.CodedOutputStream |
output |
|