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
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
Fields
DimFieldNumber
Field number for the "dim" field.
Declaration
public const int DimFieldNumber = 1
Field Value
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
Parser
Declaration
public static Google.Protobuf.MessageParser<TensorShapeProto> Parser { get; }
Property Value
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Clone()
Declaration
public TensorShapeProto Clone()
Returns
Equals(TensorShapeProto)
Declaration
public bool Equals(TensorShapeProto 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(TensorShapeProto)
Declaration
public void MergeFrom(TensorShapeProto 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 |
|