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