public static final class FunctionDef.Builder extends com.github.os72.protobuf351.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.github.os72.protobuf351.Descriptors.FieldDescriptor field,
Object value) |
FunctionDef |
build() |
FunctionDef |
buildPartial() |
FunctionDef.Builder |
clear() |
FunctionDef.Builder |
clearAttr() |
FunctionDef.Builder |
clearField(com.github.os72.protobuf351.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.github.os72.protobuf351.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.github.os72.protobuf351.Descriptors.Descriptor |
getDescriptor() |
com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.github.os72.protobuf351.MapField |
internalGetMapField(int number) |
protected com.github.os72.protobuf351.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
FunctionDef.Builder |
mergeFrom(com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
FunctionDef.Builder |
mergeFrom(FunctionDef other) |
FunctionDef.Builder |
mergeFrom(com.github.os72.protobuf351.Message other) |
FunctionDef.Builder |
mergeSignature(OpDef value)
The definition of the function's name, arguments, return values,
attrs etc.
|
FunctionDef.Builder |
mergeUnknownFields(com.github.os72.protobuf351.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.github.os72.protobuf351.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.github.os72.protobuf351.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.github.os72.protobuf351.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 com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor()
protected com.github.os72.protobuf351.MapField internalGetMapField(int number)
internalGetMapField
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<FunctionDef.Builder>
protected com.github.os72.protobuf351.MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<FunctionDef.Builder>
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<FunctionDef.Builder>
public FunctionDef.Builder clear()
clear
in interface com.github.os72.protobuf351.Message.Builder
clear
in interface com.github.os72.protobuf351.MessageLite.Builder
clear
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<FunctionDef.Builder>
public com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.github.os72.protobuf351.Message.Builder
getDescriptorForType
in interface com.github.os72.protobuf351.MessageOrBuilder
getDescriptorForType
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<FunctionDef.Builder>
public FunctionDef getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.github.os72.protobuf351.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.github.os72.protobuf351.MessageOrBuilder
public FunctionDef build()
build
in interface com.github.os72.protobuf351.Message.Builder
build
in interface com.github.os72.protobuf351.MessageLite.Builder
public FunctionDef buildPartial()
buildPartial
in interface com.github.os72.protobuf351.Message.Builder
buildPartial
in interface com.github.os72.protobuf351.MessageLite.Builder
public FunctionDef.Builder clone()
clone
in interface com.github.os72.protobuf351.Message.Builder
clone
in interface com.github.os72.protobuf351.MessageLite.Builder
clone
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<FunctionDef.Builder>
public FunctionDef.Builder setField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.github.os72.protobuf351.Message.Builder
setField
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<FunctionDef.Builder>
public FunctionDef.Builder clearField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field)
clearField
in interface com.github.os72.protobuf351.Message.Builder
clearField
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<FunctionDef.Builder>
public FunctionDef.Builder clearOneof(com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.github.os72.protobuf351.Message.Builder
clearOneof
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<FunctionDef.Builder>
public FunctionDef.Builder setRepeatedField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.github.os72.protobuf351.Message.Builder
setRepeatedField
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<FunctionDef.Builder>
public FunctionDef.Builder addRepeatedField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.github.os72.protobuf351.Message.Builder
addRepeatedField
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<FunctionDef.Builder>
public FunctionDef.Builder mergeFrom(com.github.os72.protobuf351.Message other)
mergeFrom
in interface com.github.os72.protobuf351.Message.Builder
mergeFrom
in class com.github.os72.protobuf351.AbstractMessage.Builder<FunctionDef.Builder>
public FunctionDef.Builder mergeFrom(FunctionDef other)
public final boolean isInitialized()
isInitialized
in interface com.github.os72.protobuf351.MessageLiteOrBuilder
isInitialized
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<FunctionDef.Builder>
public FunctionDef.Builder mergeFrom(com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.github.os72.protobuf351.Message.Builder
mergeFrom
in interface com.github.os72.protobuf351.MessageLite.Builder
mergeFrom
in class com.github.os72.protobuf351.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(com.github.os72.protobuf351.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.github.os72.protobuf351.Message.Builder
setUnknownFields
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<FunctionDef.Builder>
public final FunctionDef.Builder mergeUnknownFields(com.github.os72.protobuf351.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.github.os72.protobuf351.Message.Builder
mergeUnknownFields
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<FunctionDef.Builder>
Copyright © 2018. All rights reserved.