public static final class AttrValue.Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder> 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 | Method and Description |
---|---|
AttrValue.Builder |
addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AttrValue |
build() |
AttrValue |
buildPartial() |
AttrValue.Builder |
clear() |
AttrValue.Builder |
clearB()
"bool"
|
AttrValue.Builder |
clearF()
"float"
|
AttrValue.Builder |
clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) |
AttrValue.Builder |
clearFunc()
"func" represents a function.
|
AttrValue.Builder |
clearI()
"int"
|
AttrValue.Builder |
clearList()
any "list(...)"
|
AttrValue.Builder |
clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) |
AttrValue.Builder |
clearPlaceholder()
This is a placeholder only used in nodes defined inside a
function.
|
AttrValue.Builder |
clearS()
"string"
|
AttrValue.Builder |
clearShape()
"shape"
|
AttrValue.Builder |
clearTensor()
"tensor"
|
AttrValue.Builder |
clearType()
"type"
|
AttrValue.Builder |
clearValue() |
AttrValue.Builder |
clone() |
boolean |
getB()
"bool"
|
AttrValue |
getDefaultInstanceForType() |
static org.nd4j.shade.protobuf.Descriptors.Descriptor |
getDescriptor() |
org.nd4j.shade.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
float |
getF()
"float"
|
NameAttrList |
getFunc()
"func" represents a function.
|
NameAttrList.Builder |
getFuncBuilder()
"func" represents a function.
|
NameAttrListOrBuilder |
getFuncOrBuilder()
"func" represents a function.
|
long |
getI()
"int"
|
AttrValue.ListValue |
getList()
any "list(...)"
|
AttrValue.ListValue.Builder |
getListBuilder()
any "list(...)"
|
AttrValue.ListValueOrBuilder |
getListOrBuilder()
any "list(...)"
|
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"
|
TensorShapeProto |
getShape()
"shape"
|
TensorShapeProto.Builder |
getShapeBuilder()
"shape"
|
TensorShapeProtoOrBuilder |
getShapeOrBuilder()
"shape"
|
TensorProto |
getTensor()
"tensor"
|
TensorProto.Builder |
getTensorBuilder()
"tensor"
|
TensorProtoOrBuilder |
getTensorOrBuilder()
"tensor"
|
DataType |
getType()
"type"
|
int |
getTypeValue()
"type"
|
AttrValue.ValueCase |
getValueCase() |
boolean |
hasFunc()
"func" represents a function.
|
boolean |
hasList()
any "list(...)"
|
boolean |
hasShape()
"shape"
|
boolean |
hasTensor()
"tensor"
|
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AttrValue.Builder |
mergeFrom(AttrValue other) |
AttrValue.Builder |
mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
AttrValue.Builder |
mergeFrom(org.nd4j.shade.protobuf.Message other) |
AttrValue.Builder |
mergeFunc(NameAttrList value)
"func" represents a function.
|
AttrValue.Builder |
mergeList(AttrValue.ListValue value)
any "list(...)"
|
AttrValue.Builder |
mergeShape(TensorShapeProto value)
"shape"
|
AttrValue.Builder |
mergeTensor(TensorProto value)
"tensor"
|
AttrValue.Builder |
mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) |
AttrValue.Builder |
setB(boolean value)
"bool"
|
AttrValue.Builder |
setF(float value)
"float"
|
AttrValue.Builder |
setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AttrValue.Builder |
setFunc(NameAttrList.Builder builderForValue)
"func" represents a function.
|
AttrValue.Builder |
setFunc(NameAttrList value)
"func" represents a function.
|
AttrValue.Builder |
setI(long value)
"int"
|
AttrValue.Builder |
setList(AttrValue.ListValue.Builder builderForValue)
any "list(...)"
|
AttrValue.Builder |
setList(AttrValue.ListValue value)
any "list(...)"
|
AttrValue.Builder |
setPlaceholder(String value)
This is a placeholder only used in nodes defined inside a
function.
|
AttrValue.Builder |
setPlaceholderBytes(org.nd4j.shade.protobuf.ByteString value)
This is a placeholder only used in nodes defined inside a
function.
|
AttrValue.Builder |
setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AttrValue.Builder |
setS(org.nd4j.shade.protobuf.ByteString value)
"string"
|
AttrValue.Builder |
setShape(TensorShapeProto.Builder builderForValue)
"shape"
|
AttrValue.Builder |
setShape(TensorShapeProto value)
"shape"
|
AttrValue.Builder |
setTensor(TensorProto.Builder builderForValue)
"tensor"
|
AttrValue.Builder |
setTensor(TensorProto value)
"tensor"
|
AttrValue.Builder |
setType(DataType value)
"type"
|
AttrValue.Builder |
setTypeValue(int value)
"type"
|
AttrValue.Builder |
setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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.Builder<AttrValue.Builder>
public AttrValue.Builder clear()
clear
in interface org.nd4j.shade.protobuf.Message.Builder
clear
in interface org.nd4j.shade.protobuf.MessageLite.Builder
clear
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface org.nd4j.shade.protobuf.Message.Builder
getDescriptorForType
in interface org.nd4j.shade.protobuf.MessageOrBuilder
getDescriptorForType
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
public AttrValue getDefaultInstanceForType()
getDefaultInstanceForType
in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface org.nd4j.shade.protobuf.MessageOrBuilder
public AttrValue build()
build
in interface org.nd4j.shade.protobuf.Message.Builder
build
in interface org.nd4j.shade.protobuf.MessageLite.Builder
public AttrValue buildPartial()
buildPartial
in interface org.nd4j.shade.protobuf.Message.Builder
buildPartial
in interface org.nd4j.shade.protobuf.MessageLite.Builder
public AttrValue.Builder clone()
clone
in interface org.nd4j.shade.protobuf.Message.Builder
clone
in interface org.nd4j.shade.protobuf.MessageLite.Builder
clone
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
public AttrValue.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface org.nd4j.shade.protobuf.Message.Builder
setField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
public AttrValue.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface org.nd4j.shade.protobuf.Message.Builder
clearField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
public AttrValue.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface org.nd4j.shade.protobuf.Message.Builder
clearOneof
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
public AttrValue.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface org.nd4j.shade.protobuf.Message.Builder
setRepeatedField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
public AttrValue.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface org.nd4j.shade.protobuf.Message.Builder
addRepeatedField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
public AttrValue.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
mergeFrom
in interface org.nd4j.shade.protobuf.Message.Builder
mergeFrom
in class org.nd4j.shade.protobuf.AbstractMessage.Builder<AttrValue.Builder>
public AttrValue.Builder mergeFrom(AttrValue other)
public final boolean isInitialized()
isInitialized
in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
isInitialized
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
public AttrValue.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface org.nd4j.shade.protobuf.Message.Builder
mergeFrom
in interface org.nd4j.shade.protobuf.MessageLite.Builder
mergeFrom
in class org.nd4j.shade.protobuf.AbstractMessage.Builder<AttrValue.Builder>
IOException
public AttrValue.ValueCase getValueCase()
getValueCase
in interface AttrValueOrBuilder
public AttrValue.Builder clearValue()
public org.nd4j.shade.protobuf.ByteString getS()
"string"
bytes s = 2;
getS
in interface AttrValueOrBuilder
public AttrValue.Builder setS(org.nd4j.shade.protobuf.ByteString value)
"string"
bytes s = 2;
public AttrValue.Builder clearS()
"string"
bytes s = 2;
public long getI()
"int"
int64 i = 3;
getI
in interface AttrValueOrBuilder
public AttrValue.Builder setI(long value)
"int"
int64 i = 3;
public AttrValue.Builder clearI()
"int"
int64 i = 3;
public float getF()
"float"
float f = 4;
getF
in interface AttrValueOrBuilder
public AttrValue.Builder setF(float value)
"float"
float f = 4;
public AttrValue.Builder clearF()
"float"
float f = 4;
public boolean getB()
"bool"
bool b = 5;
getB
in interface AttrValueOrBuilder
public AttrValue.Builder setB(boolean value)
"bool"
bool b = 5;
public AttrValue.Builder clearB()
"bool"
bool b = 5;
public int getTypeValue()
"type"
.tensorflow.DataType type = 6;
getTypeValue
in interface AttrValueOrBuilder
public AttrValue.Builder setTypeValue(int value)
"type"
.tensorflow.DataType type = 6;
public DataType getType()
"type"
.tensorflow.DataType type = 6;
getType
in interface AttrValueOrBuilder
public AttrValue.Builder setType(DataType value)
"type"
.tensorflow.DataType type = 6;
public AttrValue.Builder clearType()
"type"
.tensorflow.DataType type = 6;
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 AttrValue.Builder setShape(TensorShapeProto value)
"shape"
.tensorflow.TensorShapeProto shape = 7;
public AttrValue.Builder setShape(TensorShapeProto.Builder builderForValue)
"shape"
.tensorflow.TensorShapeProto shape = 7;
public AttrValue.Builder mergeShape(TensorShapeProto value)
"shape"
.tensorflow.TensorShapeProto shape = 7;
public AttrValue.Builder clearShape()
"shape"
.tensorflow.TensorShapeProto shape = 7;
public TensorShapeProto.Builder getShapeBuilder()
"shape"
.tensorflow.TensorShapeProto shape = 7;
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 AttrValue.Builder setTensor(TensorProto value)
"tensor"
.tensorflow.TensorProto tensor = 8;
public AttrValue.Builder setTensor(TensorProto.Builder builderForValue)
"tensor"
.tensorflow.TensorProto tensor = 8;
public AttrValue.Builder mergeTensor(TensorProto value)
"tensor"
.tensorflow.TensorProto tensor = 8;
public AttrValue.Builder clearTensor()
"tensor"
.tensorflow.TensorProto tensor = 8;
public TensorProto.Builder getTensorBuilder()
"tensor"
.tensorflow.TensorProto tensor = 8;
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.Builder setList(AttrValue.ListValue value)
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
public AttrValue.Builder setList(AttrValue.ListValue.Builder builderForValue)
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
public AttrValue.Builder mergeList(AttrValue.ListValue value)
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
public AttrValue.Builder clearList()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
public AttrValue.ListValue.Builder getListBuilder()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
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 AttrValue.Builder setFunc(NameAttrList value)
"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;
public AttrValue.Builder setFunc(NameAttrList.Builder builderForValue)
"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;
public AttrValue.Builder mergeFunc(NameAttrList value)
"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;
public AttrValue.Builder clearFunc()
"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;
public NameAttrList.Builder getFuncBuilder()
"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;
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 AttrValue.Builder setPlaceholder(String value)
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;
public AttrValue.Builder clearPlaceholder()
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;
public AttrValue.Builder setPlaceholderBytes(org.nd4j.shade.protobuf.ByteString value)
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;
public final AttrValue.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface org.nd4j.shade.protobuf.Message.Builder
setUnknownFields
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
public final AttrValue.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface org.nd4j.shade.protobuf.Message.Builder
mergeUnknownFields
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
Copyright © 2020. All rights reserved.