FunctionDef.Builder

public static final class FunctionDef.Builder

 A function can be instantiated when the runtime can bind every attr
 with a value. When a GraphDef has a call to a function, it must
 have binding for every attr defined in the signature.
 TODO(zhifengc):
   * device spec, etc.
 
Protobuf type tensorflow.FunctionDef

Public Methods

FunctionDef.Builder
addAllNodeDef (Iterable<? extends NodeDef > values)
 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first.
FunctionDef.Builder
addNodeDef ( NodeDef value)
 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first.
FunctionDef.Builder
addNodeDef ( NodeDef.Builder builderForValue)
 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first.
FunctionDef.Builder
addNodeDef (int index, NodeDef.Builder builderForValue)
 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first.
FunctionDef.Builder
addNodeDef (int index, NodeDef value)
 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first.
NodeDef.Builder
addNodeDefBuilder ()
 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first.
NodeDef.Builder
addNodeDefBuilder (int index)
 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first.
FunctionDef.Builder
addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
FunctionDef
FunctionDef
FunctionDef.Builder
FunctionDef.Builder
FunctionDef.Builder
FunctionDef.Builder
FunctionDef.Builder
clearField (com.google.protobuf.Descriptors.FieldDescriptor field)
FunctionDef.Builder
clearNodeDef ()
 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first.
FunctionDef.Builder
clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
FunctionDef.Builder
FunctionDef.Builder
FunctionDef.Builder
clearSignature ()
 The definition of the function's name, arguments, return values,
 attrs etc.
FunctionDef.Builder
boolean
containsArgAttr (int key)
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
boolean
containsAttr (String key)
 Attributes specific to this function definition.
boolean
containsControlRet (String key)
 A mapping from control output names from `signature` to node names in
 `node_def` which should be control outputs of this function.
boolean
containsResourceArgUniqueId (int key)
 Unique IDs for each resource argument, used to track aliasing resources.
boolean
containsRet (String key)
 A mapping from the output arg names from `signature` to the
 outputs from `node_def` that should be returned by the function.
Map<Integer, FunctionDef.ArgAttrs >
int
getArgAttrCount ()
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
Map<Integer, FunctionDef.ArgAttrs >
getArgAttrMap ()
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
FunctionDef.ArgAttrs
getArgAttrOrDefault (int key, FunctionDef.ArgAttrs defaultValue)
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
FunctionDef.ArgAttrs
getArgAttrOrThrow (int key)
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
Map<String, AttrValue >
int
getAttrCount ()
 Attributes specific to this function definition.
Map<String, AttrValue >
getAttrMap ()
 Attributes specific to this function definition.
AttrValue
getAttrOrDefault (String key, AttrValue defaultValue)
 Attributes specific to this function definition.
AttrValue
getAttrOrThrow (String key)
 Attributes specific to this function definition.
Map<String, String>
int
getControlRetCount ()
 A mapping from control output names from `signature` to node names in
 `node_def` which should be control outputs of this function.
Map<String, String>
getControlRetMap ()
 A mapping from control output names from `signature` to node names in
 `node_def` which should be control outputs of this function.
String
getControlRetOrDefault (String key, String defaultValue)
 A mapping from control output names from `signature` to node names in
 `node_def` which should be control outputs of this function.
String
getControlRetOrThrow (String key)
 A mapping from control output names from `signature` to node names in
 `node_def` which should be control outputs of this function.
FunctionDef
final static com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Map<Integer, FunctionDef.ArgAttrs >
getMutableArgAttr ()
Use alternate mutation accessors instead.
Map<String, AttrValue >
getMutableAttr ()
Use alternate mutation accessors instead.
Map<String, String>
getMutableControlRet ()
Use alternate mutation accessors instead.
Map<Integer, Integer>
getMutableResourceArgUniqueId ()
Use alternate mutation accessors instead.
Map<String, String>
getMutableRet ()
Use alternate mutation accessors instead.
NodeDef
getNodeDef (int index)
 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first.
NodeDef.Builder
getNodeDefBuilder (int index)
 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first.
