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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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.Builder
clear
in interface org.nd4j.shade.protobuf.MessageLite.Builder
clear
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.Builder
getDescriptorForType
in interface org.nd4j.shade.protobuf.MessageOrBuilder
getDescriptorForType
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
public FunctionDef getDefaultInstanceForType()
getDefaultInstanceForType
in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface org.nd4j.shade.protobuf.MessageOrBuilder
public FunctionDef build()
build
in interface org.nd4j.shade.protobuf.Message.Builder
build
in interface org.nd4j.shade.protobuf.MessageLite.Builder
public FunctionDef buildPartial()
buildPartial
in interface org.nd4j.shade.protobuf.Message.Builder
buildPartial
in interface org.nd4j.shade.protobuf.MessageLite.Builder
public FunctionDef.Builder clone()
clone
in interface org.nd4j.shade.protobuf.Message.Builder
clone
in interface org.nd4j.shade.protobuf.MessageLite.Builder
clone
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.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface org.nd4j.shade.protobuf.MessageLite.Builder
mergeFrom
in class org.nd4j.shade.protobuf.AbstractMessage.Builder<FunctionDef.Builder>
IOException
public boolean hasSignature()
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;
hasSignature
in interface FunctionDefOrBuilder
public OpDef getSignature()
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;
getSignature
in interface FunctionDefOrBuilder
public 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 FunctionDefOrBuilder
public int getAttrCount()
FunctionDefOrBuilder
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;
getAttrCount
in interface FunctionDefOrBuilder
public 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 FunctionDefOrBuilder
public Map<String,AttrValue> getAttrMap()
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;
getAttrMap
in interface FunctionDefOrBuilder
public AttrValue getAttrOrDefault(String key, AttrValue defaultValue)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;
getAttrOrDefault
in interface FunctionDefOrBuilder
public AttrValue getAttrOrThrow(String key)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;
getAttrOrThrow
in interface FunctionDefOrBuilder
public 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 FunctionDefOrBuilder
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;
getNodeDefCount
in interface FunctionDefOrBuilder
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;
getNodeDef
in interface FunctionDefOrBuilder
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;
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 FunctionDefOrBuilder
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;
getNodeDefOrBuilderList
in interface FunctionDefOrBuilder
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;
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()
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;
getRetCount
in interface FunctionDefOrBuilder
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;
containsRet
in interface FunctionDefOrBuilder
@Deprecated public Map<String,String> getRet()
getRetMap()
instead.getRet
in interface FunctionDefOrBuilder
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;
getRetMap
in interface FunctionDefOrBuilder
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;
getRetOrDefault
in interface FunctionDefOrBuilder
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;
getRetOrThrow
in interface FunctionDefOrBuilder
public 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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>
Copyright © 2020. All rights reserved.