public static final class
AttrValue.Builder
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.
tensorflow.AttrValue
Public Methods
AttrValue.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
AttrValue |
build()
|
AttrValue | |
AttrValue.Builder |
clear()
|
AttrValue.Builder |
clearB()
"bool" bool b = 5;
|
AttrValue.Builder |
clearF()
"float" float f = 4;
|
AttrValue.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
|
AttrValue.Builder |
clearFunc()
"func" represents a function. |
AttrValue.Builder |
clearI()
"int" int64 i = 3;
|
AttrValue.Builder |
clearList()
any "list(...)" .tensorflow.AttrValue.ListValue list = 1;
|
AttrValue.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
|
AttrValue.Builder |
clearPlaceholder()
This is a placeholder only used in nodes defined inside a function. |
AttrValue.Builder |
clearS()
"string" bytes s = 2;
|
AttrValue.Builder |
clearShape()
"shape" .tensorflow.TensorShapeProto shape = 7;
|
AttrValue.Builder |
clearTensor()
"tensor" .tensorflow.TensorProto tensor = 8;
|
AttrValue.Builder |
clearType()
"type" .tensorflow.DataType type = 6;
|
AttrValue.Builder | |
AttrValue.Builder |
clone()
|
boolean |
getB()
"bool" bool b = 5;
|
AttrValue | |
final static com.google.protobuf.Descriptors.Descriptor | |
com.google.protobuf.Descriptors.Descriptor | |
float |
getF()
"float" float f = 4;
|
NameAttrList |
getFunc()
"func" represents a function. |
NameAttrList.Builder |
getFuncBuilder()
"func" represents a function. |
NameAttrListOrBuilder |
getFuncOrBuilder()
"func" represents a function. |
long |
getI()
"int" int64 i = 3;
|
AttrValue.ListValue |
getList()
any "list(...)" .tensorflow.AttrValue.ListValue list = 1;
|
AttrValue.ListValue.Builder |
getListBuilder()
any "list(...)" .tensorflow.AttrValue.ListValue list = 1;
|
AttrValue.ListValueOrBuilder |
getListOrBuilder()
any "list(...)" .tensorflow.AttrValue.ListValue list = 1;
|
String |
getPlaceholder()
This is a placeholder only used in nodes defined inside a function. |
com.google.protobuf.ByteString |
getPlaceholderBytes()
This is a placeholder only used in nodes defined inside a function. |
com.google.protobuf.ByteString |
getS()
"string" bytes s = 2;
|
TensorShapeProto |
getShape()
"shape" .tensorflow.TensorShapeProto shape = 7;
|
TensorShapeProto.Builder |
getShapeBuilder()
"shape" .tensorflow.TensorShapeProto shape = 7;
|
TensorShapeProtoOrBuilder |
getShapeOrBuilder()
"shape" .tensorflow.TensorShapeProto shape = 7;
|
TensorProto |
getTensor()
"tensor" .tensorflow.TensorProto tensor = 8;
|
TensorProto.Builder |
getTensorBuilder()
"tensor" .tensorflow.TensorProto tensor = 8;
|
TensorProtoOrBuilder |
getTensorOrBuilder()
"tensor" .tensorflow.TensorProto tensor = 8;
|
DataType |
getType()
"type" .tensorflow.DataType type = 6;
|
int |
getTypeValue()
"type" .tensorflow.DataType type = 6;
|
AttrValue.ValueCase | |
boolean |
hasFunc()
"func" represents a function. |
boolean |
hasList()
any "list(...)" .tensorflow.AttrValue.ListValue list = 1;
|
boolean |
hasShape()
"shape" .tensorflow.TensorShapeProto shape = 7;
|
boolean |
hasTensor()
"tensor" .tensorflow.TensorProto tensor = 8;
|
final boolean | |
AttrValue.Builder |
mergeFrom(com.google.protobuf.Message other)
|
AttrValue.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
AttrValue.Builder | |
AttrValue.Builder | |
AttrValue.Builder | |
AttrValue.Builder | |
final AttrValue.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
AttrValue.Builder |
setB(boolean value)
"bool" bool b = 5;
|
AttrValue.Builder |
setF(float value)
"float" float f = 4;
|
AttrValue.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
AttrValue.Builder | |
AttrValue.Builder | |
AttrValue.Builder |
setI(long value)
"int" int64 i = 3;
|
AttrValue.Builder | |
AttrValue.Builder |
setList(AttrValue.ListValue.Builder builderForValue)
any "list(...)" .tensorflow.AttrValue.ListValue list = 1;
|
AttrValue.Builder |
setPlaceholder(String value)
This is a placeholder only used in nodes defined inside a function. |
AttrValue.Builder |
setPlaceholderBytes(com.google.protobuf.ByteString value)
This is a placeholder only used in nodes defined inside a function. |
AttrValue.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
|
AttrValue.Builder |
setS(com.google.protobuf.ByteString value)
"string" bytes s = 2;
|
AttrValue.Builder | |
AttrValue.Builder | |
AttrValue.Builder | |
AttrValue.Builder | |
AttrValue.Builder | |
AttrValue.Builder |
setTypeValue(int value)
"type" .tensorflow.DataType type = 6;
|
final AttrValue.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
Inherited Methods
Public Methods
public AttrValue.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
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 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 boolean getB ()
"bool"
bool b = 5;
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
public float getF ()
"float"
float f = 4;
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;
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;
public long getI ()
"int"
int64 i = 3;
public AttrValue.ListValue.Builder getListBuilder ()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
public AttrValue.ListValueOrBuilder getListOrBuilder ()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
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;
public com.google.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;
public com.google.protobuf.ByteString getS ()
"string"
bytes s = 2;
public TensorShapeProtoOrBuilder getShapeOrBuilder ()
"shape"
.tensorflow.TensorShapeProto shape = 7;
public int getTypeValue ()
"type"
.tensorflow.DataType type = 6;
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;
public boolean hasList ()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
public boolean hasShape ()
"shape"
.tensorflow.TensorShapeProto shape = 7;
public boolean hasTensor ()
"tensor"
.tensorflow.TensorProto tensor = 8;
public final boolean isInitialized ()
public AttrValue.Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
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 mergeList (AttrValue.ListValue value)
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
public AttrValue.Builder mergeShape (TensorShapeProto value)
"shape"
.tensorflow.TensorShapeProto shape = 7;
public AttrValue.Builder mergeTensor (TensorProto value)
"tensor"
.tensorflow.TensorProto tensor = 8;
public final AttrValue.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
public AttrValue.Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
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 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 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 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 setPlaceholderBytes (com.google.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 AttrValue.Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
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 setTensor (TensorProto.Builder builderForValue)
"tensor"
.tensorflow.TensorProto tensor = 8;