public static final class OnnxMl.AttributeProto extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements OnnxMl.AttributeProtoOrBuilder
A named attribute containing either singular float, integer, string and tensor values, or repeated float, integer, string 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| Modifier and Type | Class and Description |
|---|---|
static class |
OnnxMl.AttributeProto.AttributeType
Note: this enum is structurally identical to the OpSchema::AttrType
enum defined in schema.h.
|
static class |
OnnxMl.AttributeProto.Builder
A named attribute containing either singular float, integer, string
and tensor values, or repeated float, integer, string and tensor values.
|
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| Modifier and Type | Field and Description |
|---|---|
static int |
DOC_STRING_FIELD_NUMBER |
static int |
F_FIELD_NUMBER |
static int |
FLOATS_FIELD_NUMBER |
static int |
G_FIELD_NUMBER |
static int |
GRAPHS_FIELD_NUMBER |
static int |
I_FIELD_NUMBER |
static int |
INTS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
S_FIELD_NUMBER |
static int |
STRINGS_FIELD_NUMBER |
static int |
T_FIELD_NUMBER |
static int |
TENSORS_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static OnnxMl.AttributeProto |
getDefaultInstance() |
OnnxMl.AttributeProto |
getDefaultInstanceForType() |
static org.nd4j.shade.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDocString()
A human-readable documentation for this attribute.
|
org.nd4j.shade.protobuf.ByteString |
getDocStringBytes()
A human-readable documentation for this attribute.
|
float |
getF()
Exactly ONE of the following fields must be present for this version of the IR
|
float |
getFloats(int index)
list of floats
|
int |
getFloatsCount()
list of floats
|
List<Float> |
getFloatsList()
list of floats
|
OnnxMl.GraphProto |
getG()
graph
|
OnnxMl.GraphProtoOrBuilder |
getGOrBuilder()
graph
|
OnnxMl.GraphProto |
getGraphs(int index)
list of graph
|
int |
getGraphsCount()
list of graph
|
List<OnnxMl.GraphProto> |
getGraphsList()
list of graph
|
OnnxMl.GraphProtoOrBuilder |
getGraphsOrBuilder(int index)
list of graph
|
List<? extends OnnxMl.GraphProtoOrBuilder> |
getGraphsOrBuilderList()
list of graph
|
long |
getI()
int
|
long |
getInts(int index)
list of ints
|
int |
getIntsCount()
list of ints
|
List<Long> |
getIntsList()
list of ints
|
String |
getName()
The name field MUST be present for this version of the IR.
|
org.nd4j.shade.protobuf.ByteString |
getNameBytes()
The name field MUST be present for this version of the IR.
|
org.nd4j.shade.protobuf.Parser<OnnxMl.AttributeProto> |
getParserForType() |
org.nd4j.shade.protobuf.ByteString |
getS()
UTF-8 string
|
int |
getSerializedSize() |
org.nd4j.shade.protobuf.ByteString |
getStrings(int index)
list of UTF-8 strings
|
int |
getStringsCount()
list of UTF-8 strings
|
List<org.nd4j.shade.protobuf.ByteString> |
getStringsList()
list of UTF-8 strings
|
OnnxMl.TensorProto |
getT()
tensor value
|
OnnxMl.TensorProto |
getTensors(int index)
list of tensors
|
int |
getTensorsCount()
list of tensors
|
List<OnnxMl.TensorProto> |
getTensorsList()
list of tensors
|
OnnxMl.TensorProtoOrBuilder |
getTensorsOrBuilder(int index)
list of tensors
|
List<? extends OnnxMl.TensorProtoOrBuilder> |
getTensorsOrBuilderList()
list of tensors
|
OnnxMl.TensorProtoOrBuilder |
getTOrBuilder()
tensor value
|
OnnxMl.AttributeProto.AttributeType |
getType()
The type field MUST be present for this version of the IR.
|
int |
getTypeValue()
The type field MUST be present for this version of the IR.
|
org.nd4j.shade.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasG()
graph
|
int |
hashCode() |
boolean |
hasT()
tensor value
|
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static OnnxMl.AttributeProto.Builder |
newBuilder() |
static OnnxMl.AttributeProto.Builder |
newBuilder(OnnxMl.AttributeProto prototype) |
OnnxMl.AttributeProto.Builder |
newBuilderForType() |
protected OnnxMl.AttributeProto.Builder |
newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static OnnxMl.AttributeProto |
parseDelimitedFrom(InputStream input) |
static OnnxMl.AttributeProto |
parseDelimitedFrom(InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static OnnxMl.AttributeProto |
parseFrom(byte[] data) |
static OnnxMl.AttributeProto |
parseFrom(byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static OnnxMl.AttributeProto |
parseFrom(ByteBuffer data) |
static OnnxMl.AttributeProto |
parseFrom(ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static OnnxMl.AttributeProto |
parseFrom(org.nd4j.shade.protobuf.ByteString data) |
static OnnxMl.AttributeProto |
parseFrom(org.nd4j.shade.protobuf.ByteString data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static OnnxMl.AttributeProto |
parseFrom(org.nd4j.shade.protobuf.CodedInputStream input) |
static OnnxMl.AttributeProto |
parseFrom(org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static OnnxMl.AttributeProto |
parseFrom(InputStream input) |
static OnnxMl.AttributeProto |
parseFrom(InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static org.nd4j.shade.protobuf.Parser<OnnxMl.AttributeProto> |
parser() |
OnnxMl.AttributeProto.Builder |
toBuilder() |
void |
writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int DOC_STRING_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int F_FIELD_NUMBER
public static final int I_FIELD_NUMBER
public static final int S_FIELD_NUMBER
public static final int T_FIELD_NUMBER
public static final int G_FIELD_NUMBER
public static final int FLOATS_FIELD_NUMBER
public static final int INTS_FIELD_NUMBER
public static final int STRINGS_FIELD_NUMBER
public static final int TENSORS_FIELD_NUMBER
public static final int GRAPHS_FIELD_NUMBER
protected Object newInstance(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class org.nd4j.shade.protobuf.GeneratedMessageV3public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface org.nd4j.shade.protobuf.MessageOrBuildergetUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class org.nd4j.shade.protobuf.GeneratedMessageV3public String getName()
The name field MUST be present for this version of the IR.
string name = 1;getName in interface OnnxMl.AttributeProtoOrBuilderpublic org.nd4j.shade.protobuf.ByteString getNameBytes()
The name field MUST be present for this version of the IR.
string name = 1;getNameBytes in interface OnnxMl.AttributeProtoOrBuilderpublic String getDocString()
A human-readable documentation for this attribute. Markdown is allowed.
string doc_string = 13;getDocString in interface OnnxMl.AttributeProtoOrBuilderpublic org.nd4j.shade.protobuf.ByteString getDocStringBytes()
A human-readable documentation for this attribute. Markdown is allowed.
string doc_string = 13;getDocStringBytes in interface OnnxMl.AttributeProtoOrBuilderpublic 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 hueristics 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 accomodate proto3 implementations.
.onnx.AttributeProto.AttributeType type = 20;getTypeValue in interface OnnxMl.AttributeProtoOrBuilderpublic 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 hueristics 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 accomodate proto3 implementations.
.onnx.AttributeProto.AttributeType type = 20;getType in interface OnnxMl.AttributeProtoOrBuilderpublic float getF()
Exactly ONE of the following fields must be present for this version of the IR
float f = 2;getF in interface OnnxMl.AttributeProtoOrBuilderpublic long getI()
int
int64 i = 3;getI in interface OnnxMl.AttributeProtoOrBuilderpublic org.nd4j.shade.protobuf.ByteString getS()
UTF-8 string
bytes s = 4;getS in interface OnnxMl.AttributeProtoOrBuilderpublic boolean hasT()
tensor value
.onnx.TensorProto t = 5;hasT in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.TensorProto getT()
tensor value
.onnx.TensorProto t = 5;getT in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.TensorProtoOrBuilder getTOrBuilder()
tensor value
.onnx.TensorProto t = 5;getTOrBuilder in interface OnnxMl.AttributeProtoOrBuilderpublic boolean hasG()
graph
.onnx.GraphProto g = 6;hasG in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.GraphProto getG()
graph
.onnx.GraphProto g = 6;getG in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.GraphProtoOrBuilder getGOrBuilder()
graph
.onnx.GraphProto g = 6;getGOrBuilder in interface OnnxMl.AttributeProtoOrBuilderpublic List<Float> getFloatsList()
list of floats
repeated float floats = 7;getFloatsList in interface OnnxMl.AttributeProtoOrBuilderpublic int getFloatsCount()
list of floats
repeated float floats = 7;getFloatsCount in interface OnnxMl.AttributeProtoOrBuilderpublic float getFloats(int index)
list of floats
repeated float floats = 7;getFloats in interface OnnxMl.AttributeProtoOrBuilderpublic List<Long> getIntsList()
list of ints
repeated int64 ints = 8;getIntsList in interface OnnxMl.AttributeProtoOrBuilderpublic int getIntsCount()
list of ints
repeated int64 ints = 8;getIntsCount in interface OnnxMl.AttributeProtoOrBuilderpublic long getInts(int index)
list of ints
repeated int64 ints = 8;getInts in interface OnnxMl.AttributeProtoOrBuilderpublic List<org.nd4j.shade.protobuf.ByteString> getStringsList()
list of UTF-8 strings
repeated bytes strings = 9;getStringsList in interface OnnxMl.AttributeProtoOrBuilderpublic int getStringsCount()
list of UTF-8 strings
repeated bytes strings = 9;getStringsCount in interface OnnxMl.AttributeProtoOrBuilderpublic org.nd4j.shade.protobuf.ByteString getStrings(int index)
list of UTF-8 strings
repeated bytes strings = 9;getStrings in interface OnnxMl.AttributeProtoOrBuilderpublic List<OnnxMl.TensorProto> getTensorsList()
list of tensors
repeated .onnx.TensorProto tensors = 10;getTensorsList in interface OnnxMl.AttributeProtoOrBuilderpublic List<? extends OnnxMl.TensorProtoOrBuilder> getTensorsOrBuilderList()
list of tensors
repeated .onnx.TensorProto tensors = 10;getTensorsOrBuilderList in interface OnnxMl.AttributeProtoOrBuilderpublic int getTensorsCount()
list of tensors
repeated .onnx.TensorProto tensors = 10;getTensorsCount in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.TensorProto getTensors(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;getTensors in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.TensorProtoOrBuilder getTensorsOrBuilder(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;getTensorsOrBuilder in interface OnnxMl.AttributeProtoOrBuilderpublic List<OnnxMl.GraphProto> getGraphsList()
list of graph
repeated .onnx.GraphProto graphs = 11;getGraphsList in interface OnnxMl.AttributeProtoOrBuilderpublic List<? extends OnnxMl.GraphProtoOrBuilder> getGraphsOrBuilderList()
list of graph
repeated .onnx.GraphProto graphs = 11;getGraphsOrBuilderList in interface OnnxMl.AttributeProtoOrBuilderpublic int getGraphsCount()
list of graph
repeated .onnx.GraphProto graphs = 11;getGraphsCount in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.GraphProto getGraphs(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;getGraphs in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.GraphProtoOrBuilder getGraphsOrBuilder(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;getGraphsOrBuilder in interface OnnxMl.AttributeProtoOrBuilderpublic final boolean isInitialized()
isInitialized in interface org.nd4j.shade.protobuf.MessageLiteOrBuilderisInitialized in class org.nd4j.shade.protobuf.GeneratedMessageV3public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface org.nd4j.shade.protobuf.MessageLitewriteTo in class org.nd4j.shade.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface org.nd4j.shade.protobuf.MessageLitegetSerializedSize in class org.nd4j.shade.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface org.nd4j.shade.protobuf.Messageequals in class org.nd4j.shade.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface org.nd4j.shade.protobuf.MessagehashCode in class org.nd4j.shade.protobuf.AbstractMessagepublic static OnnxMl.AttributeProto parseFrom(ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static OnnxMl.AttributeProto parseFrom(ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static OnnxMl.AttributeProto parseFrom(org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static OnnxMl.AttributeProto parseFrom(org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static OnnxMl.AttributeProto parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static OnnxMl.AttributeProto parseFrom(byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static OnnxMl.AttributeProto parseFrom(InputStream input) throws IOException
IOExceptionpublic static OnnxMl.AttributeProto parseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OnnxMl.AttributeProto parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static OnnxMl.AttributeProto parseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OnnxMl.AttributeProto parseFrom(org.nd4j.shade.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static OnnxMl.AttributeProto parseFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic OnnxMl.AttributeProto.Builder newBuilderForType()
newBuilderForType in interface org.nd4j.shade.protobuf.MessagenewBuilderForType in interface org.nd4j.shade.protobuf.MessageLitepublic static OnnxMl.AttributeProto.Builder newBuilder()
public static OnnxMl.AttributeProto.Builder newBuilder(OnnxMl.AttributeProto prototype)
public OnnxMl.AttributeProto.Builder toBuilder()
toBuilder in interface org.nd4j.shade.protobuf.MessagetoBuilder in interface org.nd4j.shade.protobuf.MessageLiteprotected OnnxMl.AttributeProto.Builder newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class org.nd4j.shade.protobuf.GeneratedMessageV3public static OnnxMl.AttributeProto getDefaultInstance()
public static org.nd4j.shade.protobuf.Parser<OnnxMl.AttributeProto> parser()
public org.nd4j.shade.protobuf.Parser<OnnxMl.AttributeProto> getParserForType()
getParserForType in interface org.nd4j.shade.protobuf.MessagegetParserForType in interface org.nd4j.shade.protobuf.MessageLitegetParserForType in class org.nd4j.shade.protobuf.GeneratedMessageV3public OnnxMl.AttributeProto getDefaultInstanceForType()
getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilderCopyright © 2021. All rights reserved.