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 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 |
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
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(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 |
hasFunc()
"func" represents a function.
|
int |
hashCode() |
boolean |
hasList()
any "list(...)"
|
boolean |
hasShape()
"shape"
|
boolean |
hasTensor()
"tensor"
|
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(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 AttrValue |
parseFrom(InputStream input) |
static AttrValue |
parseFrom(InputStream 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) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, 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
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, getSerializedSizeInternal, isInitializedInternal, makeImmutableInternal, mergeFromInternal, toByteArray, toByteString, writeDelimitedTo, writeTo, writeToInternal
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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 Object newInstance(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class org.nd4j.shade.protobuf.GeneratedMessageV3
public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface org.nd4j.shade.protobuf.MessageOrBuilder
getUnknownFields
in class org.nd4j.shade.protobuf.GeneratedMessageV3
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class org.nd4j.shade.protobuf.GeneratedMessageV3
public AttrValue.ValueCase getValueCase()
getValueCase
in interface AttrValueOrBuilder
public org.nd4j.shade.protobuf.ByteString getS()
"string"
bytes s = 2;
getS
in interface AttrValueOrBuilder
public long getI()
"int"
int64 i = 3;
getI
in interface AttrValueOrBuilder
public float getF()
"float"
float f = 4;
getF
in interface AttrValueOrBuilder
public boolean getB()
"bool"
bool b = 5;
getB
in interface AttrValueOrBuilder
public int getTypeValue()
"type"
.tensorflow.DataType type = 6;
getTypeValue
in interface AttrValueOrBuilder
public DataType getType()
"type"
.tensorflow.DataType type = 6;
getType
in interface AttrValueOrBuilder
public boolean hasShape()
"shape"
.tensorflow.TensorShapeProto shape = 7;
hasShape
in interface AttrValueOrBuilder
public TensorShapeProto getShape()
"shape"
.tensorflow.TensorShapeProto shape = 7;
getShape
in interface AttrValueOrBuilder
public TensorShapeProtoOrBuilder getShapeOrBuilder()
"shape"
.tensorflow.TensorShapeProto shape = 7;
getShapeOrBuilder
in interface AttrValueOrBuilder
public boolean hasTensor()
"tensor"
.tensorflow.TensorProto tensor = 8;
hasTensor
in interface AttrValueOrBuilder
public TensorProto getTensor()
"tensor"
.tensorflow.TensorProto tensor = 8;
getTensor
in interface AttrValueOrBuilder
public TensorProtoOrBuilder getTensorOrBuilder()
"tensor"
.tensorflow.TensorProto tensor = 8;
getTensorOrBuilder
in interface AttrValueOrBuilder
public boolean hasList()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
hasList
in interface AttrValueOrBuilder
public AttrValue.ListValue getList()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
getList
in interface AttrValueOrBuilder
public AttrValue.ListValueOrBuilder getListOrBuilder()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
getListOrBuilder
in interface AttrValueOrBuilder
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;
hasFunc
in interface AttrValueOrBuilder
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;
getFunc
in interface AttrValueOrBuilder
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;
getFuncOrBuilder
in interface AttrValueOrBuilder
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;
getPlaceholder
in interface AttrValueOrBuilder
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;
getPlaceholderBytes
in interface AttrValueOrBuilder
public final boolean isInitialized()
isInitialized
in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
isInitialized
in class org.nd4j.shade.protobuf.GeneratedMessageV3
public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface org.nd4j.shade.protobuf.MessageLite
writeTo
in class org.nd4j.shade.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface org.nd4j.shade.protobuf.MessageLite
getSerializedSize
in class org.nd4j.shade.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface org.nd4j.shade.protobuf.Message
equals
in class org.nd4j.shade.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface org.nd4j.shade.protobuf.Message
hashCode
in class org.nd4j.shade.protobuf.AbstractMessage
public static AttrValue parseFrom(ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferException
public static AttrValue parseFrom(ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferException
public static AttrValue parseFrom(org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferException
public static AttrValue parseFrom(org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferException
public static AttrValue parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferException
public static AttrValue parseFrom(byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferException
public static AttrValue parseFrom(InputStream input) throws IOException
IOException
public static AttrValue parseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static AttrValue parseDelimitedFrom(InputStream input) throws IOException
IOException
public static AttrValue parseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static AttrValue parseFrom(org.nd4j.shade.protobuf.CodedInputStream input) throws IOException
IOException
public static AttrValue parseFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public AttrValue.Builder newBuilderForType()
newBuilderForType
in interface org.nd4j.shade.protobuf.Message
newBuilderForType
in interface org.nd4j.shade.protobuf.MessageLite
public static AttrValue.Builder newBuilder()
public static AttrValue.Builder newBuilder(AttrValue prototype)
public AttrValue.Builder toBuilder()
toBuilder
in interface org.nd4j.shade.protobuf.Message
toBuilder
in interface org.nd4j.shade.protobuf.MessageLite
protected AttrValue.Builder newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class org.nd4j.shade.protobuf.GeneratedMessageV3
public static AttrValue getDefaultInstance()
public static org.nd4j.shade.protobuf.Parser<AttrValue> parser()
public org.nd4j.shade.protobuf.Parser<AttrValue> getParserForType()
getParserForType
in interface org.nd4j.shade.protobuf.Message
getParserForType
in interface org.nd4j.shade.protobuf.MessageLite
getParserForType
in class org.nd4j.shade.protobuf.GeneratedMessageV3
public AttrValue getDefaultInstanceForType()
getDefaultInstanceForType
in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface org.nd4j.shade.protobuf.MessageOrBuilder
Copyright © 2019. All rights reserved.