Package org.tensorflow.framework
Class FunctionDef.Builder
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite.Builder
-
- org.nd4j.shade.protobuf.AbstractMessage.Builder<BuilderType>
-
- org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
- org.tensorflow.framework.FunctionDef.Builder
-
- All Implemented Interfaces:
Cloneable
,org.nd4j.shade.protobuf.Message.Builder
,org.nd4j.shade.protobuf.MessageLite.Builder
,org.nd4j.shade.protobuf.MessageLiteOrBuilder
,org.nd4j.shade.protobuf.MessageOrBuilder
,FunctionDefOrBuilder
- Enclosing class:
- FunctionDef
public static final class FunctionDef.Builder extends org.nd4j.shade.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.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(int index, NodeDef value)
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(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.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(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
FunctionDef
build()
FunctionDef
buildPartial()
FunctionDef.Builder
clear()
FunctionDef.Builder
clearAttr()
FunctionDef.Builder
clearField(org.nd4j.shade.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(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
FunctionDef.Builder
clearRet()
FunctionDef.Builder
clearSignature()
The definition of the function's name, arguments, return values, attrs etc.FunctionDef.Builder
clone()
boolean
containsAttr(String key)
Attributes specific to this function definition.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<String,AttrValue>
getAttr()
Deprecated.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.FunctionDef
getDefaultInstanceForType()
static org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor()
org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType()
Map<String,AttrValue>
getMutableAttr()
Deprecated.Map<String,String>
getMutableRet()
Deprecated.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<String,String>
getRet()
Deprecated.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.protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected org.nd4j.shade.protobuf.MapField
internalGetMapField(int number)
protected org.nd4j.shade.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
FunctionDef.Builder
mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
FunctionDef.Builder
mergeFrom(org.nd4j.shade.protobuf.Message other)
FunctionDef.Builder
mergeFrom(FunctionDef other)
FunctionDef.Builder
mergeSignature(OpDef value)
The definition of the function's name, arguments, return values, attrs etc.FunctionDef.Builder
mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
FunctionDef.Builder
putAllAttr(Map<String,AttrValue> values)
Attributes specific to this function definition.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
putAttr(String key, AttrValue value)
Attributes specific to this function definition.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
removeAttr(String key)
Attributes specific to this function definition.FunctionDef.Builder
removeNodeDef(int index)
By convention, "op" in node_def is resolved by consulting with a user-defined library first.FunctionDef.Builder
removeRet(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.Builder
setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
FunctionDef.Builder
setNodeDef(int index, NodeDef value)
By convention, "op" in node_def is resolved by consulting with a user-defined library first.FunctionDef.Builder
setNodeDef(int index, NodeDef.Builder builderForValue)
By convention, "op" in node_def is resolved by consulting with a user-defined library first.FunctionDef.Builder
setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
FunctionDef.Builder
setSignature(OpDef value)
The definition of the function's name, arguments, return values, attrs etc.FunctionDef.Builder
setSignature(OpDef.Builder builderForValue)
The definition of the function's name, arguments, return values, attrs etc.FunctionDef.Builder
setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected org.nd4j.shade.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
internalGetMutableMapField
protected org.nd4j.shade.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
internalGetFieldAccessorTable
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
clear
public FunctionDef.Builder clear()
- Specified by:
clear
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
clear
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
clear
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
getDescriptorForType
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
getDefaultInstanceForType
public FunctionDef getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public FunctionDef build()
- Specified by:
build
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
build
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public FunctionDef buildPartial()
- Specified by:
buildPartial
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
buildPartial
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public FunctionDef.Builder clone()
- Specified by:
clone
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
clone
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
clone
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
setField
public FunctionDef.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
clearField
public FunctionDef.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
clearField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
clearOneof
public FunctionDef.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
clearOneof
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
setRepeatedField
public FunctionDef.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
addRepeatedField
public FunctionDef.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
mergeFrom
public FunctionDef.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
mergeFrom
in classorg.nd4j.shade.protobuf.AbstractMessage.Builder<FunctionDef.Builder>
-
mergeFrom
public FunctionDef.Builder mergeFrom(FunctionDef other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
mergeFrom
public FunctionDef.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classorg.nd4j.shade.protobuf.AbstractMessage.Builder<FunctionDef.Builder>
- Throws:
IOException
-
hasSignature
public boolean hasSignature()
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;
- Specified by:
hasSignature
in 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:
getSignature
in 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:
getSignatureOrBuilder
in interfaceFunctionDefOrBuilder
-
getAttrCount
public int getAttrCount()
Description copied from interface:FunctionDefOrBuilder
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;
- Specified by:
getAttrCount
in interfaceFunctionDefOrBuilder
-
containsAttr
public boolean containsAttr(String key)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;
- Specified by:
containsAttr
in interfaceFunctionDefOrBuilder
-
getAttr
@Deprecated public Map<String,AttrValue> getAttr()
Deprecated.UsegetAttrMap()
instead.- Specified by:
getAttr
in interfaceFunctionDefOrBuilder
-
getAttrMap
public Map<String,AttrValue> getAttrMap()
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;
- Specified by:
getAttrMap
in interfaceFunctionDefOrBuilder
-
getAttrOrDefault
public AttrValue getAttrOrDefault(String key, AttrValue defaultValue)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;
- Specified by:
getAttrOrDefault
in interfaceFunctionDefOrBuilder
-
getAttrOrThrow
public AttrValue getAttrOrThrow(String key)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;
- Specified by:
getAttrOrThrow
in interfaceFunctionDefOrBuilder
-
clearAttr
public FunctionDef.Builder clearAttr()
-
removeAttr
public FunctionDef.Builder removeAttr(String key)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;
-
getMutableAttr
@Deprecated public Map<String,AttrValue> getMutableAttr()
Deprecated.Use alternate mutation accessors instead.
-
putAttr
public FunctionDef.Builder putAttr(String key, AttrValue value)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;
-
putAllAttr
public FunctionDef.Builder putAllAttr(Map<String,AttrValue> values)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;
-
getNodeDefList
public 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:
getNodeDefList
in 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:
getNodeDefCount
in 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:
getNodeDef
in 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(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:
getNodeDefOrBuilder
in interfaceFunctionDefOrBuilder
-
getNodeDefOrBuilderList
public 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:
getNodeDefOrBuilderList
in 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 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:FunctionDefOrBuilder
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:
getRetCount
in interfaceFunctionDefOrBuilder
-
containsRet
public 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<string, string> ret = 4;
- Specified by:
containsRet
in interfaceFunctionDefOrBuilder
-
getRet
@Deprecated public Map<String,String> getRet()
Deprecated.UsegetRetMap()
instead.- Specified by:
getRet
in interfaceFunctionDefOrBuilder
-
getRetMap
public 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.
map<string, string> ret = 4;
- Specified by:
getRetMap
in interfaceFunctionDefOrBuilder
-
getRetOrDefault
public 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.
map<string, string> ret = 4;
- Specified by:
getRetOrDefault
in interfaceFunctionDefOrBuilder
-
getRetOrThrow
public 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.
map<string, string> ret = 4;
- Specified by:
getRetOrThrow
in interfaceFunctionDefOrBuilder
-
clearRet
public FunctionDef.Builder clearRet()
-
removeRet
public FunctionDef.Builder removeRet(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 Map<String,String> getMutableRet()
Deprecated.Use alternate mutation accessors instead.
-
putRet
public 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.
map<string, string> ret = 4;
-
putAllRet
public 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.
map<string, string> ret = 4;
-
setUnknownFields
public final FunctionDef.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
mergeUnknownFields
public final FunctionDef.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
-
-