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) |
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, 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 OnnxMl.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 OnnxMl.AttributeProtoOrBuilder
public String getDocString()
A human-readable documentation for this attribute. Markdown is allowed.
string doc_string = 13;
getDocString
in interface OnnxMl.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 OnnxMl.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 OnnxMl.AttributeProtoOrBuilder
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 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.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 OnnxMl.AttributeProtoOrBuilder
public long getI()
int
int64 i = 3;
getI
in interface OnnxMl.AttributeProtoOrBuilder
public org.nd4j.shade.protobuf.ByteString getS()
UTF-8 string
bytes s = 4;
getS
in interface OnnxMl.AttributeProtoOrBuilder
public boolean hasT()
tensor value
.onnx.TensorProto t = 5;
hasT
in interface OnnxMl.AttributeProtoOrBuilder
public OnnxMl.TensorProto getT()
tensor value
.onnx.TensorProto t = 5;
getT
in interface OnnxMl.AttributeProtoOrBuilder
public OnnxMl.TensorProtoOrBuilder getTOrBuilder()
tensor value
.onnx.TensorProto t = 5;
getTOrBuilder
in interface OnnxMl.AttributeProtoOrBuilder
public boolean hasG()
graph
.onnx.GraphProto g = 6;
hasG
in interface OnnxMl.AttributeProtoOrBuilder
public OnnxMl.GraphProto getG()
graph
.onnx.GraphProto g = 6;
getG
in interface OnnxMl.AttributeProtoOrBuilder
public OnnxMl.GraphProtoOrBuilder getGOrBuilder()
graph
.onnx.GraphProto g = 6;
getGOrBuilder
in interface OnnxMl.AttributeProtoOrBuilder
public List<Float> getFloatsList()
list of floats
repeated float floats = 7;
getFloatsList
in interface OnnxMl.AttributeProtoOrBuilder
public int getFloatsCount()
list of floats
repeated float floats = 7;
getFloatsCount
in interface OnnxMl.AttributeProtoOrBuilder
public float getFloats(int index)
list of floats
repeated float floats = 7;
getFloats
in interface OnnxMl.AttributeProtoOrBuilder
public List<Long> getIntsList()
list of ints
repeated int64 ints = 8;
getIntsList
in interface OnnxMl.AttributeProtoOrBuilder
public int getIntsCount()
list of ints
repeated int64 ints = 8;
getIntsCount
in interface OnnxMl.AttributeProtoOrBuilder
public long getInts(int index)
list of ints
repeated int64 ints = 8;
getInts
in interface OnnxMl.AttributeProtoOrBuilder
public List<org.nd4j.shade.protobuf.ByteString> getStringsList()
list of UTF-8 strings
repeated bytes strings = 9;
getStringsList
in interface OnnxMl.AttributeProtoOrBuilder
public int getStringsCount()
list of UTF-8 strings
repeated bytes strings = 9;
getStringsCount
in interface OnnxMl.AttributeProtoOrBuilder
public org.nd4j.shade.protobuf.ByteString getStrings(int index)
list of UTF-8 strings
repeated bytes strings = 9;
getStrings
in interface OnnxMl.AttributeProtoOrBuilder
public List<OnnxMl.TensorProto> getTensorsList()
list of tensors
repeated .onnx.TensorProto tensors = 10;
getTensorsList
in interface OnnxMl.AttributeProtoOrBuilder
public List<? extends OnnxMl.TensorProtoOrBuilder> getTensorsOrBuilderList()
list of tensors
repeated .onnx.TensorProto tensors = 10;
getTensorsOrBuilderList
in interface OnnxMl.AttributeProtoOrBuilder
public int getTensorsCount()
list of tensors
repeated .onnx.TensorProto tensors = 10;
getTensorsCount
in interface OnnxMl.AttributeProtoOrBuilder
public OnnxMl.TensorProto getTensors(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;
getTensors
in interface OnnxMl.AttributeProtoOrBuilder
public OnnxMl.TensorProtoOrBuilder getTensorsOrBuilder(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;
getTensorsOrBuilder
in interface OnnxMl.AttributeProtoOrBuilder
public List<OnnxMl.GraphProto> getGraphsList()
list of graph
repeated .onnx.GraphProto graphs = 11;
getGraphsList
in interface OnnxMl.AttributeProtoOrBuilder
public List<? extends OnnxMl.GraphProtoOrBuilder> getGraphsOrBuilderList()
list of graph
repeated .onnx.GraphProto graphs = 11;
getGraphsOrBuilderList
in interface OnnxMl.AttributeProtoOrBuilder
public int getGraphsCount()
list of graph
repeated .onnx.GraphProto graphs = 11;
getGraphsCount
in interface OnnxMl.AttributeProtoOrBuilder
public OnnxMl.GraphProto getGraphs(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;
getGraphs
in interface OnnxMl.AttributeProtoOrBuilder
public OnnxMl.GraphProtoOrBuilder getGraphsOrBuilder(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;
getGraphsOrBuilder
in interface OnnxMl.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 OnnxMl.AttributeProto parseFrom(ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferException
public static OnnxMl.AttributeProto parseFrom(ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferException
public static OnnxMl.AttributeProto parseFrom(org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferException
public 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.InvalidProtocolBufferException
public static OnnxMl.AttributeProto parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferException
public static OnnxMl.AttributeProto parseFrom(byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferException
public static OnnxMl.AttributeProto parseFrom(InputStream input) throws IOException
IOException
public static OnnxMl.AttributeProto parseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static OnnxMl.AttributeProto parseDelimitedFrom(InputStream input) throws IOException
IOException
public static OnnxMl.AttributeProto parseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static OnnxMl.AttributeProto parseFrom(org.nd4j.shade.protobuf.CodedInputStream input) throws IOException
IOException
public static OnnxMl.AttributeProto parseFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public OnnxMl.AttributeProto.Builder newBuilderForType()
newBuilderForType
in interface org.nd4j.shade.protobuf.Message
newBuilderForType
in interface org.nd4j.shade.protobuf.MessageLite
public 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.Message
toBuilder
in interface org.nd4j.shade.protobuf.MessageLite
protected OnnxMl.AttributeProto.Builder newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class org.nd4j.shade.protobuf.GeneratedMessageV3
public 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.Message
getParserForType
in interface org.nd4j.shade.protobuf.MessageLite
getParserForType
in class org.nd4j.shade.protobuf.GeneratedMessageV3
public OnnxMl.AttributeProto getDefaultInstanceForType()
getDefaultInstanceForType
in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface org.nd4j.shade.protobuf.MessageOrBuilder
Copyright © 2020. All rights reserved.