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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic 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.Builderclear in interface org.nd4j.shade.protobuf.MessageLite.Builderclear 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.BuildergetDescriptorForType in interface org.nd4j.shade.protobuf.MessageOrBuildergetDescriptorForType in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>public AttrValue getDefaultInstanceForType()
getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilderpublic AttrValue build()
build in interface org.nd4j.shade.protobuf.Message.Builderbuild in interface org.nd4j.shade.protobuf.MessageLite.Builderpublic AttrValue buildPartial()
buildPartial in interface org.nd4j.shade.protobuf.Message.BuilderbuildPartial in interface org.nd4j.shade.protobuf.MessageLite.Builderpublic AttrValue.Builder clone()
clone in interface org.nd4j.shade.protobuf.Message.Builderclone in interface org.nd4j.shade.protobuf.MessageLite.Builderclone 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.BuildersetField 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.BuilderclearField 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.BuilderclearOneof 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.BuildersetRepeatedField 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.BuilderaddRepeatedField 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.BuildermergeFrom 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.MessageLiteOrBuilderisInitialized 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.BuildermergeFrom in interface org.nd4j.shade.protobuf.MessageLite.BuildermergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<AttrValue.Builder>IOExceptionpublic AttrValue.ValueCase getValueCase()
getValueCase in interface AttrValueOrBuilderpublic AttrValue.Builder clearValue()
public org.nd4j.shade.protobuf.ByteString getS()
"string"
bytes s = 2;getS in interface AttrValueOrBuilderpublic 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 AttrValueOrBuilderpublic 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 AttrValueOrBuilderpublic 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 AttrValueOrBuilderpublic 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 AttrValueOrBuilderpublic AttrValue.Builder setTypeValue(int value)
"type"
.tensorflow.DataType type = 6;public DataType getType()
"type"
.tensorflow.DataType type = 6;getType in interface AttrValueOrBuilderpublic 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 AttrValueOrBuilderpublic TensorShapeProto getShape()
"shape"
.tensorflow.TensorShapeProto shape = 7;getShape in interface AttrValueOrBuilderpublic 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 AttrValueOrBuilderpublic boolean hasTensor()
"tensor"
.tensorflow.TensorProto tensor = 8;hasTensor in interface AttrValueOrBuilderpublic TensorProto getTensor()
"tensor"
.tensorflow.TensorProto tensor = 8;getTensor in interface AttrValueOrBuilderpublic 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 AttrValueOrBuilderpublic boolean hasList()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;hasList in interface AttrValueOrBuilderpublic AttrValue.ListValue getList()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;getList in interface AttrValueOrBuilderpublic 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 AttrValueOrBuilderpublic 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 AttrValueOrBuilderpublic 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 AttrValueOrBuilderpublic 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 AttrValueOrBuilderpublic 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 AttrValueOrBuilderpublic 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 AttrValueOrBuilderpublic 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.BuildersetUnknownFields 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.BuildermergeUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>Copyright © 2021. All rights reserved.