Class TensorAnnotation
Inheritance
TensorAnnotation
Namespace: Onnx
Syntax
public sealed class TensorAnnotation : Google.Protobuf.IMessage<TensorAnnotation>
Constructors
TensorAnnotation()
Declaration
public TensorAnnotation()
TensorAnnotation(TensorAnnotation)
Declaration
public TensorAnnotation(TensorAnnotation other)
Parameters
Fields
QuantParameterTensorNamesFieldNumber
Field number for the "quant_parameter_tensor_names" field.
Declaration
public const int QuantParameterTensorNamesFieldNumber = 2
Field Value
TensorNameFieldNumber
Field number for the "tensor_name" field.
Declaration
public const int TensorNameFieldNumber = 1
Field Value
Properties
Descriptor
Declaration
public static Google.Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
Type |
Description |
Google.Protobuf.Reflection.MessageDescriptor |
|
Parser
Declaration
public static Google.Protobuf.MessageParser<TensorAnnotation> Parser { get; }
Property Value
QuantParameterTensorNames
<key, value> pairs to annotate tensor specified by <tensor_name> above.
The keys used in the mapping below must be pre-defined in ONNX spec.
For example, for 8-bit linear quantization case, 'SCALE_TENSOR', 'ZERO_POINT_TENSOR' will be pre-defined as
quantization parameter keys.
Declaration
public Google.Protobuf.Collections.RepeatedField<StringStringEntryProto> QuantParameterTensorNames { get; }
Property Value
TensorName
Declaration
public string TensorName { get; set; }
Property Value
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Clone()
Declaration
public TensorAnnotation Clone()
Returns
Equals(TensorAnnotation)
Declaration
public bool Equals(TensorAnnotation 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(TensorAnnotation)
Declaration
public void MergeFrom(TensorAnnotation 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 |
|