public final class AttrValue extends com.google.protobuf.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.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| 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(java.lang.Object obj) |
boolean |
getB()
"bool"
|
static AttrValue |
getDefaultInstance() |
AttrValue |
getDefaultInstanceForType() |
static com.google.protobuf.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.google.protobuf.Parser<AttrValue> |
getParserForType() |
java.lang.String |
getPlaceholder()
This is a placeholder only used in nodes defined inside a
function.
|
com.google.protobuf.ByteString |
getPlaceholderBytes()
This is a placeholder only used in nodes defined inside a
function.
|
com.google.protobuf.ByteString |
getS()
"string"
|
int |
getSerializedSize() |
TensorShapeProto |
getShape()
"shape"
|
TensorShapeProtoOrBuilder |
getShapeOrBuilder()
"shape"
|
TensorProto |
getTensor()
"tensor"
|
TensorProtoOrBuilder |
getTensorOrBuilder()
"tensor"
|
DataType |
getType()
"type"
|
int |
getTypeValue()
"type"
|
com.google.protobuf.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.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AttrValue.Builder |
newBuilder() |
static AttrValue.Builder |
newBuilder(AttrValue prototype) |
AttrValue.Builder |
newBuilderForType() |
protected AttrValue.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AttrValue |
parseDelimitedFrom(java.io.InputStream input) |
static AttrValue |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttrValue |
parseFrom(byte[] data) |
static AttrValue |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttrValue |
parseFrom(java.nio.ByteBuffer data) |
static AttrValue |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttrValue |
parseFrom(com.google.protobuf.ByteString data) |
static AttrValue |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttrValue |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AttrValue |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttrValue |
parseFrom(java.io.InputStream input) |
static AttrValue |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AttrValue> |
parser() |
AttrValue.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public AttrValue.ValueCase getValueCase()
getValueCase in interface AttrValueOrBuilderpublic com.google.protobuf.ByteString getS()
"string"
bytes s = 2;getS in interface AttrValueOrBuilderpublic long getI()
"int"
int64 i = 3;getI in interface AttrValueOrBuilderpublic float getF()
"float"
float f = 4;getF in interface AttrValueOrBuilderpublic boolean getB()
"bool"
bool b = 5;getB in interface AttrValueOrBuilderpublic int getTypeValue()
"type"
.tensorflow.DataType type = 6;getTypeValue in interface AttrValueOrBuilderpublic DataType getType()
"type"
.tensorflow.DataType type = 6;getType in interface AttrValueOrBuilderpublic boolean hasShape()
"shape"
.tensorflow.TensorShapeProto shape = 7;hasShape in interface AttrValueOrBuilderpublic TensorShapeProto getShape()
"shape"
.tensorflow.TensorShapeProto shape = 7;getShape in interface AttrValueOrBuilderpublic TensorShapeProtoOrBuilder getShapeOrBuilder()
"shape"
.tensorflow.TensorShapeProto shape = 7;getShapeOrBuilder in interface AttrValueOrBuilderpublic boolean hasTensor()
"tensor"
.tensorflow.TensorProto tensor = 8;hasTensor in interface AttrValueOrBuilderpublic TensorProto getTensor()
"tensor"
.tensorflow.TensorProto tensor = 8;getTensor in interface AttrValueOrBuilderpublic TensorProtoOrBuilder getTensorOrBuilder()
"tensor"
.tensorflow.TensorProto tensor = 8;getTensorOrBuilder in interface AttrValueOrBuilderpublic boolean hasList()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;hasList in interface AttrValueOrBuilderpublic AttrValue.ListValue getList()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;getList in interface AttrValueOrBuilderpublic AttrValue.ListValueOrBuilder getListOrBuilder()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;getListOrBuilder in interface AttrValueOrBuilderpublic 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 AttrValueOrBuilderpublic 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 AttrValueOrBuilderpublic 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 AttrValueOrBuilderpublic java.lang.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 AttrValueOrBuilderpublic com.google.protobuf.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 AttrValueOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AttrValue parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttrValue parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttrValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttrValue parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttrValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttrValue parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttrValue parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AttrValue parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static AttrValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AttrValue parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static AttrValue parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AttrValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic AttrValue.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AttrValue.Builder newBuilder()
public static AttrValue.Builder newBuilder(AttrValue prototype)
public AttrValue.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AttrValue.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AttrValue getDefaultInstance()
public static com.google.protobuf.Parser<AttrValue> parser()
public com.google.protobuf.Parser<AttrValue> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AttrValue getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder