Package org.tensorflow.framework
Class AttrValue
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.framework.AttrValue
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,AttrValueOrBuilder
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtocol buffer representing the value for an attr used to configure an Op.static final classLINT.IfChangestatic interfacestatic enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleangetB()"bool"static AttrValuestatic final com.google.protobuf.Descriptors.DescriptorfloatgetF()"float"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."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.longgetI()"int"getList()any "list(...)"any "list(...)"com.google.protobuf.Parser<AttrValue> This is a placeholder only used in nodes defined inside a function.com.google.protobuf.ByteStringThis is a placeholder only used in nodes defined inside a function.com.google.protobuf.ByteStringgetS()"string"intgetShape()"shape""shape""tensor""tensor"getType()"type"int"type"booleanhasB()"bool"booleanhasF()"float"booleanhasFunc()"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.inthashCode()booleanhasI()"int"booleanhasList()any "list(...)"booleanThis is a placeholder only used in nodes defined inside a function.booleanhasS()"string"booleanhasShape()"shape"boolean"tensor"booleanhasType()"type"protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic AttrValue.Builderstatic AttrValue.BuildernewBuilder(AttrValue prototype) protected AttrValue.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static AttrValueparseDelimitedFrom(InputStream input) static AttrValueparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttrValueparseFrom(byte[] data) static AttrValueparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttrValueparseFrom(com.google.protobuf.ByteString data) static AttrValueparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttrValueparseFrom(com.google.protobuf.CodedInputStream input) static AttrValueparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttrValueparseFrom(InputStream input) static AttrValueparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttrValueparseFrom(ByteBuffer data) static AttrValueparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AttrValue> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
S_FIELD_NUMBER
public static final int S_FIELD_NUMBER- See Also:
-
I_FIELD_NUMBER
public static final int I_FIELD_NUMBER- See Also:
-
F_FIELD_NUMBER
public static final int F_FIELD_NUMBER- See Also:
-
B_FIELD_NUMBER
public static final int B_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
SHAPE_FIELD_NUMBER
public static final int SHAPE_FIELD_NUMBER- See Also:
-
TENSOR_FIELD_NUMBER
public static final int TENSOR_FIELD_NUMBER- See Also:
-
LIST_FIELD_NUMBER
public static final int LIST_FIELD_NUMBER- See Also:
-
FUNC_FIELD_NUMBER
public static final int FUNC_FIELD_NUMBER- See Also:
-
PLACEHOLDER_FIELD_NUMBER
public static final int PLACEHOLDER_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getValueCase
- Specified by:
getValueCasein interfaceAttrValueOrBuilder
-
hasS
public boolean hasS()"string"
bytes s = 2;- Specified by:
hasSin interfaceAttrValueOrBuilder- Returns:
- Whether the s field is set.
-
getS
public com.google.protobuf.ByteString getS()"string"
bytes s = 2;- Specified by:
getSin interfaceAttrValueOrBuilder- Returns:
- The s.
-
hasI
public boolean hasI()"int"
int64 i = 3;- Specified by:
hasIin interfaceAttrValueOrBuilder- Returns:
- Whether the i field is set.
-
getI
public long getI()"int"
int64 i = 3;- Specified by:
getIin interfaceAttrValueOrBuilder- Returns:
- The i.
-
hasF
public boolean hasF()"float"
float f = 4;- Specified by:
hasFin interfaceAttrValueOrBuilder- Returns:
- Whether the f field is set.
-
getF
public float getF()"float"
float f = 4;- Specified by:
getFin interfaceAttrValueOrBuilder- Returns:
- The f.
-
hasB
public boolean hasB()"bool"
bool b = 5;- Specified by:
hasBin interfaceAttrValueOrBuilder- Returns:
- Whether the b field is set.
-
getB
public boolean getB()"bool"
bool b = 5;- Specified by:
getBin interfaceAttrValueOrBuilder- Returns:
- The b.
-
hasType
public boolean hasType()"type"
.tensorflow.DataType type = 6;- Specified by:
hasTypein interfaceAttrValueOrBuilder- Returns:
- Whether the type field is set.
-
getTypeValue
public int getTypeValue()"type"
.tensorflow.DataType type = 6;- Specified by:
getTypeValuein interfaceAttrValueOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
getType
"type"
.tensorflow.DataType type = 6;- Specified by:
getTypein interfaceAttrValueOrBuilder- Returns:
- The type.
-
hasShape
public boolean hasShape()"shape"
.tensorflow.TensorShapeProto shape = 7;- Specified by:
hasShapein interfaceAttrValueOrBuilder- Returns:
- Whether the shape field is set.
-
getShape
"shape"
.tensorflow.TensorShapeProto shape = 7;- Specified by:
getShapein interfaceAttrValueOrBuilder- Returns:
- The shape.
-
getShapeOrBuilder
"shape"
.tensorflow.TensorShapeProto shape = 7;- Specified by:
getShapeOrBuilderin interfaceAttrValueOrBuilder
-
hasTensor
public boolean hasTensor()"tensor"
.tensorflow.TensorProto tensor = 8;- Specified by:
hasTensorin interfaceAttrValueOrBuilder- Returns:
- Whether the tensor field is set.
-
getTensor
"tensor"
.tensorflow.TensorProto tensor = 8;- Specified by:
getTensorin interfaceAttrValueOrBuilder- Returns:
- The tensor.
-
getTensorOrBuilder
"tensor"
.tensorflow.TensorProto tensor = 8;- Specified by:
getTensorOrBuilderin interfaceAttrValueOrBuilder
-
hasList
public boolean hasList()any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;- Specified by:
hasListin interfaceAttrValueOrBuilder- Returns:
- Whether the list field is set.
-
getList
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;- Specified by:
getListin interfaceAttrValueOrBuilder- Returns:
- The list.
-
getListOrBuilder
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;- Specified by:
getListOrBuilderin interfaceAttrValueOrBuilder
-
hasFunc
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;- Specified by:
hasFuncin interfaceAttrValueOrBuilder- Returns:
- Whether the func field is set.
-
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;- Specified by:
getFuncin interfaceAttrValueOrBuilder- Returns:
- The func.
-
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;- Specified by:
getFuncOrBuilderin interfaceAttrValueOrBuilder
-
hasPlaceholder
public boolean hasPlaceholder()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;- Specified by:
hasPlaceholderin interfaceAttrValueOrBuilder- Returns:
- Whether the placeholder field is set.
-
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;- Specified by:
getPlaceholderin interfaceAttrValueOrBuilder- Returns:
- The placeholder.
-
getPlaceholderBytes
public 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;- Specified by:
getPlaceholderBytesin interfaceAttrValueOrBuilder- Returns:
- The bytes for placeholder.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AttrValue parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttrValue parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttrValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttrValue parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttrValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttrValue parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AttrValue parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static AttrValue parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AttrValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AttrValue.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-