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,java.io.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:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAttrValue.BuilderProtocol buffer representing the value for an attr used to configure an Op.static classAttrValue.ListValueLINT.IfChangestatic interfaceAttrValue.ListValueOrBuilderstatic classAttrValue.ValueCaseNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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 -
Field Summary
Fields Modifier and Type Field Description static intB_FIELD_NUMBERstatic intF_FIELD_NUMBERstatic intFUNC_FIELD_NUMBERstatic intI_FIELD_NUMBERstatic intLIST_FIELD_NUMBERstatic intPLACEHOLDER_FIELD_NUMBERstatic intS_FIELD_NUMBERstatic intSHAPE_FIELD_NUMBERstatic intTENSOR_FIELD_NUMBERstatic intTYPE_FIELD_NUMBER -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)booleangetB()"bool"static AttrValuegetDefaultInstance()AttrValuegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()floatgetF()"float"NameAttrListgetFunc()"func" represents a function.NameAttrListOrBuildergetFuncOrBuilder()"func" represents a function.longgetI()"int"AttrValue.ListValuegetList()any "list(...)"AttrValue.ListValueOrBuildergetListOrBuilder()any "list(...)"com.google.protobuf.Parser<AttrValue>getParserForType()java.lang.StringgetPlaceholder()This is a placeholder only used in nodes defined inside a function.com.google.protobuf.ByteStringgetPlaceholderBytes()This is a placeholder only used in nodes defined inside a function.com.google.protobuf.ByteStringgetS()"string"intgetSerializedSize()TensorShapeProtogetShape()"shape"TensorShapeProtoOrBuildergetShapeOrBuilder()"shape"TensorProtogetTensor()"tensor"TensorProtoOrBuildergetTensorOrBuilder()"tensor"DataTypegetType()"type"intgetTypeValue()"type"com.google.protobuf.UnknownFieldSetgetUnknownFields()AttrValue.ValueCasegetValueCase()booleanhasFunc()"func" represents a function.inthashCode()booleanhasList()any "list(...)"booleanhasShape()"shape"booleanhasTensor()"tensor"protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static AttrValue.BuildernewBuilder()static AttrValue.BuildernewBuilder(AttrValue prototype)AttrValue.BuildernewBuilderForType()protected AttrValue.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static AttrValueparseDelimitedFrom(java.io.InputStream input)static AttrValueparseDelimitedFrom(java.io.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(java.io.InputStream input)static AttrValueparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AttrValueparseFrom(java.nio.ByteBuffer data)static AttrValueparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<AttrValue>parser()AttrValue.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)Methods inherited from class com.google.protobuf.GeneratedMessageV3
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, 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, wait
-
Field Details
-
S_FIELD_NUMBER
public static final int S_FIELD_NUMBER- See Also:
- Constant Field Values
-
I_FIELD_NUMBER
public static final int I_FIELD_NUMBER- See Also:
- Constant Field Values
-
F_FIELD_NUMBER
public static final int F_FIELD_NUMBER- See Also:
- Constant Field Values
-
B_FIELD_NUMBER
public static final int B_FIELD_NUMBER- See Also:
- Constant Field Values
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
- Constant Field Values
-
SHAPE_FIELD_NUMBER
public static final int SHAPE_FIELD_NUMBER- See Also:
- Constant Field Values
-
TENSOR_FIELD_NUMBER
public static final int TENSOR_FIELD_NUMBER- See Also:
- Constant Field Values
-
LIST_FIELD_NUMBER
public static final int LIST_FIELD_NUMBER- See Also:
- Constant Field Values
-
FUNC_FIELD_NUMBER
public static final int FUNC_FIELD_NUMBER- See Also:
- Constant Field Values
-
PLACEHOLDER_FIELD_NUMBER
public static final int PLACEHOLDER_FIELD_NUMBER- See Also:
- Constant Field Values
-
-
Method Details
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin 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
-
getS
public com.google.protobuf.ByteString getS()"string"
bytes s = 2;- Specified by:
getSin interfaceAttrValueOrBuilder- Returns:
- The s.
-
getI
public long getI()"int"
int64 i = 3;- Specified by:
getIin interfaceAttrValueOrBuilder- Returns:
- The i.
-
getF
public float getF()"float"
float f = 4;- Specified by:
getFin interfaceAttrValueOrBuilder- Returns:
- The f.
-
getB
public boolean getB()"bool"
bool b = 5;- Specified by:
getBin interfaceAttrValueOrBuilder- Returns:
- The b.
-
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
-
getPlaceholder
public 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;- 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
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)- 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(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttrValue parseFrom(java.nio.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:
java.io.IOException
-
parseFrom
public static AttrValue parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException- Throws:
java.io.IOException
-
parseDelimitedFrom
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static AttrValue parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException- Throws:
java.io.IOException
-
parseFrom
public static AttrValue parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException- Throws:
java.io.IOException
-
parseFrom
public static AttrValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException- Throws:
java.io.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
-