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 typetensorflow.FunctionDef
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 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.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.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.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.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.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.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.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, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
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
public 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
public FunctionDef getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public FunctionDef build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public FunctionDef buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public FunctionDef.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
public FunctionDef.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
clearOneof
public FunctionDef.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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
public FunctionDef.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FunctionDef.Builder>
-
mergeFrom
public FunctionDef.Builder mergeFrom(FunctionDef other)
-
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
public OpDef 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
public FunctionDef.Builder setSignature(OpDef value)
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;
-
setSignature
public FunctionDef.Builder setSignature(OpDef.Builder builderForValue)
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;
-
mergeSignature
public FunctionDef.Builder mergeSignature(OpDef value)
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;
-
clearSignature
public FunctionDef.Builder clearSignature()
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;
-
getSignatureBuilder
public OpDef.Builder getSignatureBuilder()
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;
-
getSignatureOrBuilder
public OpDefOrBuilder 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 public java.util.Map<java.lang.String,AttrValue> getAttr()
Deprecated.UsegetAttrMap()instead.- Specified by:
getAttrin interfaceFunctionDefOrBuilder
-
getAttrMap
public java.util.Map<java.lang.String,AttrValue> getAttrMap()
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;- Specified by:
getAttrMapin interfaceFunctionDefOrBuilder
-
getAttrOrDefault
public AttrValue getAttrOrDefault(java.lang.String key, AttrValue defaultValue)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;- Specified by:
getAttrOrDefaultin interfaceFunctionDefOrBuilder
-
getAttrOrThrow
public AttrValue getAttrOrThrow(java.lang.String key)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;- Specified by:
getAttrOrThrowin interfaceFunctionDefOrBuilder
-
clearAttr
public FunctionDef.Builder clearAttr()
-
removeAttr
public FunctionDef.Builder removeAttr(java.lang.String key)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;
-
getMutableAttr
@Deprecated public java.util.Map<java.lang.String,AttrValue> getMutableAttr()
Deprecated.Use alternate mutation accessors instead.
-
putAttr
public FunctionDef.Builder putAttr(java.lang.String key, AttrValue value)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;
-
putAllAttr
public FunctionDef.Builder putAllAttr(java.util.Map<java.lang.String,AttrValue> values)
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 public java.util.Map<java.lang.Integer,FunctionDef.ArgAttrs> getArgAttr()
Deprecated.UsegetArgAttrMap()instead.- Specified by:
getArgAttrin interfaceFunctionDefOrBuilder
-
getArgAttrMap
public java.util.Map<java.lang.Integer,FunctionDef.ArgAttrs> getArgAttrMap()
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;- Specified by:
getArgAttrMapin interfaceFunctionDefOrBuilder
-
getArgAttrOrDefault
public FunctionDef.ArgAttrs getArgAttrOrDefault(int key, FunctionDef.ArgAttrs defaultValue)
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;- Specified by:
getArgAttrOrDefaultin interfaceFunctionDefOrBuilder
-
getArgAttrOrThrow
public FunctionDef.ArgAttrs getArgAttrOrThrow(int key)
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;- Specified by:
getArgAttrOrThrowin interfaceFunctionDefOrBuilder
-
clearArgAttr
public FunctionDef.Builder clearArgAttr()
-
removeArgAttr
public FunctionDef.Builder removeArgAttr(int key)
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
-
getMutableArgAttr
@Deprecated public java.util.Map<java.lang.Integer,FunctionDef.ArgAttrs> getMutableArgAttr()
Deprecated.Use alternate mutation accessors instead.
-
putArgAttr
public FunctionDef.Builder putArgAttr(int key, FunctionDef.ArgAttrs value)
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;
-
getNodeDefList
public java.util.List<NodeDef> 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
public NodeDef getNodeDef(int index)
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
public FunctionDef.Builder setNodeDef(int index, NodeDef value)
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
public FunctionDef.Builder setNodeDef(int index, NodeDef.Builder builderForValue)
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
public FunctionDef.Builder addNodeDef(NodeDef value)
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
public FunctionDef.Builder addNodeDef(int index, NodeDef value)
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
public FunctionDef.Builder addNodeDef(NodeDef.Builder builderForValue)
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
public FunctionDef.Builder addNodeDef(int index, NodeDef.Builder builderForValue)
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
public FunctionDef.Builder addAllNodeDef(java.lang.Iterable<? extends NodeDef> values)
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
public FunctionDef.Builder 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
public FunctionDef.Builder removeNodeDef(int index)
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
public NodeDef.Builder getNodeDefBuilder(int index)
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
public NodeDefOrBuilder getNodeDefOrBuilder(int index)
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
public java.util.List<? extends NodeDefOrBuilder> 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
public NodeDef.Builder 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
public NodeDef.Builder addNodeDefBuilder(int index)
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
public java.util.List<NodeDef.Builder> 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
public FunctionDef.Builder clearRet()
-
removeRet
public FunctionDef.Builder removeRet(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;
-
getMutableRet
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableRet()
Deprecated.Use alternate mutation accessors instead.
-
putRet
public FunctionDef.Builder putRet(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.
map<string, string> ret = 4;
-
putAllRet
public FunctionDef.Builder putAllRet(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.
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
public FunctionDef.Builder clearControlRet()
-
removeControlRet
public FunctionDef.Builder removeControlRet(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;
-
getMutableControlRet
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableControlRet()
Deprecated.Use alternate mutation accessors instead.
-
putControlRet
public FunctionDef.Builder putControlRet(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.
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>
-
-