public static final class Onnx.AttributeProto extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements Onnx.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 |
Onnx.AttributeProto.AttributeType
Note: this enum is structurally identical to the OpSchema::AttrType
enum defined in schema.h.
|
static class |
Onnx.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 Onnx.AttributeProto |
getDefaultInstance() |
Onnx.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
|
Onnx.GraphProto |
getG()
graph
|
Onnx.GraphProtoOrBuilder |
getGOrBuilder()
graph
|
Onnx.GraphProto |
getGraphs(int index)
list of graph
|
int |
getGraphsCount()
list of graph
|
List<Onnx.GraphProto> |
getGraphsList()
list of graph
|
Onnx.GraphProtoOrBuilder |
getGraphsOrBuilder(int index)
list of graph
|
List<? extends Onnx.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<Onnx.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
|
Onnx.TensorProto |
getT()
tensor value
|
Onnx.TensorProto |
getTensors(int index)
list of tensors
|
int |
getTensorsCount()
list of tensors
|
List<Onnx.TensorProto> |
getTensorsList()
list of tensors
|
Onnx.TensorProtoOrBuilder |
getTensorsOrBuilder(int index)
list of tensors
|
List<? extends Onnx.TensorProtoOrBuilder> |
getTensorsOrBuilderList()
list of tensors
|
Onnx.TensorProtoOrBuilder |
getTOrBuilder()
tensor value
|
Onnx.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 Onnx.AttributeProto.Builder |
newBuilder() |
static Onnx.AttributeProto.Builder |
newBuilder(Onnx.AttributeProto prototype) |
Onnx.AttributeProto.Builder |
newBuilderForType() |
protected Onnx.AttributeProto.Builder |
newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Onnx.AttributeProto |
parseDelimitedFrom(InputStream input) |
static Onnx.AttributeProto |
parseDelimitedFrom(InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static Onnx.AttributeProto |
parseFrom(byte[] data) |
static Onnx.AttributeProto |
parseFrom(byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static Onnx.AttributeProto |
parseFrom(ByteBuffer data) |
static Onnx.AttributeProto |
parseFrom(ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static Onnx.AttributeProto |
parseFrom(org.nd4j.shade.protobuf.ByteString data) |
static Onnx.AttributeProto |
parseFrom(org.nd4j.shade.protobuf.ByteString data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static Onnx.AttributeProto |
parseFrom(org.nd4j.shade.protobuf.CodedInputStream input) |
static Onnx.AttributeProto |
parseFrom(org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static Onnx.AttributeProto |
parseFrom(InputStream input) |
static Onnx.AttributeProto |
parseFrom(InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static org.nd4j.shade.protobuf.Parser<Onnx.AttributeProto> |
parser() |
Onnx.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 Onnx.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 Onnx.AttributeProtoOrBuilderpublic String getDocString()
A human-readable documentation for this attribute. Markdown is allowed.
string doc_string = 13;getDocString in interface Onnx.AttributeProtoOrBuilderpublic org.nd4j.shade.protobuf.ByteString getDocStringBytes()
A human-readable documentation for this attribute. Markdown is allowed.
string doc_string = 13;getDocStringBytes in interface Onnx.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 Onnx.AttributeProtoOrBuilderpublic 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 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 Onnx.AttributeProtoOrBuilderpublic float getF()
Exactly ONE of the following fields must be present for this version of the IR
float f = 2;getF in interface Onnx.AttributeProtoOrBuilderpublic long getI()
int
int64 i = 3;getI in interface Onnx.AttributeProtoOrBuilderpublic org.nd4j.shade.protobuf.ByteString getS()
UTF-8 string
bytes s = 4;getS in interface Onnx.AttributeProtoOrBuilderpublic boolean hasT()
tensor value
.onnx.TensorProto t = 5;hasT in interface Onnx.AttributeProtoOrBuilderpublic Onnx.TensorProto getT()
tensor value
.onnx.TensorProto t = 5;getT in interface Onnx.AttributeProtoOrBuilderpublic Onnx.TensorProtoOrBuilder getTOrBuilder()
tensor value
.onnx.TensorProto t = 5;getTOrBuilder in interface Onnx.AttributeProtoOrBuilderpublic boolean hasG()
graph
.onnx.GraphProto g = 6;hasG in interface Onnx.AttributeProtoOrBuilderpublic Onnx.GraphProto getG()
graph
.onnx.GraphProto g = 6;getG in interface Onnx.AttributeProtoOrBuilderpublic Onnx.GraphProtoOrBuilder getGOrBuilder()
graph
.onnx.GraphProto g = 6;getGOrBuilder in interface Onnx.AttributeProtoOrBuilderpublic List<Float> getFloatsList()
list of floats
repeated float floats = 7;getFloatsList in interface Onnx.AttributeProtoOrBuilderpublic int getFloatsCount()
list of floats
repeated float floats = 7;getFloatsCount in interface Onnx.AttributeProtoOrBuilderpublic float getFloats(int index)
list of floats
repeated float floats = 7;getFloats in interface Onnx.AttributeProtoOrBuilderpublic List<Long> getIntsList()
list of ints
repeated int64 ints = 8;getIntsList in interface Onnx.AttributeProtoOrBuilderpublic int getIntsCount()
list of ints
repeated int64 ints = 8;getIntsCount in interface Onnx.AttributeProtoOrBuilderpublic long getInts(int index)
list of ints
repeated int64 ints = 8;getInts in interface Onnx.AttributeProtoOrBuilderpublic List<org.nd4j.shade.protobuf.ByteString> getStringsList()
list of UTF-8 strings
repeated bytes strings = 9;getStringsList in interface Onnx.AttributeProtoOrBuilderpublic int getStringsCount()
list of UTF-8 strings
repeated bytes strings = 9;getStringsCount in interface Onnx.AttributeProtoOrBuilderpublic org.nd4j.shade.protobuf.ByteString getStrings(int index)
list of UTF-8 strings
repeated bytes strings = 9;getStrings in interface Onnx.AttributeProtoOrBuilderpublic List<Onnx.TensorProto> getTensorsList()
list of tensors
repeated .onnx.TensorProto tensors = 10;getTensorsList in interface Onnx.AttributeProtoOrBuilderpublic List<? extends Onnx.TensorProtoOrBuilder> getTensorsOrBuilderList()
list of tensors
repeated .onnx.TensorProto tensors = 10;getTensorsOrBuilderList in interface Onnx.AttributeProtoOrBuilderpublic int getTensorsCount()
list of tensors
repeated .onnx.TensorProto tensors = 10;getTensorsCount in interface Onnx.AttributeProtoOrBuilderpublic Onnx.TensorProto getTensors(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;getTensors in interface Onnx.AttributeProtoOrBuilderpublic Onnx.TensorProtoOrBuilder getTensorsOrBuilder(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;getTensorsOrBuilder in interface Onnx.AttributeProtoOrBuilderpublic List<Onnx.GraphProto> getGraphsList()
list of graph
repeated .onnx.GraphProto graphs = 11;getGraphsList in interface Onnx.AttributeProtoOrBuilderpublic List<? extends Onnx.GraphProtoOrBuilder> getGraphsOrBuilderList()
list of graph
repeated .onnx.GraphProto graphs = 11;getGraphsOrBuilderList in interface Onnx.AttributeProtoOrBuilderpublic int getGraphsCount()
list of graph
repeated .onnx.GraphProto graphs = 11;getGraphsCount in interface Onnx.AttributeProtoOrBuilderpublic Onnx.GraphProto getGraphs(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;getGraphs in interface Onnx.AttributeProtoOrBuilderpublic Onnx.GraphProtoOrBuilder getGraphsOrBuilder(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;getGraphsOrBuilder in interface Onnx.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 Onnx.AttributeProto parseFrom(ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static Onnx.AttributeProto parseFrom(ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static Onnx.AttributeProto parseFrom(org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static Onnx.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 Onnx.AttributeProto parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static Onnx.AttributeProto parseFrom(byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static Onnx.AttributeProto parseFrom(InputStream input) throws IOException
IOExceptionpublic static Onnx.AttributeProto parseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Onnx.AttributeProto parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Onnx.AttributeProto parseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Onnx.AttributeProto parseFrom(org.nd4j.shade.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Onnx.AttributeProto parseFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Onnx.AttributeProto.Builder newBuilderForType()
newBuilderForType in interface org.nd4j.shade.protobuf.MessagenewBuilderForType in interface org.nd4j.shade.protobuf.MessageLitepublic static Onnx.AttributeProto.Builder newBuilder()
public static Onnx.AttributeProto.Builder newBuilder(Onnx.AttributeProto prototype)
public Onnx.AttributeProto.Builder toBuilder()
toBuilder in interface org.nd4j.shade.protobuf.MessagetoBuilder in interface org.nd4j.shade.protobuf.MessageLiteprotected Onnx.AttributeProto.Builder newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class org.nd4j.shade.protobuf.GeneratedMessageV3public static Onnx.AttributeProto getDefaultInstance()
public static org.nd4j.shade.protobuf.Parser<Onnx.AttributeProto> parser()
public org.nd4j.shade.protobuf.Parser<Onnx.AttributeProto> getParserForType()
getParserForType in interface org.nd4j.shade.protobuf.MessagegetParserForType in interface org.nd4j.shade.protobuf.MessageLitegetParserForType in class org.nd4j.shade.protobuf.GeneratedMessageV3public Onnx.AttributeProto getDefaultInstanceForType()
getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilderCopyright © 2021. All rights reserved.