Package onnx
Class Onnx.AttributeProto
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite
-
- org.nd4j.shade.protobuf.AbstractMessage
-
- org.nd4j.shade.protobuf.GeneratedMessageV3
-
- onnx.Onnx.AttributeProto
-
- All Implemented Interfaces:
Serializable,Onnx.AttributeProtoOrBuilder,org.nd4j.shade.protobuf.Message,org.nd4j.shade.protobuf.MessageLite,org.nd4j.shade.protobuf.MessageLiteOrBuilder,org.nd4j.shade.protobuf.MessageOrBuilder
- Enclosing class:
- Onnx
public static final class Onnx.AttributeProto extends org.nd4j.shade.protobuf.GeneratedMessageV3 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 typeonnx.AttributeProto- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOnnx.AttributeProto.AttributeTypeNote: this enum is structurally identical to the OpSchema::AttrType enum defined in schema.h.static classOnnx.AttributeProto.BuilderAttributes A named attribute containing either singular float, integer, string, graph, and tensor values, or repeated float, integer, string, graph, and tensor values.-
Nested classes/interfaces inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage>, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage>, org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable, org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intDOC_STRING_FIELD_NUMBERstatic intF_FIELD_NUMBERstatic intFLOATS_FIELD_NUMBERstatic intG_FIELD_NUMBERstatic intGRAPHS_FIELD_NUMBERstatic intI_FIELD_NUMBERstatic intINTS_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intREF_ATTR_NAME_FIELD_NUMBERstatic intS_FIELD_NUMBERstatic intSPARSE_TENSOR_FIELD_NUMBERstatic intSPARSE_TENSORS_FIELD_NUMBERstatic intSTRINGS_FIELD_NUMBERstatic intT_FIELD_NUMBERstatic intTENSORS_FIELD_NUMBERstatic intTP_FIELD_NUMBERstatic intTYPE_FIELD_NUMBERstatic intTYPE_PROTOS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static Onnx.AttributeProtogetDefaultInstance()Onnx.AttributeProtogetDefaultInstanceForType()static org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDocString()A human-readable documentation for this attribute.org.nd4j.shade.protobuf.ByteStringgetDocStringBytes()A human-readable documentation for this attribute.floatgetF()Exactly ONE of the following fields must be present for this version of the IRfloatgetFloats(int index)list of floatsintgetFloatsCount()list of floatsList<Float>getFloatsList()list of floatsOnnx.GraphProtogetG()graphOnnx.GraphProtoOrBuildergetGOrBuilder()graphOnnx.GraphProtogetGraphs(int index)list of graphintgetGraphsCount()list of graphList<Onnx.GraphProto>getGraphsList()list of graphOnnx.GraphProtoOrBuildergetGraphsOrBuilder(int index)list of graphList<? extends Onnx.GraphProtoOrBuilder>getGraphsOrBuilderList()list of graphlonggetI()intlonggetInts(int index)list of intsintgetIntsCount()list of intsList<Long>getIntsList()list of intsStringgetName()The name field MUST be present for this version of the IR.org.nd4j.shade.protobuf.ByteStringgetNameBytes()The name field MUST be present for this version of the IR.org.nd4j.shade.protobuf.Parser<Onnx.AttributeProto>getParserForType()StringgetRefAttrName()if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.org.nd4j.shade.protobuf.ByteStringgetRefAttrNameBytes()if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.org.nd4j.shade.protobuf.ByteStringgetS()UTF-8 stringintgetSerializedSize()Onnx.SparseTensorProtogetSparseTensor()sparse tensor valueOnnx.SparseTensorProtoOrBuildergetSparseTensorOrBuilder()sparse tensor valueOnnx.SparseTensorProtogetSparseTensors(int index)list of sparse tensorsintgetSparseTensorsCount()list of sparse tensorsList<Onnx.SparseTensorProto>getSparseTensorsList()list of sparse tensorsOnnx.SparseTensorProtoOrBuildergetSparseTensorsOrBuilder(int index)list of sparse tensorsList<? extends Onnx.SparseTensorProtoOrBuilder>getSparseTensorsOrBuilderList()list of sparse tensorsorg.nd4j.shade.protobuf.ByteStringgetStrings(int index)list of UTF-8 stringsintgetStringsCount()list of UTF-8 stringsList<org.nd4j.shade.protobuf.ByteString>getStringsList()list of UTF-8 stringsOnnx.TensorProtogetT()tensor valueOnnx.TensorProtogetTensors(int index)list of tensorsintgetTensorsCount()list of tensorsList<Onnx.TensorProto>getTensorsList()list of tensorsOnnx.TensorProtoOrBuildergetTensorsOrBuilder(int index)list of tensorsList<? extends Onnx.TensorProtoOrBuilder>getTensorsOrBuilderList()list of tensorsOnnx.TensorProtoOrBuildergetTOrBuilder()tensor valueOnnx.TypeProtogetTp()Do not use field below, it's deprecated.Onnx.TypeProtoOrBuildergetTpOrBuilder()Do not use field below, it's deprecated.Onnx.AttributeProto.AttributeTypegetType()The type field MUST be present for this version of the IR.Onnx.TypeProtogetTypeProtos(int index)list of type protosintgetTypeProtosCount()list of type protosList<Onnx.TypeProto>getTypeProtosList()list of type protosOnnx.TypeProtoOrBuildergetTypeProtosOrBuilder(int index)list of type protosList<? extends Onnx.TypeProtoOrBuilder>getTypeProtosOrBuilderList()list of type protosintgetTypeValue()The type field MUST be present for this version of the IR.org.nd4j.shade.protobuf.UnknownFieldSetgetUnknownFields()booleanhasG()graphinthashCode()booleanhasSparseTensor()sparse tensor valuebooleanhasT()tensor valuebooleanhasTp()Do not use field below, it's deprecated.protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Onnx.AttributeProto.BuildernewBuilder()static Onnx.AttributeProto.BuildernewBuilder(Onnx.AttributeProto prototype)Onnx.AttributeProto.BuildernewBuilderForType()protected Onnx.AttributeProto.BuildernewBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Onnx.AttributeProtoparseDelimitedFrom(InputStream input)static Onnx.AttributeProtoparseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static Onnx.AttributeProtoparseFrom(byte[] data)static Onnx.AttributeProtoparseFrom(byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static Onnx.AttributeProtoparseFrom(InputStream input)static Onnx.AttributeProtoparseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static Onnx.AttributeProtoparseFrom(ByteBuffer data)static Onnx.AttributeProtoparseFrom(ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static Onnx.AttributeProtoparseFrom(org.nd4j.shade.protobuf.ByteString data)static Onnx.AttributeProtoparseFrom(org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static Onnx.AttributeProtoparseFrom(org.nd4j.shade.protobuf.CodedInputStream input)static Onnx.AttributeProtoparseFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static org.nd4j.shade.protobuf.Parser<Onnx.AttributeProto>parser()Onnx.AttributeProto.BuildertoBuilder()voidwriteTo(org.nd4j.shade.protobuf.CodedOutputStream output)-
Methods inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REF_ATTR_NAME_FIELD_NUMBER
public static final int REF_ATTR_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOC_STRING_FIELD_NUMBER
public static final int DOC_STRING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
F_FIELD_NUMBER
public static final int F_FIELD_NUMBER
- See Also:
- Constant Field Values
-
I_FIELD_NUMBER
public static final int I_FIELD_NUMBER
- See Also:
- Constant Field Values
-
S_FIELD_NUMBER
public static final int S_FIELD_NUMBER
- See Also:
- Constant Field Values
-
T_FIELD_NUMBER
public static final int T_FIELD_NUMBER
- See Also:
- Constant Field Values
-
G_FIELD_NUMBER
public static final int G_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SPARSE_TENSOR_FIELD_NUMBER
public static final int SPARSE_TENSOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TP_FIELD_NUMBER
public static final int TP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FLOATS_FIELD_NUMBER
public static final int FLOATS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INTS_FIELD_NUMBER
public static final int INTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRINGS_FIELD_NUMBER
public static final int STRINGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TENSORS_FIELD_NUMBER
public static final int TENSORS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GRAPHS_FIELD_NUMBER
public static final int GRAPHS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SPARSE_TENSORS_FIELD_NUMBER
public static final int SPARSE_TENSORS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_PROTOS_FIELD_NUMBER
public static final int TYPE_PROTOS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getUnknownFields
public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfaceorg.nd4j.shade.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
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
-
getName
public String getName()
The name field MUST be present for this version of the IR.
string name = 1;- Specified by:
getNamein interfaceOnnx.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 interfaceOnnx.AttributeProtoOrBuilder- Returns:
- The bytes for name.
-
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 interfaceOnnx.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 interfaceOnnx.AttributeProtoOrBuilder- Returns:
- The bytes for refAttrName.
-
getDocString
public String getDocString()
A human-readable documentation for this attribute. Markdown is allowed.
string doc_string = 13;- Specified by:
getDocStringin interfaceOnnx.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 interfaceOnnx.AttributeProtoOrBuilder- Returns:
- The bytes for docString.
-
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 interfaceOnnx.AttributeProtoOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
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:
getTypein interfaceOnnx.AttributeProtoOrBuilder- Returns:
- The type.
-
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 interfaceOnnx.AttributeProtoOrBuilder- Returns:
- The f.
-
getI
public long getI()
int
int64 i = 3;- Specified by:
getIin interfaceOnnx.AttributeProtoOrBuilder- Returns:
- The i.
-
getS
public org.nd4j.shade.protobuf.ByteString getS()
UTF-8 string
bytes s = 4;- Specified by:
getSin interfaceOnnx.AttributeProtoOrBuilder- Returns:
- The s.
-
hasT
public boolean hasT()
tensor value
.onnx.TensorProto t = 5;- Specified by:
hasTin interfaceOnnx.AttributeProtoOrBuilder- Returns:
- Whether the t field is set.
-
getT
public Onnx.TensorProto getT()
tensor value
.onnx.TensorProto t = 5;- Specified by:
getTin interfaceOnnx.AttributeProtoOrBuilder- Returns:
- The t.
-
getTOrBuilder
public Onnx.TensorProtoOrBuilder getTOrBuilder()
tensor value
.onnx.TensorProto t = 5;- Specified by:
getTOrBuilderin interfaceOnnx.AttributeProtoOrBuilder
-
hasG
public boolean hasG()
graph
.onnx.GraphProto g = 6;- Specified by:
hasGin interfaceOnnx.AttributeProtoOrBuilder- Returns:
- Whether the g field is set.
-
getG
public Onnx.GraphProto getG()
graph
.onnx.GraphProto g = 6;- Specified by:
getGin interfaceOnnx.AttributeProtoOrBuilder- Returns:
- The g.
-
getGOrBuilder
public Onnx.GraphProtoOrBuilder getGOrBuilder()
graph
.onnx.GraphProto g = 6;- Specified by:
getGOrBuilderin interfaceOnnx.AttributeProtoOrBuilder
-
hasSparseTensor
public boolean hasSparseTensor()
sparse tensor value
.onnx.SparseTensorProto sparse_tensor = 22;- Specified by:
hasSparseTensorin interfaceOnnx.AttributeProtoOrBuilder- Returns:
- Whether the sparseTensor field is set.
-
getSparseTensor
public Onnx.SparseTensorProto getSparseTensor()
sparse tensor value
.onnx.SparseTensorProto sparse_tensor = 22;- Specified by:
getSparseTensorin interfaceOnnx.AttributeProtoOrBuilder- Returns:
- The sparseTensor.
-
getSparseTensorOrBuilder
public Onnx.SparseTensorProtoOrBuilder getSparseTensorOrBuilder()
sparse tensor value
.onnx.SparseTensorProto sparse_tensor = 22;- Specified by:
getSparseTensorOrBuilderin interfaceOnnx.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 interfaceOnnx.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:
getTpin interfaceOnnx.AttributeProtoOrBuilder- Returns:
- The tp.
-
getTpOrBuilder
public Onnx.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 interfaceOnnx.AttributeProtoOrBuilder
-
getFloatsList
public List<Float> getFloatsList()
list of floats
repeated float floats = 7;- Specified by:
getFloatsListin interfaceOnnx.AttributeProtoOrBuilder- Returns:
- A list containing the floats.
-
getFloatsCount
public int getFloatsCount()
list of floats
repeated float floats = 7;- Specified by:
getFloatsCountin interfaceOnnx.AttributeProtoOrBuilder- Returns:
- The count of floats.
-
getFloats
public float getFloats(int index)
list of floats
repeated float floats = 7;- Specified by:
getFloatsin interfaceOnnx.AttributeProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The floats at the given index.
-
getIntsList
public List<Long> getIntsList()
list of ints
repeated int64 ints = 8;- Specified by:
getIntsListin interfaceOnnx.AttributeProtoOrBuilder- Returns:
- A list containing the ints.
-
getIntsCount
public int getIntsCount()
list of ints
repeated int64 ints = 8;- Specified by:
getIntsCountin interfaceOnnx.AttributeProtoOrBuilder- Returns:
- The count of ints.
-
getInts
public long getInts(int index)
list of ints
repeated int64 ints = 8;- Specified by:
getIntsin interfaceOnnx.AttributeProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The ints at the given index.
-
getStringsList
public List<org.nd4j.shade.protobuf.ByteString> getStringsList()
list of UTF-8 strings
repeated bytes strings = 9;- Specified by:
getStringsListin interfaceOnnx.AttributeProtoOrBuilder- Returns:
- A list containing the strings.
-
getStringsCount
public int getStringsCount()
list of UTF-8 strings
repeated bytes strings = 9;- Specified by:
getStringsCountin interfaceOnnx.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 interfaceOnnx.AttributeProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The strings at the given index.
-
getTensorsList
public List<Onnx.TensorProto> getTensorsList()
list of tensors
repeated .onnx.TensorProto tensors = 10;- Specified by:
getTensorsListin interfaceOnnx.AttributeProtoOrBuilder
-
getTensorsOrBuilderList
public List<? extends Onnx.TensorProtoOrBuilder> getTensorsOrBuilderList()
list of tensors
repeated .onnx.TensorProto tensors = 10;- Specified by:
getTensorsOrBuilderListin interfaceOnnx.AttributeProtoOrBuilder
-
getTensorsCount
public int getTensorsCount()
list of tensors
repeated .onnx.TensorProto tensors = 10;- Specified by:
getTensorsCountin interfaceOnnx.AttributeProtoOrBuilder
-
getTensors
public Onnx.TensorProto getTensors(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;- Specified by:
getTensorsin interfaceOnnx.AttributeProtoOrBuilder
-
getTensorsOrBuilder
public Onnx.TensorProtoOrBuilder getTensorsOrBuilder(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;- Specified by:
getTensorsOrBuilderin interfaceOnnx.AttributeProtoOrBuilder
-
getGraphsList
public List<Onnx.GraphProto> getGraphsList()
list of graph
repeated .onnx.GraphProto graphs = 11;- Specified by:
getGraphsListin interfaceOnnx.AttributeProtoOrBuilder
-
getGraphsOrBuilderList
public List<? extends Onnx.GraphProtoOrBuilder> getGraphsOrBuilderList()
list of graph
repeated .onnx.GraphProto graphs = 11;- Specified by:
getGraphsOrBuilderListin interfaceOnnx.AttributeProtoOrBuilder
-
getGraphsCount
public int getGraphsCount()
list of graph
repeated .onnx.GraphProto graphs = 11;- Specified by:
getGraphsCountin interfaceOnnx.AttributeProtoOrBuilder
-
getGraphs
public Onnx.GraphProto getGraphs(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;- Specified by:
getGraphsin interfaceOnnx.AttributeProtoOrBuilder
-
getGraphsOrBuilder
public Onnx.GraphProtoOrBuilder getGraphsOrBuilder(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;- Specified by:
getGraphsOrBuilderin interfaceOnnx.AttributeProtoOrBuilder
-
getSparseTensorsList
public List<Onnx.SparseTensorProto> getSparseTensorsList()
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;- Specified by:
getSparseTensorsListin interfaceOnnx.AttributeProtoOrBuilder
-
getSparseTensorsOrBuilderList
public List<? extends Onnx.SparseTensorProtoOrBuilder> getSparseTensorsOrBuilderList()
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;- Specified by:
getSparseTensorsOrBuilderListin interfaceOnnx.AttributeProtoOrBuilder
-
getSparseTensorsCount
public int getSparseTensorsCount()
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;- Specified by:
getSparseTensorsCountin interfaceOnnx.AttributeProtoOrBuilder
-
getSparseTensors
public Onnx.SparseTensorProto getSparseTensors(int index)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;- Specified by:
getSparseTensorsin interfaceOnnx.AttributeProtoOrBuilder
-
getSparseTensorsOrBuilder
public Onnx.SparseTensorProtoOrBuilder getSparseTensorsOrBuilder(int index)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;- Specified by:
getSparseTensorsOrBuilderin interfaceOnnx.AttributeProtoOrBuilder
-
getTypeProtosList
public List<Onnx.TypeProto> getTypeProtosList()
list of type protos
repeated .onnx.TypeProto type_protos = 15;- Specified by:
getTypeProtosListin interfaceOnnx.AttributeProtoOrBuilder
-
getTypeProtosOrBuilderList
public List<? extends Onnx.TypeProtoOrBuilder> getTypeProtosOrBuilderList()
list of type protos
repeated .onnx.TypeProto type_protos = 15;- Specified by:
getTypeProtosOrBuilderListin interfaceOnnx.AttributeProtoOrBuilder
-
getTypeProtosCount
public int getTypeProtosCount()
list of type protos
repeated .onnx.TypeProto type_protos = 15;- Specified by:
getTypeProtosCountin interfaceOnnx.AttributeProtoOrBuilder
-
getTypeProtos
public Onnx.TypeProto getTypeProtos(int index)
list of type protos
repeated .onnx.TypeProto type_protos = 15;- Specified by:
getTypeProtosin interfaceOnnx.AttributeProtoOrBuilder
-
getTypeProtosOrBuilder
public Onnx.TypeProtoOrBuilder getTypeProtosOrBuilder(int index)
list of type protos
repeated .onnx.TypeProto type_protos = 15;- Specified by:
getTypeProtosOrBuilderin interfaceOnnx.AttributeProtoOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfaceorg.nd4j.shade.protobuf.MessageLite- Overrides:
writeToin classorg.nd4j.shade.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfaceorg.nd4j.shade.protobuf.MessageLite- Overrides:
getSerializedSizein classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceorg.nd4j.shade.protobuf.Message- Overrides:
equalsin classorg.nd4j.shade.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceorg.nd4j.shade.protobuf.Message- Overrides:
hashCodein classorg.nd4j.shade.protobuf.AbstractMessage
-
parseFrom
public static Onnx.AttributeProto parseFrom(ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Onnx.AttributeProto parseFrom(ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Onnx.AttributeProto parseFrom(org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Onnx.AttributeProto parseFrom(org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Onnx.AttributeProto parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Onnx.AttributeProto parseFrom(byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Onnx.AttributeProto parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Onnx.AttributeProto parseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Onnx.AttributeProto parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Onnx.AttributeProto parseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Onnx.AttributeProto parseFrom(org.nd4j.shade.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Onnx.AttributeProto parseFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Onnx.AttributeProto.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfaceorg.nd4j.shade.protobuf.Message- Specified by:
newBuilderForTypein interfaceorg.nd4j.shade.protobuf.MessageLite
-
newBuilder
public static Onnx.AttributeProto.Builder newBuilder()
-
newBuilder
public static Onnx.AttributeProto.Builder newBuilder(Onnx.AttributeProto prototype)
-
toBuilder
public Onnx.AttributeProto.Builder toBuilder()
- Specified by:
toBuilderin interfaceorg.nd4j.shade.protobuf.Message- Specified by:
toBuilderin interfaceorg.nd4j.shade.protobuf.MessageLite
-
newBuilderForType
protected Onnx.AttributeProto.Builder newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Onnx.AttributeProto getDefaultInstance()
-
parser
public static org.nd4j.shade.protobuf.Parser<Onnx.AttributeProto> parser()
-
getParserForType
public org.nd4j.shade.protobuf.Parser<Onnx.AttributeProto> getParserForType()
- Specified by:
getParserForTypein interfaceorg.nd4j.shade.protobuf.Message- Specified by:
getParserForTypein interfaceorg.nd4j.shade.protobuf.MessageLite- Overrides:
getParserForTypein classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Onnx.AttributeProto getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
-