Package org.tensorflow.framework
Class AttrValue
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite
-
- org.nd4j.shade.protobuf.AbstractMessage
-
- org.nd4j.shade.protobuf.GeneratedMessageV3
-
- org.tensorflow.framework.AttrValue
-
- All Implemented Interfaces:
Serializable,org.nd4j.shade.protobuf.Message,org.nd4j.shade.protobuf.MessageLite,org.nd4j.shade.protobuf.MessageLiteOrBuilder,org.nd4j.shade.protobuf.MessageOrBuilder,AttrValueOrBuilder
public final class AttrValue extends org.nd4j.shade.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 typetensorflow.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.ValueCase-
Nested classes/interfaces inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage>, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage>, org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable, org.nd4j.shade.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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)booleangetB()"bool"static AttrValuegetDefaultInstance()AttrValuegetDefaultInstanceForType()static org.nd4j.shade.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(...)"org.nd4j.shade.protobuf.Parser<AttrValue>getParserForType()StringgetPlaceholder()This is a placeholder only used in nodes defined inside a function.org.nd4j.shade.protobuf.ByteStringgetPlaceholderBytes()This is a placeholder only used in nodes defined inside a function.org.nd4j.shade.protobuf.ByteStringgetS()"string"intgetSerializedSize()TensorShapeProtogetShape()"shape"TensorShapeProtoOrBuildergetShapeOrBuilder()"shape"TensorProtogetTensor()"tensor"TensorProtoOrBuildergetTensorOrBuilder()"tensor"DataTypegetType()"type"intgetTypeValue()"type"org.nd4j.shade.protobuf.UnknownFieldSetgetUnknownFields()AttrValue.ValueCasegetValueCase()booleanhasB()"bool"booleanhasF()"float"booleanhasFunc()"func" represents a function.inthashCode()booleanhasI()"int"booleanhasList()any "list(...)"booleanhasPlaceholder()This is a placeholder only used in nodes defined inside a function.booleanhasS()"string"booleanhasShape()"shape"booleanhasTensor()"tensor"booleanhasType()"type"protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static AttrValue.BuildernewBuilder()static AttrValue.BuildernewBuilder(AttrValue prototype)AttrValue.BuildernewBuilderForType()protected AttrValue.BuildernewBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static AttrValueparseDelimitedFrom(InputStream input)static AttrValueparseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static AttrValueparseFrom(byte[] data)static AttrValueparseFrom(byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static AttrValueparseFrom(InputStream input)static AttrValueparseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static AttrValueparseFrom(ByteBuffer data)static AttrValueparseFrom(ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static AttrValueparseFrom(org.nd4j.shade.protobuf.ByteString data)static AttrValueparseFrom(org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static AttrValueparseFrom(org.nd4j.shade.protobuf.CodedInputStream input)static AttrValueparseFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static org.nd4j.shade.protobuf.Parser<AttrValue>parser()AttrValue.BuildertoBuilder()voidwriteTo(org.nd4j.shade.protobuf.CodedOutputStream output)-
Methods inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, 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, writeStringNoTag
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
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 Detail
-
newInstance
protected Object newInstance(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getUnknownFields
public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfaceorg.nd4j.shade.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getDescriptor
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getValueCase
public AttrValue.ValueCase 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 org.nd4j.shade.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
public DataType 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
public TensorShapeProto getShape()
"shape"
.tensorflow.TensorShapeProto shape = 7;- Specified by:
getShapein interfaceAttrValueOrBuilder- Returns:
- The shape.
-
getShapeOrBuilder
public TensorShapeProtoOrBuilder 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
public TensorProto getTensor()
"tensor"
.tensorflow.TensorProto tensor = 8;- Specified by:
getTensorin interfaceAttrValueOrBuilder- Returns:
- The tensor.
-
getTensorOrBuilder
public TensorProtoOrBuilder 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
public AttrValue.ListValue getList()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;- Specified by:
getListin interfaceAttrValueOrBuilder- Returns:
- The list.
-
getListOrBuilder
public AttrValue.ListValueOrBuilder 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
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;- Specified by:
getFuncin interfaceAttrValueOrBuilder- Returns:
- The func.
-
getFuncOrBuilder
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;- 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
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;- Specified by:
getPlaceholderin interfaceAttrValueOrBuilder- Returns:
- The placeholder.
-
getPlaceholderBytes
public org.nd4j.shade.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 interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfaceorg.nd4j.shade.protobuf.MessageLite- Overrides:
writeToin classorg.nd4j.shade.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfaceorg.nd4j.shade.protobuf.MessageLite- Overrides:
getSerializedSizein classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceorg.nd4j.shade.protobuf.Message- Overrides:
equalsin classorg.nd4j.shade.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceorg.nd4j.shade.protobuf.Message- Overrides:
hashCodein classorg.nd4j.shade.protobuf.AbstractMessage
-
parseFrom
public static AttrValue parseFrom(ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttrValue parseFrom(ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttrValue parseFrom(org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttrValue parseFrom(org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttrValue parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttrValue parseFrom(byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttrValue parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AttrValue parseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AttrValue parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AttrValue parseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static AttrValue parseFrom(org.nd4j.shade.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AttrValue parseFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public AttrValue.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfaceorg.nd4j.shade.protobuf.Message- Specified by:
newBuilderForTypein interfaceorg.nd4j.shade.protobuf.MessageLite
-
newBuilder
public static AttrValue.Builder newBuilder()
-
newBuilder
public static AttrValue.Builder newBuilder(AttrValue prototype)
-
toBuilder
public AttrValue.Builder toBuilder()
- Specified by:
toBuilderin interfaceorg.nd4j.shade.protobuf.Message- Specified by:
toBuilderin interfaceorg.nd4j.shade.protobuf.MessageLite
-
newBuilderForType
protected AttrValue.Builder newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AttrValue getDefaultInstance()
-
parser
public static org.nd4j.shade.protobuf.Parser<AttrValue> parser()
-
getParserForType
public org.nd4j.shade.protobuf.Parser<AttrValue> getParserForType()
- Specified by:
getParserForTypein interfaceorg.nd4j.shade.protobuf.Message- Specified by:
getParserForTypein interfaceorg.nd4j.shade.protobuf.MessageLite- Overrides:
getParserForTypein classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AttrValue getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
-