Package org.tensorflow.framework
Class FunctionDef.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
org.tensorflow.framework.FunctionDef.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable,FunctionDefOrBuilder
- Enclosing class:
- FunctionDef
public static final class FunctionDef.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder> implements FunctionDefOrBuilder
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-
Method Summary
Modifier and Type Method Description FunctionDef.BuilderaddAllNodeDef(java.lang.Iterable<? extends NodeDef> values)By convention, "op" in node_def is resolved by consulting with a user-defined library first.FunctionDef.BuilderaddNodeDef(int index, NodeDef value)By convention, "op" in node_def is resolved by consulting with a user-defined library first.FunctionDef.BuilderaddNodeDef(int index, NodeDef.Builder builderForValue)By convention, "op" in node_def is resolved by consulting with a user-defined library first.FunctionDef.BuilderaddNodeDef(NodeDef value)By convention, "op" in node_def is resolved by consulting with a user-defined library first.FunctionDef.BuilderaddNodeDef(NodeDef.Builder builderForValue)By convention, "op" in node_def is resolved by consulting with a user-defined library first.NodeDef.BuilderaddNodeDefBuilder()By convention, "op" in node_def is resolved by consulting with a user-defined library first.NodeDef.BuilderaddNodeDefBuilder(int index)By convention, "op" in node_def is resolved by consulting with a user-defined library first.FunctionDef.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)FunctionDefbuild()FunctionDefbuildPartial()FunctionDef.Builderclear()FunctionDef.BuilderclearArgAttr()FunctionDef.BuilderclearAttr()FunctionDef.BuilderclearControlRet()FunctionDef.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)FunctionDef.BuilderclearNodeDef()By convention, "op" in node_def is resolved by consulting with a user-defined library first.FunctionDef.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)FunctionDef.BuilderclearResourceArgUniqueId()FunctionDef.BuilderclearRet()FunctionDef.BuilderclearSignature()The definition of the function's name, arguments, return values, attrs etc.FunctionDef.Builderclone()booleancontainsArgAttr(int key)map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;booleancontainsAttr(java.lang.String key)Attributes specific to this function definition.booleancontainsControlRet(java.lang.String key)A mapping from control output names from `signature` to node names in `node_def` which should be control outputs of this function.booleancontainsResourceArgUniqueId(int key)Unique IDs for each resource argument, used to track aliasing resources.booleancontainsRet(java.lang.String key)A mapping from the output arg names from `signature` to the outputs from `node_def` that should be returned by the function.java.util.Map<java.lang.Integer,FunctionDef.ArgAttrs>getArgAttr()Deprecated.intgetArgAttrCount()map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;java.util.Map<java.lang.Integer,FunctionDef.ArgAttrs>getArgAttrMap()map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;FunctionDef.ArgAttrsgetArgAttrOrDefault(int key, FunctionDef.ArgAttrs defaultValue)map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;FunctionDef.ArgAttrsgetArgAttrOrThrow(int key)map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;java.util.Map<java.lang.String,AttrValue>getAttr()Deprecated.intgetAttrCount()Attributes specific to this function definition.java.util.Map<java.lang.String,AttrValue>getAttrMap()Attributes specific to this function definition.AttrValuegetAttrOrDefault(java.lang.String key, AttrValue defaultValue)Attributes specific to this function definition.AttrValuegetAttrOrThrow(java.lang.String key)Attributes specific to this function definition.java.util.Map<java.lang.String,java.lang.String>getControlRet()Deprecated.intgetControlRetCount()A mapping from control output names from `signature` to node names in `node_def` which should be control outputs of this function.java.util.Map<java.lang.String,java.lang.String>getControlRetMap()A mapping from control output names from `signature` to node names in `node_def` which should be control outputs of this function.java.lang.StringgetControlRetOrDefault(java.lang.String key, java.lang.String defaultValue)A mapping from control output names from `signature` to node names in `node_def` which should be control outputs of this function.java.lang.StringgetControlRetOrThrow(java.lang.String key)A mapping from control output names from `signature` to node names in `node_def` which should be control outputs of this function.FunctionDefgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.util.Map<java.lang.Integer,FunctionDef.ArgAttrs>getMutableArgAttr()Deprecated.java.util.Map<java.lang.String,AttrValue>getMutableAttr()Deprecated.java.util.Map<java.lang.String,java.lang.String>getMutableControlRet()Deprecated.java.util.Map<java.lang.Integer,java.lang.Integer>getMutableResourceArgUniqueId()Deprecated.java.util.Map<java.lang.String,java.lang.String>getMutableRet()Deprecated.NodeDefgetNodeDef(int index)By convention, "op" in node_def is resolved by consulting with a user-defined library first.NodeDef.BuildergetNodeDefBuilder(int index)By convention, "op" in node_def is resolved by consulting with a user-defined library first.java.util.List<NodeDef.Builder>getNodeDefBuilderList()By convention, "op" in node_def is resolved by consulting with a user-defined library first.intgetNodeDefCount()By convention, "op" in node_def is resolved by consulting with a user-defined library first.java.util.List<NodeDef>getNodeDefList()By convention, "op" in node_def is resolved by consulting with a user-defined library first.NodeDefOrBuildergetNodeDefOrBuilder(int index)By convention, "op" in node_def is resolved by consulting with a user-defined library first.java.util.List<? extends NodeDefOrBuilder>getNodeDefOrBuilderList()By convention, "op" in node_def is resolved by consulting with a user-defined library first.java.util.Map<java.lang.Integer,java.lang.Integer>getResourceArgUniqueId()Deprecated.intgetResourceArgUniqueIdCount()Unique IDs for each resource argument, used to track aliasing resources.java.util.Map<java.lang.Integer,java.lang.Integer>getResourceArgUniqueIdMap()Unique IDs for each resource argument, used to track aliasing resources.intgetResourceArgUniqueIdOrDefault(int key, int defaultValue)Unique IDs for each resource argument, used to track aliasing resources.intgetResourceArgUniqueIdOrThrow(int key)Unique IDs for each resource argument, used to track aliasing resources.java.util.Map<java.lang.String,java.lang.String>getRet()Deprecated.intgetRetCount()A mapping from the output arg names from `signature` to the outputs from `node_def` that should be returned by the function.java.util.Map<java.lang.String,java.lang.String>getRetMap()A mapping from the output arg names from `signature` to the outputs from `node_def` that should be returned by the function.java.lang.StringgetRetOrDefault(java.lang.String key, java.lang.String defaultValue)A mapping from the output arg names from `signature` to the outputs from `node_def` that should be returned by the function.java.lang.StringgetRetOrThrow(java.lang.String key)A mapping from the output arg names from `signature` to the outputs from `node_def` that should be returned by the function.OpDefgetSignature()The definition of the function's name, arguments, return values, attrs etc.OpDef.BuildergetSignatureBuilder()The definition of the function's name, arguments, return values, attrs etc.OpDefOrBuildergetSignatureOrBuilder()The definition of the function's name, arguments, return values, attrs etc.booleanhasSignature()The definition of the function's name, arguments, return values, attrs etc.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()FunctionDef.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)FunctionDef.BuildermergeFrom(com.google.protobuf.Message other)FunctionDef.BuildermergeFrom(FunctionDef other)FunctionDef.BuildermergeSignature(OpDef value)The definition of the function's name, arguments, return values, attrs etc.FunctionDef.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)FunctionDef.BuilderputAllArgAttr(java.util.Map<java.lang.Integer,FunctionDef.ArgAttrs> values)map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;FunctionDef.BuilderputAllAttr(java.util.Map<java.lang.String,AttrValue> values)Attributes specific to this function definition.FunctionDef.BuilderputAllControlRet(java.util.Map<java.lang.String,java.lang.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.BuilderputAllResourceArgUniqueId(java.util.Map<java.lang.Integer,java.lang.Integer> values)Unique IDs for each resource argument, used to track aliasing resources.FunctionDef.BuilderputAllRet(java.util.Map<java.lang.String,java.lang.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.BuilderputArgAttr(int key, FunctionDef.ArgAttrs value)map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;FunctionDef.BuilderputAttr(java.lang.String key, AttrValue value)Attributes specific to this function definition.FunctionDef.BuilderputControlRet(java.lang.String key, java.lang.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.BuilderputResourceArgUniqueId(int key, int value)Unique IDs for each resource argument, used to track aliasing resources.FunctionDef.BuilderputRet(java.lang.String key, java.lang.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.BuilderremoveArgAttr(int key)map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;FunctionDef.BuilderremoveAttr(java.lang.String key)Attributes specific to this function definition.FunctionDef.BuilderremoveControlRet(java.lang.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.BuilderremoveNodeDef(int index)By convention, "op" in node_def is resolved by consulting with a user-defined library first.FunctionDef.BuilderremoveResourceArgUniqueId(int key)Unique IDs for each resource argument, used to track aliasing resources.FunctionDef.BuilderremoveRet(java.lang.String key)A mapping from the output arg names from `signature` to the outputs from `node_def` that should be returned by the function.FunctionDef.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)FunctionDef.BuildersetNodeDef(int index, NodeDef value)By convention, "op" in node_def is resolved by consulting with a user-defined library first.FunctionDef.BuildersetNodeDef(int index, NodeDef.Builder builderForValue)By convention, "op" in node_def is resolved by consulting with a user-defined library first.FunctionDef.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)FunctionDef.BuildersetSignature(OpDef value)The definition of the function's name, arguments, return values, attrs etc.FunctionDef.BuildersetSignature(OpDef.Builder builderForValue)The definition of the function's name, arguments, return values, attrs etc.FunctionDef.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
setField
public FunctionDef.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
setRepeatedField
public FunctionDef.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
addRepeatedField
public FunctionDef.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FunctionDef.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
mergeFrom
public FunctionDef.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FunctionDef.Builder>- Throws:
java.io.IOException
-
hasSignature
public boolean hasSignature()The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;- Specified by:
hasSignaturein interfaceFunctionDefOrBuilder- Returns:
- Whether the signature field is set.
-
getSignature
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;- Specified by:
getSignaturein interfaceFunctionDefOrBuilder- Returns:
- The signature.
-
setSignature
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1; -
setSignature
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1; -
mergeSignature
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1; -
clearSignature
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1; -
getSignatureBuilder
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1; -
getSignatureOrBuilder
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;- Specified by:
getSignatureOrBuilderin interfaceFunctionDefOrBuilder
-
getAttrCount
public int getAttrCount()Description copied from interface:FunctionDefOrBuilderAttributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;- Specified by:
getAttrCountin interfaceFunctionDefOrBuilder
-
containsAttr
public boolean containsAttr(java.lang.String key)Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;- Specified by:
containsAttrin interfaceFunctionDefOrBuilder
-
getAttr
Deprecated.UsegetAttrMap()instead.- Specified by:
getAttrin interfaceFunctionDefOrBuilder
-
getAttrMap
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;- Specified by:
getAttrMapin interfaceFunctionDefOrBuilder
-
getAttrOrDefault
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;- Specified by:
getAttrOrDefaultin interfaceFunctionDefOrBuilder
-
getAttrOrThrow
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;- Specified by:
getAttrOrThrowin interfaceFunctionDefOrBuilder
-
clearAttr
-
removeAttr
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5; -
getMutableAttr
Deprecated.Use alternate mutation accessors instead. -
putAttr
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5; -
putAllAttr
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5; -
getArgAttrCount
public int getArgAttrCount()Description copied from interface:FunctionDefOrBuildermap<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;- Specified by:
getArgAttrCountin interfaceFunctionDefOrBuilder
-
containsArgAttr
public boolean containsArgAttr(int key)map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;- Specified by:
containsArgAttrin interfaceFunctionDefOrBuilder
-
getArgAttr
Deprecated.UsegetArgAttrMap()instead.- Specified by:
getArgAttrin interfaceFunctionDefOrBuilder
-
getArgAttrMap
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;- Specified by:
getArgAttrMapin interfaceFunctionDefOrBuilder
-
getArgAttrOrDefault
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;- Specified by:
getArgAttrOrDefaultin interfaceFunctionDefOrBuilder
-
getArgAttrOrThrow
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;- Specified by:
getArgAttrOrThrowin interfaceFunctionDefOrBuilder
-
clearArgAttr
-
removeArgAttr
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7; -
getMutableArgAttr
Deprecated.Use alternate mutation accessors instead. -
putArgAttr
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7; -
putAllArgAttr
public FunctionDef.Builder putAllArgAttr(java.util.Map<java.lang.Integer,FunctionDef.ArgAttrs> values)map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7; -
getResourceArgUniqueIdCount
public int getResourceArgUniqueIdCount()Description copied from interface:FunctionDefOrBuilderUnique IDs for each resource argument, used to track aliasing resources. If Argument A and Argument B alias each other, then resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index]. If this field is empty, none of the arguments could alias; otherwise, every resource argument should have an entry in this field. When instantiated, the unique IDs will be attached to the _Arg nodes' "_resource_arg_unique_id" attribute.
map<uint32, uint32> resource_arg_unique_id = 8;- Specified by:
getResourceArgUniqueIdCountin interfaceFunctionDefOrBuilder
-
containsResourceArgUniqueId
public boolean containsResourceArgUniqueId(int key)Unique IDs for each resource argument, used to track aliasing resources. If Argument A and Argument B alias each other, then resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index]. If this field is empty, none of the arguments could alias; otherwise, every resource argument should have an entry in this field. When instantiated, the unique IDs will be attached to the _Arg nodes' "_resource_arg_unique_id" attribute.
map<uint32, uint32> resource_arg_unique_id = 8;- Specified by:
containsResourceArgUniqueIdin interfaceFunctionDefOrBuilder
-
getResourceArgUniqueId
@Deprecated public java.util.Map<java.lang.Integer,java.lang.Integer> getResourceArgUniqueId()Deprecated.UsegetResourceArgUniqueIdMap()instead.- Specified by:
getResourceArgUniqueIdin interfaceFunctionDefOrBuilder
-
getResourceArgUniqueIdMap
public java.util.Map<java.lang.Integer,java.lang.Integer> getResourceArgUniqueIdMap()Unique IDs for each resource argument, used to track aliasing resources. If Argument A and Argument B alias each other, then resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index]. If this field is empty, none of the arguments could alias; otherwise, every resource argument should have an entry in this field. When instantiated, the unique IDs will be attached to the _Arg nodes' "_resource_arg_unique_id" attribute.
map<uint32, uint32> resource_arg_unique_id = 8;- Specified by:
getResourceArgUniqueIdMapin interfaceFunctionDefOrBuilder
-
getResourceArgUniqueIdOrDefault
public int getResourceArgUniqueIdOrDefault(int key, int defaultValue)Unique IDs for each resource argument, used to track aliasing resources. If Argument A and Argument B alias each other, then resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index]. If this field is empty, none of the arguments could alias; otherwise, every resource argument should have an entry in this field. When instantiated, the unique IDs will be attached to the _Arg nodes' "_resource_arg_unique_id" attribute.
map<uint32, uint32> resource_arg_unique_id = 8;- Specified by:
getResourceArgUniqueIdOrDefaultin interfaceFunctionDefOrBuilder
-
getResourceArgUniqueIdOrThrow
public int getResourceArgUniqueIdOrThrow(int key)Unique IDs for each resource argument, used to track aliasing resources. If Argument A and Argument B alias each other, then resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index]. If this field is empty, none of the arguments could alias; otherwise, every resource argument should have an entry in this field. When instantiated, the unique IDs will be attached to the _Arg nodes' "_resource_arg_unique_id" attribute.
map<uint32, uint32> resource_arg_unique_id = 8;- Specified by:
getResourceArgUniqueIdOrThrowin interfaceFunctionDefOrBuilder
-
clearResourceArgUniqueId
-
removeResourceArgUniqueId
Unique IDs for each resource argument, used to track aliasing resources. If Argument A and Argument B alias each other, then resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index]. If this field is empty, none of the arguments could alias; otherwise, every resource argument should have an entry in this field. When instantiated, the unique IDs will be attached to the _Arg nodes' "_resource_arg_unique_id" attribute.
map<uint32, uint32> resource_arg_unique_id = 8; -
getMutableResourceArgUniqueId
@Deprecated public java.util.Map<java.lang.Integer,java.lang.Integer> getMutableResourceArgUniqueId()Deprecated.Use alternate mutation accessors instead. -
putResourceArgUniqueId
Unique IDs for each resource argument, used to track aliasing resources. If Argument A and Argument B alias each other, then resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index]. If this field is empty, none of the arguments could alias; otherwise, every resource argument should have an entry in this field. When instantiated, the unique IDs will be attached to the _Arg nodes' "_resource_arg_unique_id" attribute.
map<uint32, uint32> resource_arg_unique_id = 8; -
putAllResourceArgUniqueId
public FunctionDef.Builder putAllResourceArgUniqueId(java.util.Map<java.lang.Integer,java.lang.Integer> values)Unique IDs for each resource argument, used to track aliasing resources. If Argument A and Argument B alias each other, then resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index]. If this field is empty, none of the arguments could alias; otherwise, every resource argument should have an entry in this field. When instantiated, the unique IDs will be attached to the _Arg nodes' "_resource_arg_unique_id" attribute.
map<uint32, uint32> resource_arg_unique_id = 8; -
getNodeDefList
By convention, "op" in node_def is resolved by consulting with a user-defined library first. If not resolved, "func" is assumed to be a builtin op.
repeated .tensorflow.NodeDef node_def = 3;- Specified by:
getNodeDefListin interfaceFunctionDefOrBuilder
-
getNodeDefCount
public int getNodeDefCount()By convention, "op" in node_def is resolved by consulting with a user-defined library first. If not resolved, "func" is assumed to be a builtin op.
repeated .tensorflow.NodeDef node_def = 3;- Specified by:
getNodeDefCountin interfaceFunctionDefOrBuilder
-
getNodeDef
By convention, "op" in node_def is resolved by consulting with a user-defined library first. If not resolved, "func" is assumed to be a builtin op.
repeated .tensorflow.NodeDef node_def = 3;- Specified by:
getNodeDefin interfaceFunctionDefOrBuilder
-
setNodeDef
By convention, "op" in node_def is resolved by consulting with a user-defined library first. If not resolved, "func" is assumed to be a builtin op.
repeated .tensorflow.NodeDef node_def = 3; -
setNodeDef
By convention, "op" in node_def is resolved by consulting with a user-defined library first. If not resolved, "func" is assumed to be a builtin op.
repeated .tensorflow.NodeDef node_def = 3; -
addNodeDef
By convention, "op" in node_def is resolved by consulting with a user-defined library first. If not resolved, "func" is assumed to be a builtin op.
repeated .tensorflow.NodeDef node_def = 3; -
addNodeDef
By convention, "op" in node_def is resolved by consulting with a user-defined library first. If not resolved, "func" is assumed to be a builtin op.
repeated .tensorflow.NodeDef node_def = 3; -
addNodeDef
By convention, "op" in node_def is resolved by consulting with a user-defined library first. If not resolved, "func" is assumed to be a builtin op.
repeated .tensorflow.NodeDef node_def = 3; -
addNodeDef
By convention, "op" in node_def is resolved by consulting with a user-defined library first. If not resolved, "func" is assumed to be a builtin op.
repeated .tensorflow.NodeDef node_def = 3; -
addAllNodeDef
By convention, "op" in node_def is resolved by consulting with a user-defined library first. If not resolved, "func" is assumed to be a builtin op.
repeated .tensorflow.NodeDef node_def = 3; -
clearNodeDef
By convention, "op" in node_def is resolved by consulting with a user-defined library first. If not resolved, "func" is assumed to be a builtin op.
repeated .tensorflow.NodeDef node_def = 3; -
removeNodeDef
By convention, "op" in node_def is resolved by consulting with a user-defined library first. If not resolved, "func" is assumed to be a builtin op.
repeated .tensorflow.NodeDef node_def = 3; -
getNodeDefBuilder
By convention, "op" in node_def is resolved by consulting with a user-defined library first. If not resolved, "func" is assumed to be a builtin op.
repeated .tensorflow.NodeDef node_def = 3; -
getNodeDefOrBuilder
By convention, "op" in node_def is resolved by consulting with a user-defined library first. If not resolved, "func" is assumed to be a builtin op.
repeated .tensorflow.NodeDef node_def = 3;- Specified by:
getNodeDefOrBuilderin interfaceFunctionDefOrBuilder
-
getNodeDefOrBuilderList
By convention, "op" in node_def is resolved by consulting with a user-defined library first. If not resolved, "func" is assumed to be a builtin op.
repeated .tensorflow.NodeDef node_def = 3;- Specified by:
getNodeDefOrBuilderListin interfaceFunctionDefOrBuilder
-
addNodeDefBuilder
By convention, "op" in node_def is resolved by consulting with a user-defined library first. If not resolved, "func" is assumed to be a builtin op.
repeated .tensorflow.NodeDef node_def = 3; -
addNodeDefBuilder
By convention, "op" in node_def is resolved by consulting with a user-defined library first. If not resolved, "func" is assumed to be a builtin op.
repeated .tensorflow.NodeDef node_def = 3; -
getNodeDefBuilderList
By convention, "op" in node_def is resolved by consulting with a user-defined library first. If not resolved, "func" is assumed to be a builtin op.
repeated .tensorflow.NodeDef node_def = 3; -
getRetCount
public int getRetCount()Description copied from interface:FunctionDefOrBuilderA mapping from the output arg names from `signature` to the outputs from `node_def` that should be returned by the function.
map<string, string> ret = 4;- Specified by:
getRetCountin interfaceFunctionDefOrBuilder
-
containsRet
public boolean containsRet(java.lang.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<string, string> ret = 4;- Specified by:
containsRetin interfaceFunctionDefOrBuilder
-
getRet
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getRet()Deprecated.UsegetRetMap()instead.- Specified by:
getRetin interfaceFunctionDefOrBuilder
-
getRetMap
public java.util.Map<java.lang.String,java.lang.String> getRetMap()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> ret = 4;- Specified by:
getRetMapin interfaceFunctionDefOrBuilder
-
getRetOrDefault
public java.lang.String getRetOrDefault(java.lang.String key, java.lang.String defaultValue)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> ret = 4;- Specified by:
getRetOrDefaultin interfaceFunctionDefOrBuilder
-
getRetOrThrow
public java.lang.String getRetOrThrow(java.lang.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<string, string> ret = 4;- Specified by:
getRetOrThrowin interfaceFunctionDefOrBuilder
-
clearRet
-
removeRet
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> ret = 4; -
getMutableRet
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableRet()Deprecated.Use alternate mutation accessors instead. -
putRet
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> ret = 4; -
putAllRet
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> ret = 4; -
getControlRetCount
public int getControlRetCount()Description copied from interface:FunctionDefOrBuilderA mapping from control output names from `signature` to node names in `node_def` which should be control outputs of this function.
map<string, string> control_ret = 6;- Specified by:
getControlRetCountin interfaceFunctionDefOrBuilder
-
containsControlRet
public boolean containsControlRet(java.lang.String key)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> control_ret = 6;- Specified by:
containsControlRetin interfaceFunctionDefOrBuilder
-
getControlRet
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getControlRet()Deprecated.UsegetControlRetMap()instead.- Specified by:
getControlRetin interfaceFunctionDefOrBuilder
-
getControlRetMap
public java.util.Map<java.lang.String,java.lang.String> getControlRetMap()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> control_ret = 6;- Specified by:
getControlRetMapin interfaceFunctionDefOrBuilder
-
getControlRetOrDefault
public java.lang.String getControlRetOrDefault(java.lang.String key, java.lang.String defaultValue)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> control_ret = 6;- Specified by:
getControlRetOrDefaultin interfaceFunctionDefOrBuilder
-
getControlRetOrThrow
public java.lang.String getControlRetOrThrow(java.lang.String key)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> control_ret = 6;- Specified by:
getControlRetOrThrowin interfaceFunctionDefOrBuilder
-
clearControlRet
-
removeControlRet
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> control_ret = 6; -
getMutableControlRet
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableControlRet()Deprecated.Use alternate mutation accessors instead. -
putControlRet
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> control_ret = 6; -
putAllControlRet
public FunctionDef.Builder putAllControlRet(java.util.Map<java.lang.String,java.lang.String> values)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> control_ret = 6; -
setUnknownFields
public final FunctionDef.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
mergeUnknownFields
public final FunctionDef.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-