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 class
AttrValue.Builder
Protocol buffer representing the value for an attr used to configure an Op.static class
AttrValue.ListValue
LINT.IfChangestatic interface
AttrValue.ListValueOrBuilder
static class
AttrValue.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 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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
boolean
getB()
"bool"static AttrValue
getDefaultInstance()
AttrValue
getDefaultInstanceForType()
static org.nd4j.shade.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(...)"org.nd4j.shade.protobuf.Parser<AttrValue>
getParserForType()
String
getPlaceholder()
This is a placeholder only used in nodes defined inside a function.org.nd4j.shade.protobuf.ByteString
getPlaceholderBytes()
This is a placeholder only used in nodes defined inside a function.org.nd4j.shade.protobuf.ByteString
getS()
"string"int
getSerializedSize()
TensorShapeProto
getShape()
"shape"TensorShapeProtoOrBuilder
getShapeOrBuilder()
"shape"TensorProto
getTensor()
"tensor"TensorProtoOrBuilder
getTensorOrBuilder()
"tensor"DataType
getType()
"type"int
getTypeValue()
"type"org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields()
AttrValue.ValueCase
getValueCase()
boolean
hasB()
"bool"boolean
hasF()
"float"boolean
hasFunc()
"func" represents a function.int
hashCode()
boolean
hasI()
"int"boolean
hasList()
any "list(...)"boolean
hasPlaceholder()
This is a placeholder only used in nodes defined inside a function.boolean
hasS()
"string"boolean
hasShape()
"shape"boolean
hasTensor()
"tensor"boolean
hasType()
"type"protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static AttrValue.Builder
newBuilder()
static AttrValue.Builder
newBuilder(AttrValue prototype)
AttrValue.Builder
newBuilderForType()
protected AttrValue.Builder
newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static AttrValue
parseDelimitedFrom(InputStream input)
static AttrValue
parseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
static AttrValue
parseFrom(byte[] data)
static AttrValue
parseFrom(byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
static AttrValue
parseFrom(InputStream input)
static AttrValue
parseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
static AttrValue
parseFrom(ByteBuffer data)
static AttrValue
parseFrom(ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
static AttrValue
parseFrom(org.nd4j.shade.protobuf.ByteString data)
static AttrValue
parseFrom(org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
static AttrValue
parseFrom(org.nd4j.shade.protobuf.CodedInputStream input)
static AttrValue
parseFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
static org.nd4j.shade.protobuf.Parser<AttrValue>
parser()
AttrValue.Builder
toBuilder()
void
writeTo(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:
newInstance
in classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getUnknownFields
public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFields
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in 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:
internalGetFieldAccessorTable
in classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getValueCase
public AttrValue.ValueCase getValueCase()
- Specified by:
getValueCase
in interfaceAttrValueOrBuilder
-
hasS
public boolean hasS()
"string"
bytes s = 2;
- Specified by:
hasS
in interfaceAttrValueOrBuilder
- Returns:
- Whether the s field is set.
-
getS
public org.nd4j.shade.protobuf.ByteString getS()
"string"
bytes s = 2;
- Specified by:
getS
in interfaceAttrValueOrBuilder
- Returns:
- The s.
-
hasI
public boolean hasI()
"int"
int64 i = 3;
- Specified by:
hasI
in interfaceAttrValueOrBuilder
- Returns:
- Whether the i field is set.
-
getI
public long getI()
"int"
int64 i = 3;
- Specified by:
getI
in interfaceAttrValueOrBuilder
- Returns:
- The i.
-
hasF
public boolean hasF()
"float"
float f = 4;
- Specified by:
hasF
in interfaceAttrValueOrBuilder
- Returns:
- Whether the f field is set.
-
getF
public float getF()
"float"
float f = 4;
- Specified by:
getF
in interfaceAttrValueOrBuilder
- Returns:
- The f.
-
hasB
public boolean hasB()
"bool"
bool b = 5;
- Specified by:
hasB
in interfaceAttrValueOrBuilder
- Returns:
- Whether the b field is set.
-
getB
public boolean getB()
"bool"
bool b = 5;
- Specified by:
getB
in interfaceAttrValueOrBuilder
- Returns:
- The b.
-
hasType
public boolean hasType()
"type"
.tensorflow.DataType type = 6;
- Specified by:
hasType
in interfaceAttrValueOrBuilder
- Returns:
- Whether the type field is set.
-
getTypeValue
public int getTypeValue()
"type"
.tensorflow.DataType type = 6;
- Specified by:
getTypeValue
in interfaceAttrValueOrBuilder
- Returns:
- The enum numeric value on the wire for type.
-
getType
public DataType getType()
"type"
.tensorflow.DataType type = 6;
- Specified by:
getType
in interfaceAttrValueOrBuilder
- Returns:
- The type.
-
hasShape
public boolean hasShape()
"shape"
.tensorflow.TensorShapeProto shape = 7;
- Specified by:
hasShape
in interfaceAttrValueOrBuilder
- Returns:
- Whether the shape field is set.
-
getShape
public TensorShapeProto getShape()
"shape"
.tensorflow.TensorShapeProto shape = 7;
- Specified by:
getShape
in interfaceAttrValueOrBuilder
- Returns:
- The shape.
-
getShapeOrBuilder
public TensorShapeProtoOrBuilder getShapeOrBuilder()
"shape"
.tensorflow.TensorShapeProto shape = 7;
- Specified by:
getShapeOrBuilder
in interfaceAttrValueOrBuilder
-
hasTensor
public boolean hasTensor()
"tensor"
.tensorflow.TensorProto tensor = 8;
- Specified by:
hasTensor
in interfaceAttrValueOrBuilder
- Returns:
- Whether the tensor field is set.
-
getTensor
public TensorProto getTensor()
"tensor"
.tensorflow.TensorProto tensor = 8;
- Specified by:
getTensor
in interfaceAttrValueOrBuilder
- Returns:
- The tensor.
-
getTensorOrBuilder
public TensorProtoOrBuilder getTensorOrBuilder()
"tensor"
.tensorflow.TensorProto tensor = 8;
- Specified by:
getTensorOrBuilder
in interfaceAttrValueOrBuilder
-
hasList
public boolean hasList()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
- Specified by:
hasList
in interfaceAttrValueOrBuilder
- Returns:
- Whether the list field is set.
-
getList
public AttrValue.ListValue getList()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
- Specified by:
getList
in interfaceAttrValueOrBuilder
- Returns:
- The list.
-
getListOrBuilder
public AttrValue.ListValueOrBuilder getListOrBuilder()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
- Specified by:
getListOrBuilder
in 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:
hasFunc
in 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:
getFunc
in 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:
getFuncOrBuilder
in 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:
hasPlaceholder
in 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:
getPlaceholder
in 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:
getPlaceholderBytes
in interfaceAttrValueOrBuilder
- Returns:
- The bytes for placeholder.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfaceorg.nd4j.shade.protobuf.MessageLite
- Overrides:
writeTo
in classorg.nd4j.shade.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfaceorg.nd4j.shade.protobuf.MessageLite
- Overrides:
getSerializedSize
in classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceorg.nd4j.shade.protobuf.Message
- Overrides:
equals
in classorg.nd4j.shade.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceorg.nd4j.shade.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfaceorg.nd4j.shade.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfaceorg.nd4j.shade.protobuf.Message
- Specified by:
toBuilder
in interfaceorg.nd4j.shade.protobuf.MessageLite
-
newBuilderForType
protected AttrValue.Builder newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfaceorg.nd4j.shade.protobuf.Message
- Specified by:
getParserForType
in interfaceorg.nd4j.shade.protobuf.MessageLite
- Overrides:
getParserForType
in classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AttrValue getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
-