Package onnx
Class OnnxMl.AttributeProto.Builder
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite.Builder
-
- org.nd4j.shade.protobuf.AbstractMessage.Builder<BuilderType>
-
- org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-
- onnx.OnnxMl.AttributeProto.Builder
-
- All Implemented Interfaces:
Cloneable,OnnxMl.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:
- OnnxMl.AttributeProto
public static final class OnnxMl.AttributeProto.Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder> implements OnnxMl.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 typeonnx.AttributeProto
-
-
Method Summary
-
Methods inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-
clear
public OnnxMl.AttributeProto.Builder clear()
- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clearin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-
getDescriptorForType
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-
getDefaultInstanceForType
public OnnxMl.AttributeProto getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public OnnxMl.AttributeProto build()
- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public OnnxMl.AttributeProto buildPartial()
- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public OnnxMl.AttributeProto.Builder clone()
- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clonein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-
setField
public OnnxMl.AttributeProto.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-
clearField
public OnnxMl.AttributeProto.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-
clearOneof
public OnnxMl.AttributeProto.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearOneofin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-
setRepeatedField
public OnnxMl.AttributeProto.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-
addRepeatedField
public OnnxMl.AttributeProto.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-
mergeFrom
public OnnxMl.AttributeProto.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeFromin classorg.nd4j.shade.protobuf.AbstractMessage.Builder<OnnxMl.AttributeProto.Builder>
-
mergeFrom
public OnnxMl.AttributeProto.Builder mergeFrom(OnnxMl.AttributeProto other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-
mergeFrom
public OnnxMl.AttributeProto.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
mergeFromin classorg.nd4j.shade.protobuf.AbstractMessage.Builder<OnnxMl.AttributeProto.Builder>- Throws:
IOException
-
getName
public String getName()
The name field MUST be present for this version of the IR.
string name = 1;- Specified by:
getNamein interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The name.
-
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:
getNameBytesin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The bytes for name.
-
setName
public OnnxMl.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 OnnxMl.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 OnnxMl.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:
getRefAttrNamein interfaceOnnxMl.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:
getRefAttrNameBytesin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The bytes for refAttrName.
-
setRefAttrName
public OnnxMl.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 OnnxMl.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 OnnxMl.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:
getDocStringin interfaceOnnxMl.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:
getDocStringBytesin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The bytes for docString.
-
setDocString
public OnnxMl.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 OnnxMl.AttributeProto.Builder clearDocString()
A human-readable documentation for this attribute. Markdown is allowed.
string doc_string = 13;- Returns:
- This builder for chaining.
-
setDocStringBytes
public OnnxMl.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:
getTypeValuein interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public OnnxMl.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 OnnxMl.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:
getTypein interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The type.
-
setType
public OnnxMl.AttributeProto.Builder setType(OnnxMl.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 OnnxMl.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:
getFin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The f.
-
setF
public OnnxMl.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 OnnxMl.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.
-
getI
public long getI()
int
int64 i = 3;- Specified by:
getIin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The i.
-
setI
public OnnxMl.AttributeProto.Builder setI(long value)
int
int64 i = 3;- Parameters:
value- The i to set.- Returns:
- This builder for chaining.
-
clearI
public OnnxMl.AttributeProto.Builder clearI()
int
int64 i = 3;- Returns:
- This builder for chaining.
-
getS
public org.nd4j.shade.protobuf.ByteString getS()
UTF-8 string
bytes s = 4;- Specified by:
getSin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The s.
-
setS
public OnnxMl.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.
-
clearS
public OnnxMl.AttributeProto.Builder clearS()
UTF-8 string
bytes s = 4;- Returns:
- This builder for chaining.
-
hasT
public boolean hasT()
tensor value
.onnx.TensorProto t = 5;- Specified by:
hasTin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- Whether the t field is set.
-
getT
public OnnxMl.TensorProto getT()
tensor value
.onnx.TensorProto t = 5;- Specified by:
getTin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The t.
-
setT
public OnnxMl.AttributeProto.Builder setT(OnnxMl.TensorProto value)
tensor value
.onnx.TensorProto t = 5;
-
setT
public OnnxMl.AttributeProto.Builder setT(OnnxMl.TensorProto.Builder builderForValue)
tensor value
.onnx.TensorProto t = 5;
-
mergeT
public OnnxMl.AttributeProto.Builder mergeT(OnnxMl.TensorProto value)
tensor value
.onnx.TensorProto t = 5;
-
clearT
public OnnxMl.AttributeProto.Builder clearT()
tensor value
.onnx.TensorProto t = 5;
-
getTBuilder
public OnnxMl.TensorProto.Builder getTBuilder()
tensor value
.onnx.TensorProto t = 5;
-
getTOrBuilder
public OnnxMl.TensorProtoOrBuilder getTOrBuilder()
tensor value
.onnx.TensorProto t = 5;- Specified by:
getTOrBuilderin interfaceOnnxMl.AttributeProtoOrBuilder
-
hasG
public boolean hasG()
graph
.onnx.GraphProto g = 6;- Specified by:
hasGin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- Whether the g field is set.
-
getG
public OnnxMl.GraphProto getG()
graph
.onnx.GraphProto g = 6;- Specified by:
getGin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The g.
-
setG
public OnnxMl.AttributeProto.Builder setG(OnnxMl.GraphProto value)
graph
.onnx.GraphProto g = 6;
-
setG
public OnnxMl.AttributeProto.Builder setG(OnnxMl.GraphProto.Builder builderForValue)
graph
.onnx.GraphProto g = 6;
-
mergeG
public OnnxMl.AttributeProto.Builder mergeG(OnnxMl.GraphProto value)
graph
.onnx.GraphProto g = 6;
-
clearG
public OnnxMl.AttributeProto.Builder clearG()
graph
.onnx.GraphProto g = 6;
-
getGBuilder
public OnnxMl.GraphProto.Builder getGBuilder()
graph
.onnx.GraphProto g = 6;
-
getGOrBuilder
public OnnxMl.GraphProtoOrBuilder getGOrBuilder()
graph
.onnx.GraphProto g = 6;- Specified by:
getGOrBuilderin interfaceOnnxMl.AttributeProtoOrBuilder
-
hasSparseTensor
public boolean hasSparseTensor()
sparse tensor value
.onnx.SparseTensorProto sparse_tensor = 22;- Specified by:
hasSparseTensorin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- Whether the sparseTensor field is set.
-
getSparseTensor
public OnnxMl.SparseTensorProto getSparseTensor()
sparse tensor value
.onnx.SparseTensorProto sparse_tensor = 22;- Specified by:
getSparseTensorin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The sparseTensor.
-
setSparseTensor
public OnnxMl.AttributeProto.Builder setSparseTensor(OnnxMl.SparseTensorProto value)
sparse tensor value
.onnx.SparseTensorProto sparse_tensor = 22;
-
setSparseTensor
public OnnxMl.AttributeProto.Builder setSparseTensor(OnnxMl.SparseTensorProto.Builder builderForValue)
sparse tensor value
.onnx.SparseTensorProto sparse_tensor = 22;
-
mergeSparseTensor
public OnnxMl.AttributeProto.Builder mergeSparseTensor(OnnxMl.SparseTensorProto value)
sparse tensor value
.onnx.SparseTensorProto sparse_tensor = 22;
-
clearSparseTensor
public OnnxMl.AttributeProto.Builder clearSparseTensor()
sparse tensor value
.onnx.SparseTensorProto sparse_tensor = 22;
-
getSparseTensorBuilder
public OnnxMl.SparseTensorProto.Builder getSparseTensorBuilder()
sparse tensor value
.onnx.SparseTensorProto sparse_tensor = 22;
-
getSparseTensorOrBuilder
public OnnxMl.SparseTensorProtoOrBuilder getSparseTensorOrBuilder()
sparse tensor value
.onnx.SparseTensorProto sparse_tensor = 22;- Specified by:
getSparseTensorOrBuilderin interfaceOnnxMl.AttributeProtoOrBuilder
-
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:
hasTpin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- Whether the tp field is set.
-
getTp
public OnnxMl.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:
getTpin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The tp.
-
setTp
public OnnxMl.AttributeProto.Builder setTp(OnnxMl.TypeProto value)
Do not use field below, it's deprecated. optional ValueProto v = 12; // value - subsumes everything but graph
.onnx.TypeProto tp = 14;
-
setTp
public OnnxMl.AttributeProto.Builder setTp(OnnxMl.TypeProto.Builder builderForValue)
Do not use field below, it's deprecated. optional ValueProto v = 12; // value - subsumes everything but graph
.onnx.TypeProto tp = 14;
-
mergeTp
public OnnxMl.AttributeProto.Builder mergeTp(OnnxMl.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 OnnxMl.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 OnnxMl.TypeProto.Builder getTpBuilder()
Do not use field below, it's deprecated. optional ValueProto v = 12; // value - subsumes everything but graph
.onnx.TypeProto tp = 14;
-
getTpOrBuilder
public OnnxMl.TypeProtoOrBuilder getTpOrBuilder()
Do not use field below, it's deprecated. optional ValueProto v = 12; // value - subsumes everything but graph
.onnx.TypeProto tp = 14;- Specified by:
getTpOrBuilderin interfaceOnnxMl.AttributeProtoOrBuilder
-
getFloatsList
public List<Float> getFloatsList()
list of floats
repeated float floats = 7;- Specified by:
getFloatsListin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- A list containing the floats.
-
getFloatsCount
public int getFloatsCount()
list of floats
repeated float floats = 7;- Specified by:
getFloatsCountin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The count of floats.
-
getFloats
public float getFloats(int index)
list of floats
repeated float floats = 7;- Specified by:
getFloatsin interfaceOnnxMl.AttributeProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The floats at the given index.
-
setFloats
public OnnxMl.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 OnnxMl.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 OnnxMl.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 OnnxMl.AttributeProto.Builder clearFloats()
list of floats
repeated float floats = 7;- Returns:
- This builder for chaining.
-
getIntsList
public List<Long> getIntsList()
list of ints
repeated int64 ints = 8;- Specified by:
getIntsListin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- A list containing the ints.
-
getIntsCount
public int getIntsCount()
list of ints
repeated int64 ints = 8;- Specified by:
getIntsCountin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The count of ints.
-
getInts
public long getInts(int index)
list of ints
repeated int64 ints = 8;- Specified by:
getIntsin interfaceOnnxMl.AttributeProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The ints at the given index.
-
setInts
public OnnxMl.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 OnnxMl.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 OnnxMl.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.
-
clearInts
public OnnxMl.AttributeProto.Builder clearInts()
list of ints
repeated int64 ints = 8;- 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:
getStringsListin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- A list containing the strings.
-
getStringsCount
public int getStringsCount()
list of UTF-8 strings
repeated bytes strings = 9;- Specified by:
getStringsCountin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The count of strings.
-
getStrings
public org.nd4j.shade.protobuf.ByteString getStrings(int index)
list of UTF-8 strings
repeated bytes strings = 9;- Specified by:
getStringsin interfaceOnnxMl.AttributeProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The strings at the given index.
-
setStrings
public OnnxMl.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 OnnxMl.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 OnnxMl.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 OnnxMl.AttributeProto.Builder clearStrings()
list of UTF-8 strings
repeated bytes strings = 9;- Returns:
- This builder for chaining.
-
getTensorsList
public List<OnnxMl.TensorProto> getTensorsList()
list of tensors
repeated .onnx.TensorProto tensors = 10;- Specified by:
getTensorsListin interfaceOnnxMl.AttributeProtoOrBuilder
-
getTensorsCount
public int getTensorsCount()
list of tensors
repeated .onnx.TensorProto tensors = 10;- Specified by:
getTensorsCountin interfaceOnnxMl.AttributeProtoOrBuilder
-
getTensors
public OnnxMl.TensorProto getTensors(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;- Specified by:
getTensorsin interfaceOnnxMl.AttributeProtoOrBuilder
-
setTensors
public OnnxMl.AttributeProto.Builder setTensors(int index, OnnxMl.TensorProto value)
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
setTensors
public OnnxMl.AttributeProto.Builder setTensors(int index, OnnxMl.TensorProto.Builder builderForValue)
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
addTensors
public OnnxMl.AttributeProto.Builder addTensors(OnnxMl.TensorProto value)
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
addTensors
public OnnxMl.AttributeProto.Builder addTensors(int index, OnnxMl.TensorProto value)
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
addTensors
public OnnxMl.AttributeProto.Builder addTensors(OnnxMl.TensorProto.Builder builderForValue)
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
addTensors
public OnnxMl.AttributeProto.Builder addTensors(int index, OnnxMl.TensorProto.Builder builderForValue)
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
addAllTensors
public OnnxMl.AttributeProto.Builder addAllTensors(Iterable<? extends OnnxMl.TensorProto> values)
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
clearTensors
public OnnxMl.AttributeProto.Builder clearTensors()
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
removeTensors
public OnnxMl.AttributeProto.Builder removeTensors(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
getTensorsBuilder
public OnnxMl.TensorProto.Builder getTensorsBuilder(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
getTensorsOrBuilder
public OnnxMl.TensorProtoOrBuilder getTensorsOrBuilder(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;- Specified by:
getTensorsOrBuilderin interfaceOnnxMl.AttributeProtoOrBuilder
-
getTensorsOrBuilderList
public List<? extends OnnxMl.TensorProtoOrBuilder> getTensorsOrBuilderList()
list of tensors
repeated .onnx.TensorProto tensors = 10;- Specified by:
getTensorsOrBuilderListin interfaceOnnxMl.AttributeProtoOrBuilder
-
addTensorsBuilder
public OnnxMl.TensorProto.Builder addTensorsBuilder()
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
addTensorsBuilder
public OnnxMl.TensorProto.Builder addTensorsBuilder(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
getTensorsBuilderList
public List<OnnxMl.TensorProto.Builder> getTensorsBuilderList()
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
getGraphsList
public List<OnnxMl.GraphProto> getGraphsList()
list of graph
repeated .onnx.GraphProto graphs = 11;- Specified by:
getGraphsListin interfaceOnnxMl.AttributeProtoOrBuilder
-
getGraphsCount
public int getGraphsCount()
list of graph
repeated .onnx.GraphProto graphs = 11;- Specified by:
getGraphsCountin interfaceOnnxMl.AttributeProtoOrBuilder
-
getGraphs
public OnnxMl.GraphProto getGraphs(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;- Specified by:
getGraphsin interfaceOnnxMl.AttributeProtoOrBuilder
-
setGraphs
public OnnxMl.AttributeProto.Builder setGraphs(int index, OnnxMl.GraphProto value)
list of graph
repeated .onnx.GraphProto graphs = 11;
-
setGraphs
public OnnxMl.AttributeProto.Builder setGraphs(int index, OnnxMl.GraphProto.Builder builderForValue)
list of graph
repeated .onnx.GraphProto graphs = 11;
-
addGraphs
public OnnxMl.AttributeProto.Builder addGraphs(OnnxMl.GraphProto value)
list of graph
repeated .onnx.GraphProto graphs = 11;
-
addGraphs
public OnnxMl.AttributeProto.Builder addGraphs(int index, OnnxMl.GraphProto value)
list of graph
repeated .onnx.GraphProto graphs = 11;
-
addGraphs
public OnnxMl.AttributeProto.Builder addGraphs(OnnxMl.GraphProto.Builder builderForValue)
list of graph
repeated .onnx.GraphProto graphs = 11;
-
addGraphs
public OnnxMl.AttributeProto.Builder addGraphs(int index, OnnxMl.GraphProto.Builder builderForValue)
list of graph
repeated .onnx.GraphProto graphs = 11;
-
addAllGraphs
public OnnxMl.AttributeProto.Builder addAllGraphs(Iterable<? extends OnnxMl.GraphProto> values)
list of graph
repeated .onnx.GraphProto graphs = 11;
-
clearGraphs
public OnnxMl.AttributeProto.Builder clearGraphs()
list of graph
repeated .onnx.GraphProto graphs = 11;
-
removeGraphs
public OnnxMl.AttributeProto.Builder removeGraphs(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;
-
getGraphsBuilder
public OnnxMl.GraphProto.Builder getGraphsBuilder(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;
-
getGraphsOrBuilder
public OnnxMl.GraphProtoOrBuilder getGraphsOrBuilder(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;- Specified by:
getGraphsOrBuilderin interfaceOnnxMl.AttributeProtoOrBuilder
-
getGraphsOrBuilderList
public List<? extends OnnxMl.GraphProtoOrBuilder> getGraphsOrBuilderList()
list of graph
repeated .onnx.GraphProto graphs = 11;- Specified by:
getGraphsOrBuilderListin interfaceOnnxMl.AttributeProtoOrBuilder
-
addGraphsBuilder
public OnnxMl.GraphProto.Builder addGraphsBuilder()
list of graph
repeated .onnx.GraphProto graphs = 11;
-
addGraphsBuilder
public OnnxMl.GraphProto.Builder addGraphsBuilder(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;
-
getGraphsBuilderList
public List<OnnxMl.GraphProto.Builder> getGraphsBuilderList()
list of graph
repeated .onnx.GraphProto graphs = 11;
-
getSparseTensorsList
public List<OnnxMl.SparseTensorProto> getSparseTensorsList()
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;- Specified by:
getSparseTensorsListin interfaceOnnxMl.AttributeProtoOrBuilder
-
getSparseTensorsCount
public int getSparseTensorsCount()
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;- Specified by:
getSparseTensorsCountin interfaceOnnxMl.AttributeProtoOrBuilder
-
getSparseTensors
public OnnxMl.SparseTensorProto getSparseTensors(int index)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;- Specified by:
getSparseTensorsin interfaceOnnxMl.AttributeProtoOrBuilder
-
setSparseTensors
public OnnxMl.AttributeProto.Builder setSparseTensors(int index, OnnxMl.SparseTensorProto value)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;
-
setSparseTensors
public OnnxMl.AttributeProto.Builder setSparseTensors(int index, OnnxMl.SparseTensorProto.Builder builderForValue)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;
-
addSparseTensors
public OnnxMl.AttributeProto.Builder addSparseTensors(OnnxMl.SparseTensorProto value)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;
-
addSparseTensors
public OnnxMl.AttributeProto.Builder addSparseTensors(int index, OnnxMl.SparseTensorProto value)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;
-
addSparseTensors
public OnnxMl.AttributeProto.Builder addSparseTensors(OnnxMl.SparseTensorProto.Builder builderForValue)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;
-
addSparseTensors
public OnnxMl.AttributeProto.Builder addSparseTensors(int index, OnnxMl.SparseTensorProto.Builder builderForValue)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;
-
addAllSparseTensors
public OnnxMl.AttributeProto.Builder addAllSparseTensors(Iterable<? extends OnnxMl.SparseTensorProto> values)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;
-
clearSparseTensors
public OnnxMl.AttributeProto.Builder clearSparseTensors()
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;
-
removeSparseTensors
public OnnxMl.AttributeProto.Builder removeSparseTensors(int index)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;
-
getSparseTensorsBuilder
public OnnxMl.SparseTensorProto.Builder getSparseTensorsBuilder(int index)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;
-
getSparseTensorsOrBuilder
public OnnxMl.SparseTensorProtoOrBuilder getSparseTensorsOrBuilder(int index)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;- Specified by:
getSparseTensorsOrBuilderin interfaceOnnxMl.AttributeProtoOrBuilder
-
getSparseTensorsOrBuilderList
public List<? extends OnnxMl.SparseTensorProtoOrBuilder> getSparseTensorsOrBuilderList()
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;- Specified by:
getSparseTensorsOrBuilderListin interfaceOnnxMl.AttributeProtoOrBuilder
-
addSparseTensorsBuilder
public OnnxMl.SparseTensorProto.Builder addSparseTensorsBuilder()
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;
-
addSparseTensorsBuilder
public OnnxMl.SparseTensorProto.Builder addSparseTensorsBuilder(int index)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;
-
getSparseTensorsBuilderList
public List<OnnxMl.SparseTensorProto.Builder> getSparseTensorsBuilderList()
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;
-
getTypeProtosList
public List<OnnxMl.TypeProto> getTypeProtosList()
list of type protos
repeated .onnx.TypeProto type_protos = 15;- Specified by:
getTypeProtosListin interfaceOnnxMl.AttributeProtoOrBuilder
-
getTypeProtosCount
public int getTypeProtosCount()
list of type protos
repeated .onnx.TypeProto type_protos = 15;- Specified by:
getTypeProtosCountin interfaceOnnxMl.AttributeProtoOrBuilder
-
getTypeProtos
public OnnxMl.TypeProto getTypeProtos(int index)
list of type protos
repeated .onnx.TypeProto type_protos = 15;- Specified by:
getTypeProtosin interfaceOnnxMl.AttributeProtoOrBuilder
-
setTypeProtos
public OnnxMl.AttributeProto.Builder setTypeProtos(int index, OnnxMl.TypeProto value)
list of type protos
repeated .onnx.TypeProto type_protos = 15;
-
setTypeProtos
public OnnxMl.AttributeProto.Builder setTypeProtos(int index, OnnxMl.TypeProto.Builder builderForValue)
list of type protos
repeated .onnx.TypeProto type_protos = 15;
-
addTypeProtos
public OnnxMl.AttributeProto.Builder addTypeProtos(OnnxMl.TypeProto value)
list of type protos
repeated .onnx.TypeProto type_protos = 15;
-
addTypeProtos
public OnnxMl.AttributeProto.Builder addTypeProtos(int index, OnnxMl.TypeProto value)
list of type protos
repeated .onnx.TypeProto type_protos = 15;
-
addTypeProtos
public OnnxMl.AttributeProto.Builder addTypeProtos(OnnxMl.TypeProto.Builder builderForValue)
list of type protos
repeated .onnx.TypeProto type_protos = 15;
-
addTypeProtos
public OnnxMl.AttributeProto.Builder addTypeProtos(int index, OnnxMl.TypeProto.Builder builderForValue)
list of type protos
repeated .onnx.TypeProto type_protos = 15;
-
addAllTypeProtos
public OnnxMl.AttributeProto.Builder addAllTypeProtos(Iterable<? extends OnnxMl.TypeProto> values)
list of type protos
repeated .onnx.TypeProto type_protos = 15;
-
clearTypeProtos
public OnnxMl.AttributeProto.Builder clearTypeProtos()
list of type protos
repeated .onnx.TypeProto type_protos = 15;
-
removeTypeProtos
public OnnxMl.AttributeProto.Builder removeTypeProtos(int index)
list of type protos
repeated .onnx.TypeProto type_protos = 15;
-
getTypeProtosBuilder
public OnnxMl.TypeProto.Builder getTypeProtosBuilder(int index)
list of type protos
repeated .onnx.TypeProto type_protos = 15;
-
getTypeProtosOrBuilder
public OnnxMl.TypeProtoOrBuilder getTypeProtosOrBuilder(int index)
list of type protos
repeated .onnx.TypeProto type_protos = 15;- Specified by:
getTypeProtosOrBuilderin interfaceOnnxMl.AttributeProtoOrBuilder
-
getTypeProtosOrBuilderList
public List<? extends OnnxMl.TypeProtoOrBuilder> getTypeProtosOrBuilderList()
list of type protos
repeated .onnx.TypeProto type_protos = 15;- Specified by:
getTypeProtosOrBuilderListin interfaceOnnxMl.AttributeProtoOrBuilder
-
addTypeProtosBuilder
public OnnxMl.TypeProto.Builder addTypeProtosBuilder()
list of type protos
repeated .onnx.TypeProto type_protos = 15;
-
addTypeProtosBuilder
public OnnxMl.TypeProto.Builder addTypeProtosBuilder(int index)
list of type protos
repeated .onnx.TypeProto type_protos = 15;
-
getTypeProtosBuilderList
public List<OnnxMl.TypeProto.Builder> getTypeProtosBuilderList()
list of type protos
repeated .onnx.TypeProto type_protos = 15;
-
setUnknownFields
public final OnnxMl.AttributeProto.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-
mergeUnknownFields
public final OnnxMl.AttributeProto.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-
-