Package onnx

Class Onnx.AttributeProto.Builder

  • All Implemented Interfaces:
    Cloneable, Onnx.AttributeProtoOrBuilder, org.nd4j.shade.protobuf.Message.Builder, org.nd4j.shade.protobuf.MessageLite.Builder, org.nd4j.shade.protobuf.MessageLiteOrBuilder, org.nd4j.shade.protobuf.MessageOrBuilder
    Enclosing class:
    Onnx.AttributeProto

    public static final class Onnx.AttributeProto.Builder
    extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<Onnx.AttributeProto.Builder>
    implements Onnx.AttributeProtoOrBuilder
     Attributes
     A named attribute containing either singular float, integer, string, graph,
     and tensor values, or repeated float, integer, string, graph, and tensor values.
     An AttributeProto MUST contain the name field, and *only one* of the
     following content fields, effectively enforcing a C/C++ union equivalent.
     
    Protobuf type onnx.AttributeProto
    • 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.AttributeProto.Builder>
      • clear

        public Onnx.AttributeProto.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.AttributeProto.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.AttributeProto.Builder>
      • getDefaultInstanceForType

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

        public Onnx.AttributeProto 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.AttributeProto 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.AttributeProto.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.AttributeProto.Builder>
      • setField

        public Onnx.AttributeProto.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.AttributeProto.Builder>
      • clearField

        public Onnx.AttributeProto.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.AttributeProto.Builder>
      • clearOneof

        public Onnx.AttributeProto.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.AttributeProto.Builder>
      • setRepeatedField

        public Onnx.AttributeProto.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.AttributeProto.Builder>
      • addRepeatedField

        public Onnx.AttributeProto.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.AttributeProto.Builder>
      • mergeFrom

        public Onnx.AttributeProto.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.AttributeProto.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.AttributeProto.Builder>
      • mergeFrom

        public Onnx.AttributeProto.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.AttributeProto.Builder>
        Throws:
        IOException
      • getNameBytes

        public org.nd4j.shade.protobuf.ByteString getNameBytes()
         The name field MUST be present for this version of the IR.
         
        string name = 1;
        Specified by:
        getNameBytes in interface Onnx.AttributeProtoOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Onnx.AttributeProto.Builder setName​(String value)
         The name field MUST be present for this version of the IR.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Onnx.AttributeProto.Builder clearName()
         The name field MUST be present for this version of the IR.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public Onnx.AttributeProto.Builder setNameBytes​(org.nd4j.shade.protobuf.ByteString value)
         The name field MUST be present for this version of the IR.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getRefAttrName

        public String getRefAttrName()
         if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.
         In this case, this AttributeProto does not contain data, and it's a reference of attribute
         in parent scope.
         NOTE: This should ONLY be used in function (sub-graph). It's invalid to be used in main graph.
         
        string ref_attr_name = 21;
        Specified by:
        getRefAttrName in interface Onnx.AttributeProtoOrBuilder
        Returns:
        The refAttrName.
      • getRefAttrNameBytes

        public org.nd4j.shade.protobuf.ByteString getRefAttrNameBytes()
         if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.
         In this case, this AttributeProto does not contain data, and it's a reference of attribute
         in parent scope.
         NOTE: This should ONLY be used in function (sub-graph). It's invalid to be used in main graph.
         
        string ref_attr_name = 21;
        Specified by:
        getRefAttrNameBytes in interface Onnx.AttributeProtoOrBuilder
        Returns:
        The bytes for refAttrName.
      • setRefAttrName

        public Onnx.AttributeProto.Builder setRefAttrName​(String value)
         if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.
         In this case, this AttributeProto does not contain data, and it's a reference of attribute
         in parent scope.
         NOTE: This should ONLY be used in function (sub-graph). It's invalid to be used in main graph.
         
        string ref_attr_name = 21;
        Parameters:
        value - The refAttrName to set.
        Returns:
        This builder for chaining.
      • clearRefAttrName

        public Onnx.AttributeProto.Builder clearRefAttrName()
         if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.
         In this case, this AttributeProto does not contain data, and it's a reference of attribute
         in parent scope.
         NOTE: This should ONLY be used in function (sub-graph). It's invalid to be used in main graph.
         
        string ref_attr_name = 21;
        Returns:
        This builder for chaining.
      • setRefAttrNameBytes

        public Onnx.AttributeProto.Builder setRefAttrNameBytes​(org.nd4j.shade.protobuf.ByteString value)
         if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.
         In this case, this AttributeProto does not contain data, and it's a reference of attribute
         in parent scope.
         NOTE: This should ONLY be used in function (sub-graph). It's invalid to be used in main graph.
         
        string ref_attr_name = 21;
        Parameters:
        value - The bytes for refAttrName to set.
        Returns:
        This builder for chaining.
      • getDocString

        public String getDocString()
         A human-readable documentation for this attribute. Markdown is allowed.
         
        string doc_string = 13;
        Specified by:
        getDocString in interface Onnx.AttributeProtoOrBuilder
        Returns:
        The docString.
      • getDocStringBytes

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

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

        public Onnx.AttributeProto.Builder clearDocString()
         A human-readable documentation for this attribute. Markdown is allowed.
         
        string doc_string = 13;
        Returns:
        This builder for chaining.
      • setDocStringBytes

        public Onnx.AttributeProto.Builder setDocStringBytes​(org.nd4j.shade.protobuf.ByteString value)
         A human-readable documentation for this attribute. Markdown is allowed.
         
        string doc_string = 13;
        Parameters:
        value - The bytes for docString to set.
        Returns:
        This builder for chaining.
      • getTypeValue

        public int getTypeValue()
         The type field MUST be present for this version of the IR.
         For 0.0.1 versions of the IR, this field was not defined, and
         implementations needed to use has_field heuristics to determine
         which value field was in use.  For IR_VERSION 0.0.2 or later, this
         field MUST be set and match the f|i|s|t|... field in use.  This
         change was made to accommodate proto3 implementations.
         
        .onnx.AttributeProto.AttributeType type = 20;
        Specified by:
        getTypeValue in interface Onnx.AttributeProtoOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public Onnx.AttributeProto.Builder setTypeValue​(int value)
         The type field MUST be present for this version of the IR.
         For 0.0.1 versions of the IR, this field was not defined, and
         implementations needed to use has_field heuristics to determine
         which value field was in use.  For IR_VERSION 0.0.2 or later, this
         field MUST be set and match the f|i|s|t|... field in use.  This
         change was made to accommodate proto3 implementations.
         
        .onnx.AttributeProto.AttributeType type = 20;
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • getType

        public Onnx.AttributeProto.AttributeType getType()
         The type field MUST be present for this version of the IR.
         For 0.0.1 versions of the IR, this field was not defined, and
         implementations needed to use has_field heuristics to determine
         which value field was in use.  For IR_VERSION 0.0.2 or later, this
         field MUST be set and match the f|i|s|t|... field in use.  This
         change was made to accommodate proto3 implementations.
         
        .onnx.AttributeProto.AttributeType type = 20;
        Specified by:
        getType in interface Onnx.AttributeProtoOrBuilder
        Returns:
        The type.
      • setType

        public Onnx.AttributeProto.Builder setType​(Onnx.AttributeProto.AttributeType value)
         The type field MUST be present for this version of the IR.
         For 0.0.1 versions of the IR, this field was not defined, and
         implementations needed to use has_field heuristics to determine
         which value field was in use.  For IR_VERSION 0.0.2 or later, this
         field MUST be set and match the f|i|s|t|... field in use.  This
         change was made to accommodate proto3 implementations.
         
        .onnx.AttributeProto.AttributeType type = 20;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public Onnx.AttributeProto.Builder clearType()
         The type field MUST be present for this version of the IR.
         For 0.0.1 versions of the IR, this field was not defined, and
         implementations needed to use has_field heuristics to determine
         which value field was in use.  For IR_VERSION 0.0.2 or later, this
         field MUST be set and match the f|i|s|t|... field in use.  This
         change was made to accommodate proto3 implementations.
         
        .onnx.AttributeProto.AttributeType type = 20;
        Returns:
        This builder for chaining.
      • getF

        public float getF()
         Exactly ONE of the following fields must be present for this version of the IR
         
        float f = 2;
        Specified by:
        getF in interface Onnx.AttributeProtoOrBuilder
        Returns:
        The f.
      • setF

        public Onnx.AttributeProto.Builder setF​(float value)
         Exactly ONE of the following fields must be present for this version of the IR
         
        float f = 2;
        Parameters:
        value - The f to set.
        Returns:
        This builder for chaining.
      • clearF

        public Onnx.AttributeProto.Builder clearF()
         Exactly ONE of the following fields must be present for this version of the IR
         
        float f = 2;
        Returns:
        This builder for chaining.
      • setI

        public Onnx.AttributeProto.Builder setI​(long value)
         int
         
        int64 i = 3;
        Parameters:
        value - The i to set.
        Returns:
        This builder for chaining.
      • getS

        public org.nd4j.shade.protobuf.ByteString getS()
         UTF-8 string
         
        bytes s = 4;
        Specified by:
        getS in interface Onnx.AttributeProtoOrBuilder
        Returns:
        The s.
      • setS

        public Onnx.AttributeProto.Builder setS​(org.nd4j.shade.protobuf.ByteString value)
         UTF-8 string
         
        bytes s = 4;
        Parameters:
        value - The s to set.
        Returns:
        This builder for chaining.
      • hasT

        public boolean hasT()
         tensor value
         
        .onnx.TensorProto t = 5;
        Specified by:
        hasT in interface Onnx.AttributeProtoOrBuilder
        Returns:
        Whether the t field is set.
      • hasG

        public boolean hasG()
         graph
         
        .onnx.GraphProto g = 6;
        Specified by:
        hasG in interface Onnx.AttributeProtoOrBuilder
        Returns:
        Whether the g field is set.
      • hasSparseTensor

        public boolean hasSparseTensor()
         sparse tensor value
         
        .onnx.SparseTensorProto sparse_tensor = 22;
        Specified by:
        hasSparseTensor in interface Onnx.AttributeProtoOrBuilder
        Returns:
        Whether the sparseTensor field is set.
      • clearSparseTensor

        public Onnx.AttributeProto.Builder clearSparseTensor()
         sparse tensor value
         
        .onnx.SparseTensorProto sparse_tensor = 22;
      • getSparseTensorBuilder

        public Onnx.SparseTensorProto.Builder getSparseTensorBuilder()
         sparse tensor value
         
        .onnx.SparseTensorProto sparse_tensor = 22;
      • hasTp

        public boolean hasTp()
         Do not use field below, it's deprecated.
         optional ValueProto v = 12;         // value - subsumes everything but graph
         
        .onnx.TypeProto tp = 14;
        Specified by:
        hasTp in interface Onnx.AttributeProtoOrBuilder
        Returns:
        Whether the tp field is set.
      • getTp

        public Onnx.TypeProto getTp()
         Do not use field below, it's deprecated.
         optional ValueProto v = 12;         // value - subsumes everything but graph
         
        .onnx.TypeProto tp = 14;
        Specified by:
        getTp in interface Onnx.AttributeProtoOrBuilder
        Returns:
        The tp.
      • setTp

        public Onnx.AttributeProto.Builder setTp​(Onnx.TypeProto value)
         Do not use field below, it's deprecated.
         optional ValueProto v = 12;         // value - subsumes everything but graph
         
        .onnx.TypeProto tp = 14;
      • mergeTp

        public Onnx.AttributeProto.Builder mergeTp​(Onnx.TypeProto value)
         Do not use field below, it's deprecated.
         optional ValueProto v = 12;         // value - subsumes everything but graph
         
        .onnx.TypeProto tp = 14;
      • clearTp

        public Onnx.AttributeProto.Builder clearTp()
         Do not use field below, it's deprecated.
         optional ValueProto v = 12;         // value - subsumes everything but graph
         
        .onnx.TypeProto tp = 14;
      • getTpBuilder

        public Onnx.TypeProto.Builder getTpBuilder()
         Do not use field below, it's deprecated.
         optional ValueProto v = 12;         // value - subsumes everything but graph
         
        .onnx.TypeProto tp = 14;
      • getFloats

        public float getFloats​(int index)
         list of floats
         
        repeated float floats = 7;
        Specified by:
        getFloats in interface Onnx.AttributeProtoOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The floats at the given index.
      • setFloats

        public Onnx.AttributeProto.Builder setFloats​(int index,
                                                     float value)
         list of floats
         
        repeated float floats = 7;
        Parameters:
        index - The index to set the value at.
        value - The floats to set.
        Returns:
        This builder for chaining.
      • addFloats

        public Onnx.AttributeProto.Builder addFloats​(float value)
         list of floats
         
        repeated float floats = 7;
        Parameters:
        value - The floats to add.
        Returns:
        This builder for chaining.
      • addAllFloats

        public Onnx.AttributeProto.Builder addAllFloats​(Iterable<? extends Float> values)
         list of floats
         
        repeated float floats = 7;
        Parameters:
        values - The floats to add.
        Returns:
        This builder for chaining.
      • clearFloats

        public Onnx.AttributeProto.Builder clearFloats()
         list of floats
         
        repeated float floats = 7;
        Returns:
        This builder for chaining.
      • getInts

        public long getInts​(int index)
         list of ints
         
        repeated int64 ints = 8;
        Specified by:
        getInts in interface Onnx.AttributeProtoOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The ints at the given index.
      • setInts

        public Onnx.AttributeProto.Builder setInts​(int index,
                                                   long value)
         list of ints
         
        repeated int64 ints = 8;
        Parameters:
        index - The index to set the value at.
        value - The ints to set.
        Returns:
        This builder for chaining.
      • addInts

        public Onnx.AttributeProto.Builder addInts​(long value)
         list of ints
         
        repeated int64 ints = 8;
        Parameters:
        value - The ints to add.
        Returns:
        This builder for chaining.
      • addAllInts

        public Onnx.AttributeProto.Builder addAllInts​(Iterable<? extends Long> values)
         list of ints
         
        repeated int64 ints = 8;
        Parameters:
        values - The ints to add.
        Returns:
        This builder for chaining.
      • getStringsList

        public List<org.nd4j.shade.protobuf.ByteString> getStringsList()
         list of UTF-8 strings
         
        repeated bytes strings = 9;
        Specified by:
        getStringsList in interface Onnx.AttributeProtoOrBuilder
        Returns:
        A list containing the strings.
      • getStrings

        public org.nd4j.shade.protobuf.ByteString getStrings​(int index)
         list of UTF-8 strings
         
        repeated bytes strings = 9;
        Specified by:
        getStrings in interface Onnx.AttributeProtoOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The strings at the given index.
      • setStrings

        public Onnx.AttributeProto.Builder setStrings​(int index,
                                                      org.nd4j.shade.protobuf.ByteString value)
         list of UTF-8 strings
         
        repeated bytes strings = 9;
        Parameters:
        index - The index to set the value at.
        value - The strings to set.
        Returns:
        This builder for chaining.
      • addStrings

        public Onnx.AttributeProto.Builder addStrings​(org.nd4j.shade.protobuf.ByteString value)
         list of UTF-8 strings
         
        repeated bytes strings = 9;
        Parameters:
        value - The strings to add.
        Returns:
        This builder for chaining.
      • addAllStrings

        public Onnx.AttributeProto.Builder addAllStrings​(Iterable<? extends org.nd4j.shade.protobuf.ByteString> values)
         list of UTF-8 strings
         
        repeated bytes strings = 9;
        Parameters:
        values - The strings to add.
        Returns:
        This builder for chaining.
      • clearStrings

        public Onnx.AttributeProto.Builder clearStrings()
         list of UTF-8 strings
         
        repeated bytes strings = 9;
        Returns:
        This builder for chaining.
      • removeTensors

        public Onnx.AttributeProto.Builder removeTensors​(int index)
         list of tensors
         
        repeated .onnx.TensorProto tensors = 10;
      • getTensorsBuilder

        public Onnx.TensorProto.Builder getTensorsBuilder​(int index)
         list of tensors
         
        repeated .onnx.TensorProto tensors = 10;
      • addTensorsBuilder

        public Onnx.TensorProto.Builder addTensorsBuilder()
         list of tensors
         
        repeated .onnx.TensorProto tensors = 10;
      • addTensorsBuilder

        public Onnx.TensorProto.Builder addTensorsBuilder​(int index)
         list of tensors
         
        repeated .onnx.TensorProto tensors = 10;
      • getTensorsBuilderList

        public List<Onnx.TensorProto.Builder> getTensorsBuilderList()
         list of tensors
         
        repeated .onnx.TensorProto tensors = 10;
      • getGraphsBuilder

        public Onnx.GraphProto.Builder getGraphsBuilder​(int index)
         list of graph
         
        repeated .onnx.GraphProto graphs = 11;
      • addGraphsBuilder

        public Onnx.GraphProto.Builder addGraphsBuilder()
         list of graph
         
        repeated .onnx.GraphProto graphs = 11;
      • addGraphsBuilder

        public Onnx.GraphProto.Builder addGraphsBuilder​(int index)
         list of graph
         
        repeated .onnx.GraphProto graphs = 11;
      • getGraphsBuilderList

        public List<Onnx.GraphProto.Builder> getGraphsBuilderList()
         list of graph
         
        repeated .onnx.GraphProto graphs = 11;
      • clearSparseTensors

        public Onnx.AttributeProto.Builder clearSparseTensors()
         list of sparse tensors
         
        repeated .onnx.SparseTensorProto sparse_tensors = 23;
      • removeSparseTensors

        public Onnx.AttributeProto.Builder removeSparseTensors​(int index)
         list of sparse tensors
         
        repeated .onnx.SparseTensorProto sparse_tensors = 23;
      • getSparseTensorsBuilder

        public Onnx.SparseTensorProto.Builder getSparseTensorsBuilder​(int index)
         list of sparse tensors
         
        repeated .onnx.SparseTensorProto sparse_tensors = 23;
      • addSparseTensorsBuilder

        public Onnx.SparseTensorProto.Builder addSparseTensorsBuilder()
         list of sparse tensors
         
        repeated .onnx.SparseTensorProto sparse_tensors = 23;
      • addSparseTensorsBuilder

        public Onnx.SparseTensorProto.Builder addSparseTensorsBuilder​(int index)
         list of sparse tensors
         
        repeated .onnx.SparseTensorProto sparse_tensors = 23;
      • getSparseTensorsBuilderList

        public List<Onnx.SparseTensorProto.Builder> getSparseTensorsBuilderList()
         list of sparse tensors
         
        repeated .onnx.SparseTensorProto sparse_tensors = 23;
      • clearTypeProtos

        public Onnx.AttributeProto.Builder clearTypeProtos()
         list of type protos
         
        repeated .onnx.TypeProto type_protos = 15;
      • removeTypeProtos

        public Onnx.AttributeProto.Builder removeTypeProtos​(int index)
         list of type protos
         
        repeated .onnx.TypeProto type_protos = 15;
      • getTypeProtosBuilder

        public Onnx.TypeProto.Builder getTypeProtosBuilder​(int index)
         list of type protos
         
        repeated .onnx.TypeProto type_protos = 15;
      • addTypeProtosBuilder

        public Onnx.TypeProto.Builder addTypeProtosBuilder()
         list of type protos
         
        repeated .onnx.TypeProto type_protos = 15;
      • addTypeProtosBuilder

        public Onnx.TypeProto.Builder addTypeProtosBuilder​(int index)
         list of type protos
         
        repeated .onnx.TypeProto type_protos = 15;
      • getTypeProtosBuilderList

        public List<Onnx.TypeProto.Builder> getTypeProtosBuilderList()
         list of type protos
         
        repeated .onnx.TypeProto type_protos = 15;
      • setUnknownFields

        public final Onnx.AttributeProto.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.AttributeProto.Builder>
      • mergeUnknownFields

        public final Onnx.AttributeProto.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.AttributeProto.Builder>