List< NodeDef.Builder >
getNodeDefBuilderList ()
 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first.
int
getNodeDefCount ()
 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first.
List< NodeDef >
getNodeDefList ()
 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first.
NodeDefOrBuilder
getNodeDefOrBuilder (int index)
 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first.
List<? extends NodeDefOrBuilder >
getNodeDefOrBuilderList ()
 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first.
Map<Integer, Integer>
int
getResourceArgUniqueIdCount ()
 Unique IDs for each resource argument, used to track aliasing resources.
Map<Integer, Integer>
getResourceArgUniqueIdMap ()
 Unique IDs for each resource argument, used to track aliasing resources.
int
getResourceArgUniqueIdOrDefault (int key, int defaultValue)
 Unique IDs for each resource argument, used to track aliasing resources.
int
getResourceArgUniqueIdOrThrow (int key)
 Unique IDs for each resource argument, used to track aliasing resources.
Map<String, String>
getRet ()
Use getRetMap() instead.
int
getRetCount ()
 A mapping from the output arg names from `signature` to the
 outputs from `node_def` that should be returned by the function.
Map<String, String>
getRetMap ()
 A mapping from the output arg names from `signature` to the
 outputs from `node_def` that should be returned by the function.
String
getRetOrDefault (String key, String defaultValue)
 A mapping from the output arg names from `signature` to the
 outputs from `node_def` that should be returned by the function.
String
getRetOrThrow (String key)
 A mapping from the output arg names from `signature` to the
 outputs from `node_def` that should be returned by the function.
OpDef
getSignature ()
 The definition of the function's name, arguments, return values,
 attrs etc.
OpDef.Builder
getSignatureBuilder ()
 The definition of the function's name, arguments, return values,
 attrs etc.
OpDefOrBuilder
getSignatureOrBuilder ()
 The definition of the function's name, arguments, return values,
 attrs etc.
boolean
hasSignature ()
 The definition of the function's name, arguments, return values,
 attrs etc.
final boolean
FunctionDef.Builder
mergeFrom (com.google.protobuf.Message other)
FunctionDef.Builder
mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
FunctionDef.Builder
mergeSignature ( OpDef value)
 The definition of the function's name, arguments, return values,
 attrs etc.
final FunctionDef.Builder
mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
FunctionDef.Builder
putAllArgAttr (Map<Integer, FunctionDef.ArgAttrs > values)
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
FunctionDef.Builder
putAllAttr (Map<String, AttrValue > values)
 Attributes specific to this function definition.
FunctionDef.Builder
putAllControlRet (Map<String, String> values)
 A mapping from control output names from `signature` to node names in
 `node_def` which should be control outputs of this function.
FunctionDef.Builder
putAllResourceArgUniqueId (Map<Integer, Integer> values)
 Unique IDs for each resource argument, used to track aliasing resources.
FunctionDef.Builder
putAllRet (Map<String, String> values)
 A mapping from the output arg names from `signature` to the
 outputs from `node_def` that should be returned by the function.
FunctionDef.Builder
putArgAttr (int key, FunctionDef.ArgAttrs value)
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
FunctionDef.Builder
putAttr (String key, AttrValue value)
 Attributes specific to this function definition.
FunctionDef.Builder
putControlRet (String key, String value)
 A mapping from control output names from `signature` to node names in
 `node_def` which should be control outputs of this function.
FunctionDef.Builder
putResourceArgUniqueId (int key, int value)
 Unique IDs for each resource argument, used to track aliasing resources.
FunctionDef.Builder
putRet (String key, String value)
 A mapping from the output arg names from `signature` to the
 outputs from `node_def` that should be returned by the function.
FunctionDef.Builder
removeArgAttr (int key)
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
FunctionDef.Builder
removeAttr (String key)
 Attributes specific to this function definition.
FunctionDef.Builder
removeControlRet (String key)
 A mapping from control output names from `signature` to node names in
 `node_def` which should be control outputs of this function.
FunctionDef.Builder
removeNodeDef (int index)
 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first.