public final class AttrValue extends com.github.os72.protobuf351.GeneratedMessageV3 implements AttrValueOrBuilder
Protocol buffer representing the value for an attr used to configure an Op. Comment indicates the corresponding attr type. Only the field matching the attr type may be filled.Protobuf type
tensorflow.AttrValue
Modifier and Type | Class and Description |
---|---|
static class |
AttrValue.Builder
Protocol buffer representing the value for an attr used to configure an Op.
|
static class |
AttrValue.ListValue
LINT.IfChange
|
static interface |
AttrValue.ListValueOrBuilder |
static class |
AttrValue.ValueCase |
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 |
B_FIELD_NUMBER |
static int |
F_FIELD_NUMBER |
static int |
FUNC_FIELD_NUMBER |
static int |
I_FIELD_NUMBER |
static int |
LIST_FIELD_NUMBER |
static int |
PLACEHOLDER_FIELD_NUMBER |
static int |
S_FIELD_NUMBER |
static int |
SHAPE_FIELD_NUMBER |
static int |
TENSOR_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
boolean |
getB()
"bool"
|
static AttrValue |
getDefaultInstance() |
AttrValue |
getDefaultInstanceForType() |
static com.github.os72.protobuf351.Descriptors.Descriptor |
getDescriptor() |
float |
getF()
"float"
|
NameAttrList |
getFunc()
"func" represents a function.
|
NameAttrListOrBuilder |
getFuncOrBuilder()
"func" represents a function.
|
long |
getI()
"int"
|
AttrValue.ListValue |
getList()
any "list(...)"
|
AttrValue.ListValueOrBuilder |
getListOrBuilder()
any "list(...)"
|
com.github.os72.protobuf351.Parser<AttrValue> |
getParserForType() |
String |
getPlaceholder()
This is a placeholder only used in nodes defined inside a
function.
|
com.github.os72.protobuf351.ByteString |
getPlaceholderBytes()
This is a placeholder only used in nodes defined inside a
function.
|
com.github.os72.protobuf351.ByteString |
getS()
"string"
|
int |
getSerializedSize() |
TensorShapeProto |
getShape()
"shape"
|
TensorShapeProtoOrBuilder |
getShapeOrBuilder()
"shape"
|
TensorProto |
getTensor()
"tensor"
|
TensorProtoOrBuilder |
getTensorOrBuilder()
"tensor"
|
DataType |
getType()
"type"
|
int |
getTypeValue()
"type"
|
com.github.os72.protobuf351.UnknownFieldSet |
getUnknownFields() |
AttrValue.ValueCase |
getValueCase() |
boolean |
hasFunc()
"func" represents a function.
|
int |
hashCode() |
boolean |
hasList()
any "list(...)"
|
boolean |
hasShape()
"shape"
|
boolean |
hasTensor()
"tensor"
|
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AttrValue.Builder |
newBuilder() |
static AttrValue.Builder |
newBuilder(AttrValue prototype) |
AttrValue.Builder |
newBuilderForType() |
protected AttrValue.Builder |
newBuilderForType(com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) |
static AttrValue |
parseDelimitedFrom(InputStream input) |
static AttrValue |
parseDelimitedFrom(InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static AttrValue |
parseFrom(byte[] data) |
static AttrValue |
parseFrom(byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static AttrValue |
parseFrom(ByteBuffer data) |
static AttrValue |
parseFrom(ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static AttrValue |
parseFrom(com.github.os72.protobuf351.ByteString data) |
static AttrValue |
parseFrom(com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static AttrValue |
parseFrom(com.github.os72.protobuf351.CodedInputStream input) |
static AttrValue |
parseFrom(com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static AttrValue |
parseFrom(InputStream input) |
static AttrValue |
parseFrom(InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static com.github.os72.protobuf351.Parser<AttrValue> |
parser() |
AttrValue.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 S_FIELD_NUMBER
public static final int I_FIELD_NUMBER
public static final int F_FIELD_NUMBER
public static final int B_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int SHAPE_FIELD_NUMBER
public static final int TENSOR_FIELD_NUMBER
public static final int LIST_FIELD_NUMBER
public static final int FUNC_FIELD_NUMBER
public static final int PLACEHOLDER_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 AttrValue.ValueCase getValueCase()
getValueCase
in interface AttrValueOrBuilder
public com.github.os72.protobuf351.ByteString getS()
"string"
bytes s = 2;
getS
in interface AttrValueOrBuilder
public long getI()
"int"
int64 i = 3;
getI
in interface AttrValueOrBuilder
public float getF()
"float"
float f = 4;
getF
in interface AttrValueOrBuilder
public boolean getB()
"bool"
bool b = 5;
getB
in interface AttrValueOrBuilder
public int getTypeValue()
"type"
.tensorflow.DataType type = 6;
getTypeValue
in interface AttrValueOrBuilder
public DataType getType()
"type"
.tensorflow.DataType type = 6;
getType
in interface AttrValueOrBuilder
public boolean hasShape()
"shape"
.tensorflow.TensorShapeProto shape = 7;
hasShape
in interface AttrValueOrBuilder
public TensorShapeProto getShape()
"shape"
.tensorflow.TensorShapeProto shape = 7;
getShape
in interface AttrValueOrBuilder
public TensorShapeProtoOrBuilder getShapeOrBuilder()
"shape"
.tensorflow.TensorShapeProto shape = 7;
getShapeOrBuilder
in interface AttrValueOrBuilder
public boolean hasTensor()
"tensor"
.tensorflow.TensorProto tensor = 8;
hasTensor
in interface AttrValueOrBuilder
public TensorProto getTensor()
"tensor"
.tensorflow.TensorProto tensor = 8;
getTensor
in interface AttrValueOrBuilder
public TensorProtoOrBuilder getTensorOrBuilder()
"tensor"
.tensorflow.TensorProto tensor = 8;
getTensorOrBuilder
in interface AttrValueOrBuilder
public boolean hasList()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
hasList
in interface AttrValueOrBuilder
public AttrValue.ListValue getList()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
getList
in interface AttrValueOrBuilder
public AttrValue.ListValueOrBuilder getListOrBuilder()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
getListOrBuilder
in interface AttrValueOrBuilder
public boolean hasFunc()
"func" represents a function. func.name is a function's name or a primitive op's name. func.attr.first is the name of an attr defined for that function. func.attr.second is the value for that attr in the instantiation.
.tensorflow.NameAttrList func = 10;
hasFunc
in interface AttrValueOrBuilder
public NameAttrList getFunc()
"func" represents a function. func.name is a function's name or a primitive op's name. func.attr.first is the name of an attr defined for that function. func.attr.second is the value for that attr in the instantiation.
.tensorflow.NameAttrList func = 10;
getFunc
in interface AttrValueOrBuilder
public NameAttrListOrBuilder getFuncOrBuilder()
"func" represents a function. func.name is a function's name or a primitive op's name. func.attr.first is the name of an attr defined for that function. func.attr.second is the value for that attr in the instantiation.
.tensorflow.NameAttrList func = 10;
getFuncOrBuilder
in interface AttrValueOrBuilder
public String getPlaceholder()
This is a placeholder only used in nodes defined inside a function. It indicates the attr value will be supplied when the function is instantiated. For example, let us suppose a node "N" in function "FN". "N" has an attr "A" with value placeholder = "foo". When FN is instantiated with attr "foo" set to "bar", the instantiated node N's attr A will have been given the value "bar".
string placeholder = 9;
getPlaceholder
in interface AttrValueOrBuilder
public com.github.os72.protobuf351.ByteString getPlaceholderBytes()
This is a placeholder only used in nodes defined inside a function. It indicates the attr value will be supplied when the function is instantiated. For example, let us suppose a node "N" in function "FN". "N" has an attr "A" with value placeholder = "foo". When FN is instantiated with attr "foo" set to "bar", the instantiated node N's attr A will have been given the value "bar".
string placeholder = 9;
getPlaceholderBytes
in interface AttrValueOrBuilder
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 AttrValue parseFrom(ByteBuffer data) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferException
public static AttrValue parseFrom(ByteBuffer data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferException
public static AttrValue parseFrom(com.github.os72.protobuf351.ByteString data) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferException
public static AttrValue 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 AttrValue parseFrom(byte[] data) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferException
public static AttrValue parseFrom(byte[] data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferException
public static AttrValue parseFrom(InputStream input) throws IOException
IOException
public static AttrValue parseFrom(InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static AttrValue parseDelimitedFrom(InputStream input) throws IOException
IOException
public static AttrValue parseDelimitedFrom(InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static AttrValue parseFrom(com.github.os72.protobuf351.CodedInputStream input) throws IOException
IOException
public static AttrValue parseFrom(com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public AttrValue.Builder newBuilderForType()
newBuilderForType
in interface com.github.os72.protobuf351.Message
newBuilderForType
in interface com.github.os72.protobuf351.MessageLite
public static AttrValue.Builder newBuilder()
public static AttrValue.Builder newBuilder(AttrValue prototype)
public AttrValue.Builder toBuilder()
toBuilder
in interface com.github.os72.protobuf351.Message
toBuilder
in interface com.github.os72.protobuf351.MessageLite
protected AttrValue.Builder newBuilderForType(com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.github.os72.protobuf351.GeneratedMessageV3
public static AttrValue getDefaultInstance()
public static com.github.os72.protobuf351.Parser<AttrValue> parser()
public com.github.os72.protobuf351.Parser<AttrValue> 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 AttrValue getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.github.os72.protobuf351.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.github.os72.protobuf351.MessageOrBuilder
Copyright © 2019. All rights reserved.