Class TypeProto.Types.Tensor
Inheritance
TypeProto.Types.Tensor
Namespace: Onnx
Syntax
public sealed class Tensor : Google.Protobuf.IMessage<TypeProto.Types.Tensor>
Constructors
Tensor()
Declaration
Tensor(TypeProto.Types.Tensor)
Declaration
public Tensor(TypeProto.Types.Tensor 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.Tensor> 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.Tensor Clone()
Returns
Equals(TypeProto.Types.Tensor)
Declaration
public bool Equals(TypeProto.Types.Tensor 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.Tensor)
Declaration
public void MergeFrom(TypeProto.Types.Tensor 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 |
|