public static final class OnnxProto3.AttributeProto extends com.github.os72.protobuf351.GeneratedMessageV3 implements OnnxProto3.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 |
OnnxProto3.AttributeProto.AttributeType
Note: this enum is structurally identical to the OpSchema::AttrType
enum defined in schema.h.
|
static class |
OnnxProto3.AttributeProto.Builder
A named attribute containing either singular float, integer, string
and tensor values, or repeated float, integer, string and tensor values.
|
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent, com.github.os72.protobuf351.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.github.os72.protobuf351.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.github.os72.protobuf351.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.github.os72.protobuf351.GeneratedMessageV3.ExtendableMessage<MessageType extends com.github.os72.protobuf351.GeneratedMessageV3.ExtendableMessage>, com.github.os72.protobuf351.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.github.os72.protobuf351.GeneratedMessageV3.ExtendableMessage>, com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
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 OnnxProto3.AttributeProto |
getDefaultInstance() |
OnnxProto3.AttributeProto |
getDefaultInstanceForType() |
static com.github.os72.protobuf351.Descriptors.Descriptor |
getDescriptor() |
String |
getDocString()
A human-readable documentation for this attribute.
|
com.github.os72.protobuf351.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
|
OnnxProto3.GraphProto |
getG()
graph
|
OnnxProto3.GraphProtoOrBuilder |
getGOrBuilder()
graph
|
OnnxProto3.GraphProto |
getGraphs(int index)
list of graph
|
int |
getGraphsCount()
list of graph
|
List<OnnxProto3.GraphProto> |
getGraphsList()
list of graph
|
OnnxProto3.GraphProtoOrBuilder |
getGraphsOrBuilder(int index)
list of graph
|
List<? extends OnnxProto3.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.
|
com.github.os72.protobuf351.ByteString |
getNameBytes()
The name field MUST be present for this version of the IR.
|
com.github.os72.protobuf351.Parser<OnnxProto3.AttributeProto> |
getParserForType() |
com.github.os72.protobuf351.ByteString |
getS()
UTF-8 string
|
int |
getSerializedSize() |
com.github.os72.protobuf351.ByteString |
getStrings(int index)
list of UTF-8 strings
|
int |
getStringsCount()
list of UTF-8 strings
|
List<com.github.os72.protobuf351.ByteString> |
getStringsList()
list of UTF-8 strings
|
OnnxProto3.TensorProto |
getT()
tensor value
|
OnnxProto3.TensorProto |
getTensors(int index)
list of tensors
|
int |
getTensorsCount()
list of tensors
|
List<OnnxProto3.TensorProto> |
getTensorsList()
list of tensors
|
OnnxProto3.TensorProtoOrBuilder |
getTensorsOrBuilder(int index)
list of tensors
|
List<? extends OnnxProto3.TensorProtoOrBuilder> |
getTensorsOrBuilderList()
list of tensors
|
OnnxProto3.TensorProtoOrBuilder |
getTOrBuilder()
tensor value
|
OnnxProto3.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.
|
com.github.os72.protobuf351.UnknownFieldSet |
getUnknownFields() |
boolean |
hasG()
graph
|
int |
hashCode() |
boolean |
hasT()
tensor value
|
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static OnnxProto3.AttributeProto.Builder |
newBuilder() |
static OnnxProto3.AttributeProto.Builder |
newBuilder(OnnxProto3.AttributeProto prototype) |
OnnxProto3.AttributeProto.Builder |
newBuilderForType() |
protected OnnxProto3.AttributeProto.Builder |
newBuilderForType(com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) |
static OnnxProto3.AttributeProto |
parseDelimitedFrom(InputStream input) |
static OnnxProto3.AttributeProto |
parseDelimitedFrom(InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static OnnxProto3.AttributeProto |
parseFrom(byte[] data) |
static OnnxProto3.AttributeProto |
parseFrom(byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static OnnxProto3.AttributeProto |
parseFrom(ByteBuffer data) |
static OnnxProto3.AttributeProto |
parseFrom(ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static OnnxProto3.AttributeProto |
parseFrom(com.github.os72.protobuf351.ByteString data) |
static OnnxProto3.AttributeProto |
parseFrom(com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static OnnxProto3.AttributeProto |
parseFrom(com.github.os72.protobuf351.CodedInputStream input) |
static OnnxProto3.AttributeProto |
parseFrom(com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static OnnxProto3.AttributeProto |
parseFrom(InputStream input) |
static OnnxProto3.AttributeProto |
parseFrom(InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static com.github.os72.protobuf351.Parser<OnnxProto3.AttributeProto> |
parser() |
OnnxProto3.AttributeProto.Builder |
toBuilder() |
void |
writeTo(com.github.os72.protobuf351.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, 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, toByteArray, toByteString, writeDelimitedTo, writeTo
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 com.github.os72.protobuf351.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.github.os72.protobuf351.MessageOrBuilder
getUnknownFields
in class com.github.os72.protobuf351.GeneratedMessageV3
public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor()
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.github.os72.protobuf351.GeneratedMessageV3
public String getName()
The name field MUST be present for this version of the IR.
string name = 1;
getName
in interface OnnxProto3.AttributeProtoOrBuilder
public com.github.os72.protobuf351.ByteString getNameBytes()
The name field MUST be present for this version of the IR.
string name = 1;
getNameBytes
in interface OnnxProto3.AttributeProtoOrBuilder
public String getDocString()
A human-readable documentation for this attribute. Markdown is allowed.
string doc_string = 13;
getDocString
in interface OnnxProto3.AttributeProtoOrBuilder
public com.github.os72.protobuf351.ByteString getDocStringBytes()
A human-readable documentation for this attribute. Markdown is allowed.
string doc_string = 13;
getDocStringBytes
in interface OnnxProto3.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 OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.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 OnnxProto3.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 OnnxProto3.AttributeProtoOrBuilder
public long getI()
int
int64 i = 3;
getI
in interface OnnxProto3.AttributeProtoOrBuilder
public com.github.os72.protobuf351.ByteString getS()
UTF-8 string
bytes s = 4;
getS
in interface OnnxProto3.AttributeProtoOrBuilder
public boolean hasT()
tensor value
.onnx.TensorProto t = 5;
hasT
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.TensorProto getT()
tensor value
.onnx.TensorProto t = 5;
getT
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.TensorProtoOrBuilder getTOrBuilder()
tensor value
.onnx.TensorProto t = 5;
getTOrBuilder
in interface OnnxProto3.AttributeProtoOrBuilder
public boolean hasG()
graph
.onnx.GraphProto g = 6;
hasG
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.GraphProto getG()
graph
.onnx.GraphProto g = 6;
getG
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.GraphProtoOrBuilder getGOrBuilder()
graph
.onnx.GraphProto g = 6;
getGOrBuilder
in interface OnnxProto3.AttributeProtoOrBuilder
public List<Float> getFloatsList()
list of floats
repeated float floats = 7;
getFloatsList
in interface OnnxProto3.AttributeProtoOrBuilder
public int getFloatsCount()
list of floats
repeated float floats = 7;
getFloatsCount
in interface OnnxProto3.AttributeProtoOrBuilder
public float getFloats(int index)
list of floats
repeated float floats = 7;
getFloats
in interface OnnxProto3.AttributeProtoOrBuilder
public List<Long> getIntsList()
list of ints
repeated int64 ints = 8;
getIntsList
in interface OnnxProto3.AttributeProtoOrBuilder
public int getIntsCount()
list of ints
repeated int64 ints = 8;
getIntsCount
in interface OnnxProto3.AttributeProtoOrBuilder
public long getInts(int index)
list of ints
repeated int64 ints = 8;
getInts
in interface OnnxProto3.AttributeProtoOrBuilder
public List<com.github.os72.protobuf351.ByteString> getStringsList()
list of UTF-8 strings
repeated bytes strings = 9;
getStringsList
in interface OnnxProto3.AttributeProtoOrBuilder
public int getStringsCount()
list of UTF-8 strings
repeated bytes strings = 9;
getStringsCount
in interface OnnxProto3.AttributeProtoOrBuilder
public com.github.os72.protobuf351.ByteString getStrings(int index)
list of UTF-8 strings
repeated bytes strings = 9;
getStrings
in interface OnnxProto3.AttributeProtoOrBuilder
public List<OnnxProto3.TensorProto> getTensorsList()
list of tensors
repeated .onnx.TensorProto tensors = 10;
getTensorsList
in interface OnnxProto3.AttributeProtoOrBuilder
public List<? extends OnnxProto3.TensorProtoOrBuilder> getTensorsOrBuilderList()
list of tensors
repeated .onnx.TensorProto tensors = 10;
getTensorsOrBuilderList
in interface OnnxProto3.AttributeProtoOrBuilder
public int getTensorsCount()
list of tensors
repeated .onnx.TensorProto tensors = 10;
getTensorsCount
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.TensorProto getTensors(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;
getTensors
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.TensorProtoOrBuilder getTensorsOrBuilder(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;
getTensorsOrBuilder
in interface OnnxProto3.AttributeProtoOrBuilder
public List<OnnxProto3.GraphProto> getGraphsList()
list of graph
repeated .onnx.GraphProto graphs = 11;
getGraphsList
in interface OnnxProto3.AttributeProtoOrBuilder
public List<? extends OnnxProto3.GraphProtoOrBuilder> getGraphsOrBuilderList()
list of graph
repeated .onnx.GraphProto graphs = 11;
getGraphsOrBuilderList
in interface OnnxProto3.AttributeProtoOrBuilder
public int getGraphsCount()
list of graph
repeated .onnx.GraphProto graphs = 11;
getGraphsCount
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.GraphProto getGraphs(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;
getGraphs
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.GraphProtoOrBuilder getGraphsOrBuilder(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;
getGraphsOrBuilder
in interface OnnxProto3.AttributeProtoOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.github.os72.protobuf351.MessageLiteOrBuilder
isInitialized
in class com.github.os72.protobuf351.GeneratedMessageV3
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output) throws IOException
writeTo
in interface com.github.os72.protobuf351.MessageLite
writeTo
in class com.github.os72.protobuf351.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.github.os72.protobuf351.MessageLite
getSerializedSize
in class com.github.os72.protobuf351.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.github.os72.protobuf351.Message
equals
in class com.github.os72.protobuf351.AbstractMessage
public int hashCode()
hashCode
in interface com.github.os72.protobuf351.Message
hashCode
in class com.github.os72.protobuf351.AbstractMessage
public static OnnxProto3.AttributeProto parseFrom(ByteBuffer data) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferException
public static OnnxProto3.AttributeProto parseFrom(ByteBuffer data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferException
public static OnnxProto3.AttributeProto parseFrom(com.github.os72.protobuf351.ByteString data) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferException
public static OnnxProto3.AttributeProto parseFrom(com.github.os72.protobuf351.ByteString data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferException
public static OnnxProto3.AttributeProto parseFrom(byte[] data) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferException
public static OnnxProto3.AttributeProto parseFrom(byte[] data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferException
public static OnnxProto3.AttributeProto parseFrom(InputStream input) throws IOException
IOException
public static OnnxProto3.AttributeProto parseFrom(InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static OnnxProto3.AttributeProto parseDelimitedFrom(InputStream input) throws IOException
IOException
public static OnnxProto3.AttributeProto parseDelimitedFrom(InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static OnnxProto3.AttributeProto parseFrom(com.github.os72.protobuf351.CodedInputStream input) throws IOException
IOException
public static OnnxProto3.AttributeProto parseFrom(com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public OnnxProto3.AttributeProto.Builder newBuilderForType()
newBuilderForType
in interface com.github.os72.protobuf351.Message
newBuilderForType
in interface com.github.os72.protobuf351.MessageLite
public static OnnxProto3.AttributeProto.Builder newBuilder()
public static OnnxProto3.AttributeProto.Builder newBuilder(OnnxProto3.AttributeProto prototype)
public OnnxProto3.AttributeProto.Builder toBuilder()
toBuilder
in interface com.github.os72.protobuf351.Message
toBuilder
in interface com.github.os72.protobuf351.MessageLite
protected OnnxProto3.AttributeProto.Builder newBuilderForType(com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.github.os72.protobuf351.GeneratedMessageV3
public static OnnxProto3.AttributeProto getDefaultInstance()
public static com.github.os72.protobuf351.Parser<OnnxProto3.AttributeProto> parser()
public com.github.os72.protobuf351.Parser<OnnxProto3.AttributeProto> getParserForType()
getParserForType
in interface com.github.os72.protobuf351.Message
getParserForType
in interface com.github.os72.protobuf351.MessageLite
getParserForType
in class com.github.os72.protobuf351.GeneratedMessageV3
public OnnxProto3.AttributeProto getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.github.os72.protobuf351.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.github.os72.protobuf351.MessageOrBuilder
Copyright © 2018. All rights reserved.