Package onnx

Class Onnx.TensorAnnotation.Builder

    • Method Detail

      • getDescriptor

        public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
      • clear

        public Onnx.TensorAnnotation.Builder clear()
        Specified by:
        clear in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        clear in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        clear in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
      • getDescriptorForType

        public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface org.nd4j.shade.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
      • getDefaultInstanceForType

        public Onnx.TensorAnnotation getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilder
      • build

        public Onnx.TensorAnnotation build()
        Specified by:
        build in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        build in interface org.nd4j.shade.protobuf.MessageLite.Builder
      • buildPartial

        public Onnx.TensorAnnotation buildPartial()
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.MessageLite.Builder
      • clone

        public Onnx.TensorAnnotation.Builder clone()
        Specified by:
        clone in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        clone in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        clone in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
      • setField

        public Onnx.TensorAnnotation.Builder setField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                                      Object value)
        Specified by:
        setField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
      • clearField

        public Onnx.TensorAnnotation.Builder clearField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        clearField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
      • clearOneof

        public Onnx.TensorAnnotation.Builder clearOneof​(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        clearOneof in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
      • setRepeatedField

        public Onnx.TensorAnnotation.Builder setRepeatedField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                                              int index,
                                                              Object value)
        Specified by:
        setRepeatedField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
      • addRepeatedField

        public Onnx.TensorAnnotation.Builder addRepeatedField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                                              Object value)
        Specified by:
        addRepeatedField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
      • mergeFrom

        public Onnx.TensorAnnotation.Builder mergeFrom​(org.nd4j.shade.protobuf.Message other)
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        mergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<Onnx.TensorAnnotation.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
      • mergeFrom

        public Onnx.TensorAnnotation.Builder mergeFrom​(org.nd4j.shade.protobuf.CodedInputStream input,
                                                       org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws IOException
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<Onnx.TensorAnnotation.Builder>
        Throws:
        IOException
      • setTensorName

        public Onnx.TensorAnnotation.Builder setTensorName​(String value)
        string tensor_name = 1;
        Parameters:
        value - The tensorName to set.
        Returns:
        This builder for chaining.
      • setTensorNameBytes

        public Onnx.TensorAnnotation.Builder setTensorNameBytes​(org.nd4j.shade.protobuf.ByteString value)
        string tensor_name = 1;
        Parameters:
        value - The bytes for tensorName to set.
        Returns:
        This builder for chaining.
      • getQuantParameterTensorNamesList

        public List<Onnx.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;
        Specified by:
        getQuantParameterTensorNamesList in interface Onnx.TensorAnnotationOrBuilder
      • getQuantParameterTensorNamesCount

        public 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;
        Specified by:
        getQuantParameterTensorNamesCount in interface Onnx.TensorAnnotationOrBuilder
      • getQuantParameterTensorNames

        public Onnx.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;
        Specified by:
        getQuantParameterTensorNames in interface Onnx.TensorAnnotationOrBuilder
      • setQuantParameterTensorNames

        public Onnx.TensorAnnotation.Builder setQuantParameterTensorNames​(int index,
                                                                          Onnx.StringStringEntryProto value)
         <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;
      • setQuantParameterTensorNames

        public Onnx.TensorAnnotation.Builder setQuantParameterTensorNames​(int index,
                                                                          Onnx.StringStringEntryProto.Builder builderForValue)
         <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;
      • addQuantParameterTensorNames

        public Onnx.TensorAnnotation.Builder addQuantParameterTensorNames​(Onnx.StringStringEntryProto value)
         <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;
      • addQuantParameterTensorNames

        public Onnx.TensorAnnotation.Builder addQuantParameterTensorNames​(int index,
                                                                          Onnx.StringStringEntryProto value)
         <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;
      • addQuantParameterTensorNames

        public Onnx.TensorAnnotation.Builder addQuantParameterTensorNames​(Onnx.StringStringEntryProto.Builder builderForValue)
         <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;
      • addQuantParameterTensorNames

        public Onnx.TensorAnnotation.Builder addQuantParameterTensorNames​(int index,
                                                                          Onnx.StringStringEntryProto.Builder builderForValue)
         <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;
      • addAllQuantParameterTensorNames

        public Onnx.TensorAnnotation.Builder addAllQuantParameterTensorNames​(Iterable<? extends Onnx.StringStringEntryProto> values)
         <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;
      • clearQuantParameterTensorNames

        public Onnx.TensorAnnotation.Builder clearQuantParameterTensorNames()
         <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;
      • removeQuantParameterTensorNames

        public Onnx.TensorAnnotation.Builder removeQuantParameterTensorNames​(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;
      • getQuantParameterTensorNamesBuilder

        public Onnx.StringStringEntryProto.Builder getQuantParameterTensorNamesBuilder​(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;
      • getQuantParameterTensorNamesOrBuilder

        public Onnx.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;
        Specified by:
        getQuantParameterTensorNamesOrBuilder in interface Onnx.TensorAnnotationOrBuilder
      • getQuantParameterTensorNamesOrBuilderList

        public List<? extends Onnx.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;
        Specified by:
        getQuantParameterTensorNamesOrBuilderList in interface Onnx.TensorAnnotationOrBuilder
      • addQuantParameterTensorNamesBuilder

        public Onnx.StringStringEntryProto.Builder addQuantParameterTensorNamesBuilder()
         <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;
      • addQuantParameterTensorNamesBuilder

        public Onnx.StringStringEntryProto.Builder addQuantParameterTensorNamesBuilder​(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;
      • getQuantParameterTensorNamesBuilderList

        public List<Onnx.StringStringEntryProto.Builder> getQuantParameterTensorNamesBuilderList()
         <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;
      • setUnknownFields

        public final Onnx.TensorAnnotation.Builder setUnknownFields​(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
      • mergeUnknownFields

        public final Onnx.TensorAnnotation.Builder mergeUnknownFields​(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>