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) |
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, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, getSerializedSizeInternal, isInitializedInternal, makeImmutableInternal, mergeFromInternal, toByteArray, toByteString, writeDelimitedTo, writeTo, writeToInternal
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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
public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface org.nd4j.shade.protobuf.MessageOrBuilder
getUnknownFields
in class org.nd4j.shade.protobuf.GeneratedMessageV3
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class org.nd4j.shade.protobuf.GeneratedMessageV3
public String getName()
The name field MUST be present for this version of the IR.
string name = 1;
getName
in interface Onnx.AttributeProtoOrBuilder
public 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.AttributeProtoOrBuilder
public String getDocString()
A human-readable documentation for this attribute. Markdown is allowed.
string doc_string = 13;
getDocString
in interface Onnx.AttributeProtoOrBuilder
public org.nd4j.shade.protobuf.ByteString getDocStringBytes()
A human-readable documentation for this attribute. Markdown is allowed.
string doc_string = 13;
getDocStringBytes
in interface Onnx.AttributeProtoOrBuilder
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 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.AttributeProtoOrBuilder
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 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.AttributeProtoOrBuilder
public float getF()
Exactly ONE of the following fields must be present for this version of the IR
float f = 2;
getF
in interface Onnx.AttributeProtoOrBuilder
public long getI()
int
int64 i = 3;
getI
in interface Onnx.AttributeProtoOrBuilder
public org.nd4j.shade.protobuf.ByteString getS()
UTF-8 string
bytes s = 4;
getS
in interface Onnx.AttributeProtoOrBuilder
public boolean hasT()
tensor value
.onnx.TensorProto t = 5;
hasT
in interface Onnx.AttributeProtoOrBuilder
public Onnx.TensorProto getT()
tensor value
.onnx.TensorProto t = 5;
getT
in interface Onnx.AttributeProtoOrBuilder
public Onnx.TensorProtoOrBuilder getTOrBuilder()
tensor value
.onnx.TensorProto t = 5;
getTOrBuilder
in interface Onnx.AttributeProtoOrBuilder
public boolean hasG()
graph
.onnx.GraphProto g = 6;
hasG
in interface Onnx.AttributeProtoOrBuilder
public Onnx.GraphProto getG()
graph
.onnx.GraphProto g = 6;
getG
in interface Onnx.AttributeProtoOrBuilder
public Onnx.GraphProtoOrBuilder getGOrBuilder()
graph
.onnx.GraphProto g = 6;
getGOrBuilder
in interface Onnx.AttributeProtoOrBuilder
public List<Float> getFloatsList()
list of floats
repeated float floats = 7;
getFloatsList
in interface Onnx.AttributeProtoOrBuilder
public int getFloatsCount()
list of floats
repeated float floats = 7;
getFloatsCount
in interface Onnx.AttributeProtoOrBuilder
public float getFloats(int index)
list of floats
repeated float floats = 7;
getFloats
in interface Onnx.AttributeProtoOrBuilder
public List<Long> getIntsList()
list of ints
repeated int64 ints = 8;
getIntsList
in interface Onnx.AttributeProtoOrBuilder
public int getIntsCount()
list of ints
repeated int64 ints = 8;
getIntsCount
in interface Onnx.AttributeProtoOrBuilder
public long getInts(int index)
list of ints
repeated int64 ints = 8;
getInts
in interface Onnx.AttributeProtoOrBuilder
public List<org.nd4j.shade.protobuf.ByteString> getStringsList()
list of UTF-8 strings
repeated bytes strings = 9;
getStringsList
in interface Onnx.AttributeProtoOrBuilder
public int getStringsCount()
list of UTF-8 strings
repeated bytes strings = 9;
getStringsCount
in interface Onnx.AttributeProtoOrBuilder
public org.nd4j.shade.protobuf.ByteString getStrings(int index)
list of UTF-8 strings
repeated bytes strings = 9;
getStrings
in interface Onnx.AttributeProtoOrBuilder
public List<Onnx.TensorProto> getTensorsList()
list of tensors
repeated .onnx.TensorProto tensors = 10;
getTensorsList
in interface Onnx.AttributeProtoOrBuilder
public List<? extends Onnx.TensorProtoOrBuilder> getTensorsOrBuilderList()
list of tensors
repeated .onnx.TensorProto tensors = 10;
getTensorsOrBuilderList
in interface Onnx.AttributeProtoOrBuilder
public int getTensorsCount()
list of tensors
repeated .onnx.TensorProto tensors = 10;
getTensorsCount
in interface Onnx.AttributeProtoOrBuilder
public Onnx.TensorProto getTensors(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;
getTensors
in interface Onnx.AttributeProtoOrBuilder
public Onnx.TensorProtoOrBuilder getTensorsOrBuilder(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;
getTensorsOrBuilder
in interface Onnx.AttributeProtoOrBuilder
public List<Onnx.GraphProto> getGraphsList()
list of graph
repeated .onnx.GraphProto graphs = 11;
getGraphsList
in interface Onnx.AttributeProtoOrBuilder
public List<? extends Onnx.GraphProtoOrBuilder> getGraphsOrBuilderList()
list of graph
repeated .onnx.GraphProto graphs = 11;
getGraphsOrBuilderList
in interface Onnx.AttributeProtoOrBuilder
public int getGraphsCount()
list of graph
repeated .onnx.GraphProto graphs = 11;
getGraphsCount
in interface Onnx.AttributeProtoOrBuilder
public Onnx.GraphProto getGraphs(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;
getGraphs
in interface Onnx.AttributeProtoOrBuilder
public Onnx.GraphProtoOrBuilder getGraphsOrBuilder(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;
getGraphsOrBuilder
in interface Onnx.AttributeProtoOrBuilder
public final boolean isInitialized()
isInitialized
in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
isInitialized
in class org.nd4j.shade.protobuf.GeneratedMessageV3
public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface org.nd4j.shade.protobuf.MessageLite
writeTo
in class org.nd4j.shade.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface org.nd4j.shade.protobuf.MessageLite
getSerializedSize
in class org.nd4j.shade.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface org.nd4j.shade.protobuf.Message
equals
in class org.nd4j.shade.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface org.nd4j.shade.protobuf.Message
hashCode
in class org.nd4j.shade.protobuf.AbstractMessage
public static Onnx.AttributeProto parseFrom(ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferException
public static Onnx.AttributeProto parseFrom(ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferException
public static Onnx.AttributeProto parseFrom(org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferException
public 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.InvalidProtocolBufferException
public static Onnx.AttributeProto parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferException
public static Onnx.AttributeProto parseFrom(byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferException
public static Onnx.AttributeProto parseFrom(InputStream input) throws IOException
IOException
public static Onnx.AttributeProto parseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Onnx.AttributeProto parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Onnx.AttributeProto parseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Onnx.AttributeProto parseFrom(org.nd4j.shade.protobuf.CodedInputStream input) throws IOException
IOException
public static Onnx.AttributeProto parseFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Onnx.AttributeProto.Builder newBuilderForType()
newBuilderForType
in interface org.nd4j.shade.protobuf.Message
newBuilderForType
in interface org.nd4j.shade.protobuf.MessageLite
public 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.Message
toBuilder
in interface org.nd4j.shade.protobuf.MessageLite
protected Onnx.AttributeProto.Builder newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class org.nd4j.shade.protobuf.GeneratedMessageV3
public 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.Message
getParserForType
in interface org.nd4j.shade.protobuf.MessageLite
getParserForType
in class org.nd4j.shade.protobuf.GeneratedMessageV3
public Onnx.AttributeProto getDefaultInstanceForType()
getDefaultInstanceForType
in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface org.nd4j.shade.protobuf.MessageOrBuilder
Copyright © 2020. All rights reserved.