Package onnx

Class OnnxMl.GraphProto.Builder

  • All Implemented Interfaces:
    Cloneable, OnnxMl.GraphProtoOrBuilder, org.nd4j.shade.protobuf.Message.Builder, org.nd4j.shade.protobuf.MessageLite.Builder, org.nd4j.shade.protobuf.MessageLiteOrBuilder, org.nd4j.shade.protobuf.MessageOrBuilder
    Enclosing class:
    OnnxMl.GraphProto

    public static final class OnnxMl.GraphProto.Builder
    extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.GraphProto.Builder>
    implements OnnxMl.GraphProtoOrBuilder
     Graphs
     A graph defines the computational logic of a model and is comprised of a parameterized
     list of nodes that form a directed acyclic graph based on their inputs and outputs.
     This is the equivalent of the "network" or "graph" in many deep learning
     frameworks.
     
    Protobuf type onnx.GraphProto
    • 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<OnnxMl.GraphProto.Builder>
      • clear

        public OnnxMl.GraphProto.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<OnnxMl.GraphProto.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<OnnxMl.GraphProto.Builder>
      • getDefaultInstanceForType

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

        public OnnxMl.GraphProto 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 OnnxMl.GraphProto 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 OnnxMl.GraphProto.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<OnnxMl.GraphProto.Builder>
      • setField

        public OnnxMl.GraphProto.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<OnnxMl.GraphProto.Builder>
      • clearField

        public OnnxMl.GraphProto.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<OnnxMl.GraphProto.Builder>
      • clearOneof

        public OnnxMl.GraphProto.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<OnnxMl.GraphProto.Builder>
      • setRepeatedField

        public OnnxMl.GraphProto.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<OnnxMl.GraphProto.Builder>
      • addRepeatedField

        public OnnxMl.GraphProto.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<OnnxMl.GraphProto.Builder>
      • mergeFrom

        public OnnxMl.GraphProto.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<OnnxMl.GraphProto.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<OnnxMl.GraphProto.Builder>
      • mergeFrom

        public OnnxMl.GraphProto.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<OnnxMl.GraphProto.Builder>
        Throws:
        IOException
      • getNodeCount

        public int getNodeCount()
         The nodes in the graph, sorted topologically.
         
        repeated .onnx.NodeProto node = 1;
        Specified by:
        getNodeCount in interface OnnxMl.GraphProtoOrBuilder
      • clearNode

        public OnnxMl.GraphProto.Builder clearNode()
         The nodes in the graph, sorted topologically.
         
        repeated .onnx.NodeProto node = 1;
      • removeNode

        public OnnxMl.GraphProto.Builder removeNode​(int index)
         The nodes in the graph, sorted topologically.
         
        repeated .onnx.NodeProto node = 1;
      • getNodeBuilder

        public OnnxMl.NodeProto.Builder getNodeBuilder​(int index)
         The nodes in the graph, sorted topologically.
         
        repeated .onnx.NodeProto node = 1;
      • addNodeBuilder

        public OnnxMl.NodeProto.Builder addNodeBuilder()
         The nodes in the graph, sorted topologically.
         
        repeated .onnx.NodeProto node = 1;
      • addNodeBuilder

        public OnnxMl.NodeProto.Builder addNodeBuilder​(int index)
         The nodes in the graph, sorted topologically.
         
        repeated .onnx.NodeProto node = 1;
      • getNodeBuilderList

        public List<OnnxMl.NodeProto.Builder> getNodeBuilderList()
         The nodes in the graph, sorted topologically.
         
        repeated .onnx.NodeProto node = 1;
      • getNameBytes

        public org.nd4j.shade.protobuf.ByteString getNameBytes()
         The name of the graph.
         
        string name = 2;
        Specified by:
        getNameBytes in interface OnnxMl.GraphProtoOrBuilder
        Returns:
        The bytes for name.
      • setName

        public OnnxMl.GraphProto.Builder setName​(String value)
         The name of the graph.
         
        string name = 2;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public OnnxMl.GraphProto.Builder clearName()
         The name of the graph.
         
        string name = 2;
        Returns:
        This builder for chaining.
      • setNameBytes

        public OnnxMl.GraphProto.Builder setNameBytes​(org.nd4j.shade.protobuf.ByteString value)
         The name of the graph.
         
        string name = 2;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getInitializerList

        public List<OnnxMl.TensorProto> getInitializerList()
         A list of named tensor values, used to specify constant inputs of the graph.
         Each initializer (both TensorProto as well SparseTensorProto) MUST have a name.
         The name MUST be unique across both initializer and sparse_initializer,
         but the name MAY also appear in the input list.
         
        repeated .onnx.TensorProto initializer = 5;
        Specified by:
        getInitializerList in interface OnnxMl.GraphProtoOrBuilder
      • getInitializerCount

        public int getInitializerCount()
         A list of named tensor values, used to specify constant inputs of the graph.
         Each initializer (both TensorProto as well SparseTensorProto) MUST have a name.
         The name MUST be unique across both initializer and sparse_initializer,
         but the name MAY also appear in the input list.
         
        repeated .onnx.TensorProto initializer = 5;
        Specified by:
        getInitializerCount in interface OnnxMl.GraphProtoOrBuilder
      • getInitializer

        public OnnxMl.TensorProto getInitializer​(int index)
         A list of named tensor values, used to specify constant inputs of the graph.
         Each initializer (both TensorProto as well SparseTensorProto) MUST have a name.
         The name MUST be unique across both initializer and sparse_initializer,
         but the name MAY also appear in the input list.
         
        repeated .onnx.TensorProto initializer = 5;
        Specified by:
        getInitializer in interface OnnxMl.GraphProtoOrBuilder
      • setInitializer

        public OnnxMl.GraphProto.Builder setInitializer​(int index,
                                                        OnnxMl.TensorProto value)
         A list of named tensor values, used to specify constant inputs of the graph.
         Each initializer (both TensorProto as well SparseTensorProto) MUST have a name.
         The name MUST be unique across both initializer and sparse_initializer,
         but the name MAY also appear in the input list.
         
        repeated .onnx.TensorProto initializer = 5;
      • setInitializer

        public OnnxMl.GraphProto.Builder setInitializer​(int index,
                                                        OnnxMl.TensorProto.Builder builderForValue)
         A list of named tensor values, used to specify constant inputs of the graph.
         Each initializer (both TensorProto as well SparseTensorProto) MUST have a name.
         The name MUST be unique across both initializer and sparse_initializer,
         but the name MAY also appear in the input list.
         
        repeated .onnx.TensorProto initializer = 5;
      • addInitializer

        public OnnxMl.GraphProto.Builder addInitializer​(OnnxMl.TensorProto value)
         A list of named tensor values, used to specify constant inputs of the graph.
         Each initializer (both TensorProto as well SparseTensorProto) MUST have a name.
         The name MUST be unique across both initializer and sparse_initializer,
         but the name MAY also appear in the input list.
         
        repeated .onnx.TensorProto initializer = 5;
      • addInitializer

        public OnnxMl.GraphProto.Builder addInitializer​(int index,
                                                        OnnxMl.TensorProto value)
         A list of named tensor values, used to specify constant inputs of the graph.
         Each initializer (both TensorProto as well SparseTensorProto) MUST have a name.
         The name MUST be unique across both initializer and sparse_initializer,
         but the name MAY also appear in the input list.
         
        repeated .onnx.TensorProto initializer = 5;
      • addInitializer

        public OnnxMl.GraphProto.Builder addInitializer​(OnnxMl.TensorProto.Builder builderForValue)
         A list of named tensor values, used to specify constant inputs of the graph.
         Each initializer (both TensorProto as well SparseTensorProto) MUST have a name.
         The name MUST be unique across both initializer and sparse_initializer,
         but the name MAY also appear in the input list.
         
        repeated .onnx.TensorProto initializer = 5;
      • addInitializer

        public OnnxMl.GraphProto.Builder addInitializer​(int index,
                                                        OnnxMl.TensorProto.Builder builderForValue)
         A list of named tensor values, used to specify constant inputs of the graph.
         Each initializer (both TensorProto as well SparseTensorProto) MUST have a name.
         The name MUST be unique across both initializer and sparse_initializer,
         but the name MAY also appear in the input list.
         
        repeated .onnx.TensorProto initializer = 5;
      • addAllInitializer

        public OnnxMl.GraphProto.Builder addAllInitializer​(Iterable<? extends OnnxMl.TensorProto> values)
         A list of named tensor values, used to specify constant inputs of the graph.
         Each initializer (both TensorProto as well SparseTensorProto) MUST have a name.
         The name MUST be unique across both initializer and sparse_initializer,
         but the name MAY also appear in the input list.
         
        repeated .onnx.TensorProto initializer = 5;
      • clearInitializer

        public OnnxMl.GraphProto.Builder clearInitializer()
         A list of named tensor values, used to specify constant inputs of the graph.
         Each initializer (both TensorProto as well SparseTensorProto) MUST have a name.
         The name MUST be unique across both initializer and sparse_initializer,
         but the name MAY also appear in the input list.
         
        repeated .onnx.TensorProto initializer = 5;
      • removeInitializer

        public OnnxMl.GraphProto.Builder removeInitializer​(int index)
         A list of named tensor values, used to specify constant inputs of the graph.
         Each initializer (both TensorProto as well SparseTensorProto) MUST have a name.
         The name MUST be unique across both initializer and sparse_initializer,
         but the name MAY also appear in the input list.
         
        repeated .onnx.TensorProto initializer = 5;
      • getInitializerBuilder

        public OnnxMl.TensorProto.Builder getInitializerBuilder​(int index)
         A list of named tensor values, used to specify constant inputs of the graph.
         Each initializer (both TensorProto as well SparseTensorProto) MUST have a name.
         The name MUST be unique across both initializer and sparse_initializer,
         but the name MAY also appear in the input list.
         
        repeated .onnx.TensorProto initializer = 5;
      • getInitializerOrBuilder

        public OnnxMl.TensorProtoOrBuilder getInitializerOrBuilder​(int index)
         A list of named tensor values, used to specify constant inputs of the graph.
         Each initializer (both TensorProto as well SparseTensorProto) MUST have a name.
         The name MUST be unique across both initializer and sparse_initializer,
         but the name MAY also appear in the input list.
         
        repeated .onnx.TensorProto initializer = 5;
        Specified by:
        getInitializerOrBuilder in interface OnnxMl.GraphProtoOrBuilder
      • getInitializerOrBuilderList

        public List<? extends OnnxMl.TensorProtoOrBuilder> getInitializerOrBuilderList()
         A list of named tensor values, used to specify constant inputs of the graph.
         Each initializer (both TensorProto as well SparseTensorProto) MUST have a name.
         The name MUST be unique across both initializer and sparse_initializer,
         but the name MAY also appear in the input list.
         
        repeated .onnx.TensorProto initializer = 5;
        Specified by:
        getInitializerOrBuilderList in interface OnnxMl.GraphProtoOrBuilder
      • addInitializerBuilder

        public OnnxMl.TensorProto.Builder addInitializerBuilder()
         A list of named tensor values, used to specify constant inputs of the graph.
         Each initializer (both TensorProto as well SparseTensorProto) MUST have a name.
         The name MUST be unique across both initializer and sparse_initializer,
         but the name MAY also appear in the input list.
         
        repeated .onnx.TensorProto initializer = 5;
      • addInitializerBuilder

        public OnnxMl.TensorProto.Builder addInitializerBuilder​(int index)
         A list of named tensor values, used to specify constant inputs of the graph.
         Each initializer (both TensorProto as well SparseTensorProto) MUST have a name.
         The name MUST be unique across both initializer and sparse_initializer,
         but the name MAY also appear in the input list.
         
        repeated .onnx.TensorProto initializer = 5;
      • getInitializerBuilderList

        public List<OnnxMl.TensorProto.Builder> getInitializerBuilderList()
         A list of named tensor values, used to specify constant inputs of the graph.
         Each initializer (both TensorProto as well SparseTensorProto) MUST have a name.
         The name MUST be unique across both initializer and sparse_initializer,
         but the name MAY also appear in the input list.
         
        repeated .onnx.TensorProto initializer = 5;
      • getSparseInitializerCount

        public int getSparseInitializerCount()
         Initializers (see above) stored in sparse format.
         
        repeated .onnx.SparseTensorProto sparse_initializer = 15;
        Specified by:
        getSparseInitializerCount in interface OnnxMl.GraphProtoOrBuilder
      • clearSparseInitializer

        public OnnxMl.GraphProto.Builder clearSparseInitializer()
         Initializers (see above) stored in sparse format.
         
        repeated .onnx.SparseTensorProto sparse_initializer = 15;
      • removeSparseInitializer

        public OnnxMl.GraphProto.Builder removeSparseInitializer​(int index)
         Initializers (see above) stored in sparse format.
         
        repeated .onnx.SparseTensorProto sparse_initializer = 15;
      • getSparseInitializerBuilder

        public OnnxMl.SparseTensorProto.Builder getSparseInitializerBuilder​(int index)
         Initializers (see above) stored in sparse format.
         
        repeated .onnx.SparseTensorProto sparse_initializer = 15;
      • addSparseInitializerBuilder

        public OnnxMl.SparseTensorProto.Builder addSparseInitializerBuilder()
         Initializers (see above) stored in sparse format.
         
        repeated .onnx.SparseTensorProto sparse_initializer = 15;
      • addSparseInitializerBuilder

        public OnnxMl.SparseTensorProto.Builder addSparseInitializerBuilder​(int index)
         Initializers (see above) stored in sparse format.
         
        repeated .onnx.SparseTensorProto sparse_initializer = 15;
      • getSparseInitializerBuilderList

        public List<OnnxMl.SparseTensorProto.Builder> getSparseInitializerBuilderList()
         Initializers (see above) stored in sparse format.
         
        repeated .onnx.SparseTensorProto sparse_initializer = 15;
      • getDocString

        public String getDocString()
         A human-readable documentation for this graph. Markdown is allowed.
         
        string doc_string = 10;
        Specified by:
        getDocString in interface OnnxMl.GraphProtoOrBuilder
        Returns:
        The docString.
      • getDocStringBytes

        public org.nd4j.shade.protobuf.ByteString getDocStringBytes()
         A human-readable documentation for this graph. Markdown is allowed.
         
        string doc_string = 10;
        Specified by:
        getDocStringBytes in interface OnnxMl.GraphProtoOrBuilder
        Returns:
        The bytes for docString.
      • setDocString

        public OnnxMl.GraphProto.Builder setDocString​(String value)
         A human-readable documentation for this graph. Markdown is allowed.
         
        string doc_string = 10;
        Parameters:
        value - The docString to set.
        Returns:
        This builder for chaining.
      • clearDocString

        public OnnxMl.GraphProto.Builder clearDocString()
         A human-readable documentation for this graph. Markdown is allowed.
         
        string doc_string = 10;
        Returns:
        This builder for chaining.
      • setDocStringBytes

        public OnnxMl.GraphProto.Builder setDocStringBytes​(org.nd4j.shade.protobuf.ByteString value)
         A human-readable documentation for this graph. Markdown is allowed.
         
        string doc_string = 10;
        Parameters:
        value - The bytes for docString to set.
        Returns:
        This builder for chaining.
      • clearInput

        public OnnxMl.GraphProto.Builder clearInput()
         The inputs and outputs of the graph.
         
        repeated .onnx.ValueInfoProto input = 11;
      • removeInput

        public OnnxMl.GraphProto.Builder removeInput​(int index)
         The inputs and outputs of the graph.
         
        repeated .onnx.ValueInfoProto input = 11;
      • getInputBuilder

        public OnnxMl.ValueInfoProto.Builder getInputBuilder​(int index)
         The inputs and outputs of the graph.
         
        repeated .onnx.ValueInfoProto input = 11;
      • addInputBuilder

        public OnnxMl.ValueInfoProto.Builder addInputBuilder()
         The inputs and outputs of the graph.
         
        repeated .onnx.ValueInfoProto input = 11;
      • addInputBuilder

        public OnnxMl.ValueInfoProto.Builder addInputBuilder​(int index)
         The inputs and outputs of the graph.
         
        repeated .onnx.ValueInfoProto input = 11;
      • getInputBuilderList

        public List<OnnxMl.ValueInfoProto.Builder> getInputBuilderList()
         The inputs and outputs of the graph.
         
        repeated .onnx.ValueInfoProto input = 11;
      • getValueInfoList

        public List<OnnxMl.ValueInfoProto> getValueInfoList()
         Information for the values in the graph. The ValueInfoProto.name's
         must be distinct. It is optional for a value to appear in value_info list.
         
        repeated .onnx.ValueInfoProto value_info = 13;
        Specified by:
        getValueInfoList in interface OnnxMl.GraphProtoOrBuilder
      • getValueInfoCount

        public int getValueInfoCount()
         Information for the values in the graph. The ValueInfoProto.name's
         must be distinct. It is optional for a value to appear in value_info list.
         
        repeated .onnx.ValueInfoProto value_info = 13;
        Specified by:
        getValueInfoCount in interface OnnxMl.GraphProtoOrBuilder
      • getValueInfo

        public OnnxMl.ValueInfoProto getValueInfo​(int index)
         Information for the values in the graph. The ValueInfoProto.name's
         must be distinct. It is optional for a value to appear in value_info list.
         
        repeated .onnx.ValueInfoProto value_info = 13;
        Specified by:
        getValueInfo in interface OnnxMl.GraphProtoOrBuilder
      • setValueInfo

        public OnnxMl.GraphProto.Builder setValueInfo​(int index,
                                                      OnnxMl.ValueInfoProto value)
         Information for the values in the graph. The ValueInfoProto.name's
         must be distinct. It is optional for a value to appear in value_info list.
         
        repeated .onnx.ValueInfoProto value_info = 13;
      • setValueInfo

        public OnnxMl.GraphProto.Builder setValueInfo​(int index,
                                                      OnnxMl.ValueInfoProto.Builder builderForValue)
         Information for the values in the graph. The ValueInfoProto.name's
         must be distinct. It is optional for a value to appear in value_info list.
         
        repeated .onnx.ValueInfoProto value_info = 13;
      • addValueInfo

        public OnnxMl.GraphProto.Builder addValueInfo​(OnnxMl.ValueInfoProto value)
         Information for the values in the graph. The ValueInfoProto.name's
         must be distinct. It is optional for a value to appear in value_info list.
         
        repeated .onnx.ValueInfoProto value_info = 13;
      • addValueInfo

        public OnnxMl.GraphProto.Builder addValueInfo​(int index,
                                                      OnnxMl.ValueInfoProto value)
         Information for the values in the graph. The ValueInfoProto.name's
         must be distinct. It is optional for a value to appear in value_info list.
         
        repeated .onnx.ValueInfoProto value_info = 13;
      • addValueInfo

        public OnnxMl.GraphProto.Builder addValueInfo​(OnnxMl.ValueInfoProto.Builder builderForValue)
         Information for the values in the graph. The ValueInfoProto.name's
         must be distinct. It is optional for a value to appear in value_info list.
         
        repeated .onnx.ValueInfoProto value_info = 13;
      • addValueInfo

        public OnnxMl.GraphProto.Builder addValueInfo​(int index,
                                                      OnnxMl.ValueInfoProto.Builder builderForValue)
         Information for the values in the graph. The ValueInfoProto.name's
         must be distinct. It is optional for a value to appear in value_info list.
         
        repeated .onnx.ValueInfoProto value_info = 13;
      • addAllValueInfo

        public OnnxMl.GraphProto.Builder addAllValueInfo​(Iterable<? extends OnnxMl.ValueInfoProto> values)
         Information for the values in the graph. The ValueInfoProto.name's
         must be distinct. It is optional for a value to appear in value_info list.
         
        repeated .onnx.ValueInfoProto value_info = 13;
      • clearValueInfo

        public OnnxMl.GraphProto.Builder clearValueInfo()
         Information for the values in the graph. The ValueInfoProto.name's
         must be distinct. It is optional for a value to appear in value_info list.
         
        repeated .onnx.ValueInfoProto value_info = 13;
      • removeValueInfo

        public OnnxMl.GraphProto.Builder removeValueInfo​(int index)
         Information for the values in the graph. The ValueInfoProto.name's
         must be distinct. It is optional for a value to appear in value_info list.
         
        repeated .onnx.ValueInfoProto value_info = 13;
      • getValueInfoBuilder

        public OnnxMl.ValueInfoProto.Builder getValueInfoBuilder​(int index)
         Information for the values in the graph. The ValueInfoProto.name's
         must be distinct. It is optional for a value to appear in value_info list.
         
        repeated .onnx.ValueInfoProto value_info = 13;
      • addValueInfoBuilder

        public OnnxMl.ValueInfoProto.Builder addValueInfoBuilder()
         Information for the values in the graph. The ValueInfoProto.name's
         must be distinct. It is optional for a value to appear in value_info list.
         
        repeated .onnx.ValueInfoProto value_info = 13;
      • addValueInfoBuilder

        public OnnxMl.ValueInfoProto.Builder addValueInfoBuilder​(int index)
         Information for the values in the graph. The ValueInfoProto.name's
         must be distinct. It is optional for a value to appear in value_info list.
         
        repeated .onnx.ValueInfoProto value_info = 13;
      • getValueInfoBuilderList

        public List<OnnxMl.ValueInfoProto.Builder> getValueInfoBuilderList()
         Information for the values in the graph. The ValueInfoProto.name's
         must be distinct. It is optional for a value to appear in value_info list.
         
        repeated .onnx.ValueInfoProto value_info = 13;
      • getQuantizationAnnotationList

        public List<OnnxMl.TensorAnnotation> getQuantizationAnnotationList()
         This field carries information to indicate the mapping among a tensor and its
         quantization parameter tensors. For example:
         For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated,
         which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.
         
        repeated .onnx.TensorAnnotation quantization_annotation = 14;
        Specified by:
        getQuantizationAnnotationList in interface OnnxMl.GraphProtoOrBuilder
      • getQuantizationAnnotationCount

        public int getQuantizationAnnotationCount()
         This field carries information to indicate the mapping among a tensor and its
         quantization parameter tensors. For example:
         For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated,
         which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.
         
        repeated .onnx.TensorAnnotation quantization_annotation = 14;
        Specified by:
        getQuantizationAnnotationCount in interface OnnxMl.GraphProtoOrBuilder
      • getQuantizationAnnotation

        public OnnxMl.TensorAnnotation getQuantizationAnnotation​(int index)
         This field carries information to indicate the mapping among a tensor and its
         quantization parameter tensors. For example:
         For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated,
         which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.
         
        repeated .onnx.TensorAnnotation quantization_annotation = 14;
        Specified by:
        getQuantizationAnnotation in interface OnnxMl.GraphProtoOrBuilder
      • setQuantizationAnnotation

        public OnnxMl.GraphProto.Builder setQuantizationAnnotation​(int index,
                                                                   OnnxMl.TensorAnnotation value)
         This field carries information to indicate the mapping among a tensor and its
         quantization parameter tensors. For example:
         For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated,
         which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.
         
        repeated .onnx.TensorAnnotation quantization_annotation = 14;
      • setQuantizationAnnotation

        public OnnxMl.GraphProto.Builder setQuantizationAnnotation​(int index,
                                                                   OnnxMl.TensorAnnotation.Builder builderForValue)
         This field carries information to indicate the mapping among a tensor and its
         quantization parameter tensors. For example:
         For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated,
         which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.
         
        repeated .onnx.TensorAnnotation quantization_annotation = 14;
      • addQuantizationAnnotation

        public OnnxMl.GraphProto.Builder addQuantizationAnnotation​(OnnxMl.TensorAnnotation value)
         This field carries information to indicate the mapping among a tensor and its
         quantization parameter tensors. For example:
         For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated,
         which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.
         
        repeated .onnx.TensorAnnotation quantization_annotation = 14;
      • addQuantizationAnnotation

        public OnnxMl.GraphProto.Builder addQuantizationAnnotation​(int index,
                                                                   OnnxMl.TensorAnnotation value)
         This field carries information to indicate the mapping among a tensor and its
         quantization parameter tensors. For example:
         For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated,
         which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.
         
        repeated .onnx.TensorAnnotation quantization_annotation = 14;
      • addQuantizationAnnotation

        public OnnxMl.GraphProto.Builder addQuantizationAnnotation​(OnnxMl.TensorAnnotation.Builder builderForValue)
         This field carries information to indicate the mapping among a tensor and its
         quantization parameter tensors. For example:
         For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated,
         which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.
         
        repeated .onnx.TensorAnnotation quantization_annotation = 14;
      • addQuantizationAnnotation

        public OnnxMl.GraphProto.Builder addQuantizationAnnotation​(int index,
                                                                   OnnxMl.TensorAnnotation.Builder builderForValue)
         This field carries information to indicate the mapping among a tensor and its
         quantization parameter tensors. For example:
         For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated,
         which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.
         
        repeated .onnx.TensorAnnotation quantization_annotation = 14;
      • addAllQuantizationAnnotation

        public OnnxMl.GraphProto.Builder addAllQuantizationAnnotation​(Iterable<? extends OnnxMl.TensorAnnotation> values)
         This field carries information to indicate the mapping among a tensor and its
         quantization parameter tensors. For example:
         For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated,
         which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.
         
        repeated .onnx.TensorAnnotation quantization_annotation = 14;
      • clearQuantizationAnnotation

        public OnnxMl.GraphProto.Builder clearQuantizationAnnotation()
         This field carries information to indicate the mapping among a tensor and its
         quantization parameter tensors. For example:
         For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated,
         which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.
         
        repeated .onnx.TensorAnnotation quantization_annotation = 14;
      • removeQuantizationAnnotation

        public OnnxMl.GraphProto.Builder removeQuantizationAnnotation​(int index)
         This field carries information to indicate the mapping among a tensor and its
         quantization parameter tensors. For example:
         For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated,
         which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.
         
        repeated .onnx.TensorAnnotation quantization_annotation = 14;
      • getQuantizationAnnotationBuilder

        public OnnxMl.TensorAnnotation.Builder getQuantizationAnnotationBuilder​(int index)
         This field carries information to indicate the mapping among a tensor and its
         quantization parameter tensors. For example:
         For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated,
         which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.
         
        repeated .onnx.TensorAnnotation quantization_annotation = 14;
      • getQuantizationAnnotationOrBuilder

        public OnnxMl.TensorAnnotationOrBuilder getQuantizationAnnotationOrBuilder​(int index)
         This field carries information to indicate the mapping among a tensor and its
         quantization parameter tensors. For example:
         For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated,
         which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.
         
        repeated .onnx.TensorAnnotation quantization_annotation = 14;
        Specified by:
        getQuantizationAnnotationOrBuilder in interface OnnxMl.GraphProtoOrBuilder
      • getQuantizationAnnotationOrBuilderList

        public List<? extends OnnxMl.TensorAnnotationOrBuilder> getQuantizationAnnotationOrBuilderList()
         This field carries information to indicate the mapping among a tensor and its
         quantization parameter tensors. For example:
         For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated,
         which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.
         
        repeated .onnx.TensorAnnotation quantization_annotation = 14;
        Specified by:
        getQuantizationAnnotationOrBuilderList in interface OnnxMl.GraphProtoOrBuilder
      • addQuantizationAnnotationBuilder

        public OnnxMl.TensorAnnotation.Builder addQuantizationAnnotationBuilder()
         This field carries information to indicate the mapping among a tensor and its
         quantization parameter tensors. For example:
         For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated,
         which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.
         
        repeated .onnx.TensorAnnotation quantization_annotation = 14;
      • addQuantizationAnnotationBuilder

        public OnnxMl.TensorAnnotation.Builder addQuantizationAnnotationBuilder​(int index)
         This field carries information to indicate the mapping among a tensor and its
         quantization parameter tensors. For example:
         For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated,
         which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.
         
        repeated .onnx.TensorAnnotation quantization_annotation = 14;
      • getQuantizationAnnotationBuilderList

        public List<OnnxMl.TensorAnnotation.Builder> getQuantizationAnnotationBuilderList()
         This field carries information to indicate the mapping among a tensor and its
         quantization parameter tensors. For example:
         For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated,
         which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.
         
        repeated .onnx.TensorAnnotation quantization_annotation = 14;
      • setUnknownFields

        public final OnnxMl.GraphProto.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<OnnxMl.GraphProto.Builder>
      • mergeUnknownFields

        public final OnnxMl.GraphProto.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<OnnxMl.GraphProto.Builder>