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 type
tensorflow.FunctionDef| Modifier and Type | Method and 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.Builder builderForValue)
By convention, "op" in node_def is resolved by consulting with a
user-defined library first.
|
FunctionDef.Builder |
addNodeDef(int index,
NodeDef value)
By convention, "op" in node_def is resolved by consulting with a
user-defined library first.
|
FunctionDef.Builder |
addNodeDef(NodeDef.Builder builderForValue)
By convention, "op" in node_def is resolved by consulting with a
user-defined library first.
|
FunctionDef.Builder |
addNodeDef(NodeDef value)
By convention, "op" in node_def is resolved by consulting with a
user-defined library first.
|
NodeDef.Builder |
addNodeDefBuilder()
By convention, "op" in node_def is resolved by consulting with a
user-defined library first.
|
NodeDef.Builder |
addNodeDefBuilder(int index)
By convention, "op" in node_def is resolved by consulting with a
user-defined library first.
|
FunctionDef.Builder |
addRepeatedField(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(FunctionDef other) |
FunctionDef.Builder |
mergeFrom(org.nd4j.shade.protobuf.Message 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.Builder builderForValue)
By convention, "op" in node_def is resolved by consulting with a
user-defined library first.
|
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 |
setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
FunctionDef.Builder |
setSignature(OpDef.Builder builderForValue)
The definition of the function's name, arguments, return values,
attrs etc.
|
FunctionDef.Builder |
setSignature(OpDef value)
The definition of the function's name, arguments, return values,
attrs etc.
|
FunctionDef.Builder |
setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
protected org.nd4j.shade.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>protected org.nd4j.shade.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>public FunctionDef.Builder clear()
clear in interface org.nd4j.shade.protobuf.Message.Builderclear in interface org.nd4j.shade.protobuf.MessageLite.Builderclear in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface org.nd4j.shade.protobuf.Message.BuildergetDescriptorForType in interface org.nd4j.shade.protobuf.MessageOrBuildergetDescriptorForType in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>public FunctionDef getDefaultInstanceForType()
getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilderpublic FunctionDef build()
build in interface org.nd4j.shade.protobuf.Message.Builderbuild in interface org.nd4j.shade.protobuf.MessageLite.Builderpublic FunctionDef buildPartial()
buildPartial in interface org.nd4j.shade.protobuf.Message.BuilderbuildPartial in interface org.nd4j.shade.protobuf.MessageLite.Builderpublic FunctionDef.Builder clone()
clone in interface org.nd4j.shade.protobuf.Message.Builderclone in interface org.nd4j.shade.protobuf.MessageLite.Builderclone in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>public FunctionDef.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface org.nd4j.shade.protobuf.Message.BuildersetField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>public FunctionDef.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
clearField in interface org.nd4j.shade.protobuf.Message.BuilderclearField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>public FunctionDef.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface org.nd4j.shade.protobuf.Message.BuilderclearOneof in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>public FunctionDef.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface org.nd4j.shade.protobuf.Message.BuildersetRepeatedField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>public FunctionDef.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface org.nd4j.shade.protobuf.Message.BuilderaddRepeatedField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>public FunctionDef.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
mergeFrom in interface org.nd4j.shade.protobuf.Message.BuildermergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<FunctionDef.Builder>public FunctionDef.Builder mergeFrom(FunctionDef other)
public final boolean isInitialized()
isInitialized in interface org.nd4j.shade.protobuf.MessageLiteOrBuilderisInitialized in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>public FunctionDef.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface org.nd4j.shade.protobuf.Message.BuildermergeFrom in interface org.nd4j.shade.protobuf.MessageLite.BuildermergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<FunctionDef.Builder>IOExceptionpublic boolean hasSignature()
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;hasSignature in interface FunctionDefOrBuilderpublic OpDef getSignature()
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;getSignature in interface FunctionDefOrBuilderpublic FunctionDef.Builder setSignature(OpDef value)
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;public FunctionDef.Builder setSignature(OpDef.Builder builderForValue)
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;public FunctionDef.Builder mergeSignature(OpDef value)
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;public FunctionDef.Builder clearSignature()
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;public OpDef.Builder getSignatureBuilder()
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;public OpDefOrBuilder getSignatureOrBuilder()
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;getSignatureOrBuilder in interface FunctionDefOrBuilderpublic int getAttrCount()
FunctionDefOrBuilderAttributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;getAttrCount in interface FunctionDefOrBuilderpublic boolean containsAttr(String key)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;containsAttr in interface FunctionDefOrBuilder@Deprecated public Map<String,AttrValue> getAttr()
getAttrMap() instead.getAttr in interface FunctionDefOrBuilderpublic Map<String,AttrValue> getAttrMap()
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;getAttrMap in interface FunctionDefOrBuilderpublic AttrValue getAttrOrDefault(String key, AttrValue defaultValue)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;getAttrOrDefault in interface FunctionDefOrBuilderpublic AttrValue getAttrOrThrow(String key)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;getAttrOrThrow in interface FunctionDefOrBuilderpublic FunctionDef.Builder clearAttr()
public FunctionDef.Builder removeAttr(String key)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;@Deprecated public Map<String,AttrValue> getMutableAttr()
public FunctionDef.Builder putAttr(String key, AttrValue value)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;public FunctionDef.Builder putAllAttr(Map<String,AttrValue> values)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;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;getNodeDefList in interface FunctionDefOrBuilderpublic 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;getNodeDefCount in interface FunctionDefOrBuilderpublic 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;getNodeDef in interface FunctionDefOrBuilderpublic 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;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;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;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;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;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;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;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;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;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;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;getNodeDefOrBuilder in interface FunctionDefOrBuilderpublic 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;getNodeDefOrBuilderList in interface FunctionDefOrBuilderpublic 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;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;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;public int getRetCount()
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;getRetCount in interface FunctionDefOrBuilderpublic 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;containsRet in interface FunctionDefOrBuilder@Deprecated public Map<String,String> getRet()
getRetMap() instead.getRet in interface FunctionDefOrBuilderpublic 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;getRetMap in interface FunctionDefOrBuilderpublic 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;getRetOrDefault in interface FunctionDefOrBuilderpublic 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;getRetOrThrow in interface FunctionDefOrBuilderpublic FunctionDef.Builder clearRet()
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;@Deprecated public Map<String,String> getMutableRet()
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;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;public final FunctionDef.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface org.nd4j.shade.protobuf.Message.BuildersetUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>public final FunctionDef.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface org.nd4j.shade.protobuf.Message.BuildermergeUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>Copyright © 2022. All rights reserved.