public static final class FunctionDef.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder> implements FunctionDefOrBuilder
A function can be instantiated when the runtime can bind every attr with a value. When a GraphDef has a call to a function, it must have binding for every attr defined in the signature. TODO(zhifengc): * device spec, etc.Protobuf type
tensorflow.FunctionDef| 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(com.google.protobuf.Descriptors.FieldDescriptor field,
                Object value)  | 
FunctionDef | 
build()  | 
FunctionDef | 
buildPartial()  | 
FunctionDef.Builder | 
clear()  | 
FunctionDef.Builder | 
clearAttr()  | 
FunctionDef.Builder | 
clearField(com.google.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(com.google.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 com.google.protobuf.Descriptors.Descriptor | 
getDescriptor()  | 
com.google.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 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable | 
internalGetFieldAccessorTable()  | 
protected com.google.protobuf.MapField | 
internalGetMapField(int number)  | 
protected com.google.protobuf.MapField | 
internalGetMutableMapField(int number)  | 
boolean | 
isInitialized()  | 
FunctionDef.Builder | 
mergeFrom(com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)  | 
FunctionDef.Builder | 
mergeFrom(FunctionDef other)  | 
FunctionDef.Builder | 
mergeFrom(com.google.protobuf.Message other)  | 
FunctionDef.Builder | 
mergeSignature(OpDef value)
 The definition of the function's name, arguments, return values,
 attrs etc. 
 | 
FunctionDef.Builder | 
mergeUnknownFields(com.google.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(com.google.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(com.google.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(com.google.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 com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>public FunctionDef.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>public FunctionDef getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic FunctionDef build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic FunctionDef buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic FunctionDef.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>public FunctionDef.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>public FunctionDef.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>public FunctionDef.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>public FunctionDef.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>public FunctionDef.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>public FunctionDef.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FunctionDef.Builder>public FunctionDef.Builder mergeFrom(FunctionDef other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>public FunctionDef.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.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(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>public final FunctionDef.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionDef.Builder>Copyright © 2015–2019. All rights reserved.