Package ai.onnx.proto

Interface OnnxMl.TensorAnnotationOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
OnnxMl.TensorAnnotation, OnnxMl.TensorAnnotation.Builder
Enclosing class:
OnnxMl

public static interface OnnxMl.TensorAnnotationOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • hasTensorName

      boolean hasTensorName()
      optional string tensor_name = 1;
      Returns:
      Whether the tensorName field is set.
    • getTensorName

      String getTensorName()
      optional string tensor_name = 1;
      Returns:
      The tensorName.
    • getTensorNameBytes

      com.google.protobuf.ByteString getTensorNameBytes()
      optional string tensor_name = 1;
      Returns:
      The bytes for tensorName.
    • getQuantParameterTensorNamesList

      List<OnnxMl.StringStringEntryProto> getQuantParameterTensorNamesList()
       <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.
       
      repeated .onnx.StringStringEntryProto quant_parameter_tensor_names = 2;
    • getQuantParameterTensorNames

      OnnxMl.StringStringEntryProto getQuantParameterTensorNames(int index)
       <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.
       
      repeated .onnx.StringStringEntryProto quant_parameter_tensor_names = 2;
    • getQuantParameterTensorNamesCount

      int getQuantParameterTensorNamesCount()
       <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.
       
      repeated .onnx.StringStringEntryProto quant_parameter_tensor_names = 2;
    • getQuantParameterTensorNamesOrBuilderList

      List<? extends OnnxMl.StringStringEntryProtoOrBuilder> getQuantParameterTensorNamesOrBuilderList()
       <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.
       
      repeated .onnx.StringStringEntryProto quant_parameter_tensor_names = 2;
    • getQuantParameterTensorNamesOrBuilder

      OnnxMl.StringStringEntryProtoOrBuilder getQuantParameterTensorNamesOrBuilder(int index)
       <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.
       
      repeated .onnx.StringStringEntryProto quant_parameter_tensor_names = 2;