public final class FunctionDef extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
FunctionDef.ArgAttrs
Attributes for function arguments.
|
static interface |
FunctionDef.ArgAttrsOrBuilder |
static class |
FunctionDef.Builder
A function can be instantiated when the runtime can bind every attr
with a value.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ARG_ATTR_FIELD_NUMBER |
static int |
ATTR_FIELD_NUMBER |
static int |
CONTROL_RET_FIELD_NUMBER |
static int |
NODE_DEF_FIELD_NUMBER |
static int |
RET_FIELD_NUMBER |
static int |
SIGNATURE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsArgAttr(int key)
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7; |
boolean |
containsAttr(java.lang.String key)
Attributes specific to this function definition.
|
boolean |
containsControlRet(java.lang.String key)
A mapping from control output names from `signature` to node names in
`node_def` which should be control outputs of this function.
|
boolean |
containsRet(java.lang.String key)
A mapping from the output arg names from `signature` to the
outputs from `node_def` that should be returned by the function.
|
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.Integer,FunctionDef.ArgAttrs> |
getArgAttr()
Deprecated.
|
int |
getArgAttrCount()
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7; |
java.util.Map<java.lang.Integer,FunctionDef.ArgAttrs> |
getArgAttrMap()
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7; |
FunctionDef.ArgAttrs |
getArgAttrOrDefault(int key,
FunctionDef.ArgAttrs defaultValue)
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7; |
FunctionDef.ArgAttrs |
getArgAttrOrThrow(int key)
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7; |
java.util.Map<java.lang.String,AttrValue> |
getAttr()
Deprecated.
|
int |
getAttrCount()
Attributes specific to this function definition.
|
java.util.Map<java.lang.String,AttrValue> |
getAttrMap()
Attributes specific to this function definition.
|
AttrValue |
getAttrOrDefault(java.lang.String key,
AttrValue defaultValue)
Attributes specific to this function definition.
|
AttrValue |
getAttrOrThrow(java.lang.String key)
Attributes specific to this function definition.
|
java.util.Map<java.lang.String,java.lang.String> |
getControlRet()
Deprecated.
|
int |
getControlRetCount()
A mapping from control output names from `signature` to node names in
`node_def` which should be control outputs of this function.
|
java.util.Map<java.lang.String,java.lang.String> |
getControlRetMap()
A mapping from control output names from `signature` to node names in
`node_def` which should be control outputs of this function.
|
java.lang.String |
getControlRetOrDefault(java.lang.String key,
java.lang.String defaultValue)
A mapping from control output names from `signature` to node names in
`node_def` which should be control outputs of this function.
|
java.lang.String |
getControlRetOrThrow(java.lang.String key)
A mapping from control output names from `signature` to node names in
`node_def` which should be control outputs of this function.
|
static FunctionDef |
getDefaultInstance() |
FunctionDef |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
NodeDef |
getNodeDef(int index)
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.
|
java.util.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.
|
java.util.List<? extends NodeDefOrBuilder> |
getNodeDefOrBuilderList()
By convention, "op" in node_def is resolved by consulting with a
user-defined library first.
|
com.google.protobuf.Parser<FunctionDef> |
getParserForType() |
java.util.Map<java.lang.String,java.lang.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.
|
java.util.Map<java.lang.String,java.lang.String> |
getRetMap()
A mapping from the output arg names from `signature` to the
outputs from `node_def` that should be returned by the function.
|
java.lang.String |
getRetOrDefault(java.lang.String key,
java.lang.String defaultValue)
A mapping from the output arg names from `signature` to the
outputs from `node_def` that should be returned by the function.
|
java.lang.String |
getRetOrThrow(java.lang.String key)
A mapping from the output arg names from `signature` to the
outputs from `node_def` that should be returned by the function.
|
int |
getSerializedSize() |
OpDef |
getSignature()
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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
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) |
boolean |
isInitialized() |
static FunctionDef.Builder |
newBuilder() |
static FunctionDef.Builder |
newBuilder(FunctionDef prototype) |
FunctionDef.Builder |
newBuilderForType() |
protected FunctionDef.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static FunctionDef |
parseDelimitedFrom(java.io.InputStream input) |
static FunctionDef |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FunctionDef |
parseFrom(byte[] data) |
static FunctionDef |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FunctionDef |
parseFrom(java.nio.ByteBuffer data) |
static FunctionDef |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FunctionDef |
parseFrom(com.google.protobuf.ByteString data) |
static FunctionDef |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FunctionDef |
parseFrom(com.google.protobuf.CodedInputStream input) |
static FunctionDef |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FunctionDef |
parseFrom(java.io.InputStream input) |
static FunctionDef |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<FunctionDef> |
parser() |
FunctionDef.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int SIGNATURE_FIELD_NUMBER
public static final int ATTR_FIELD_NUMBER
public static final int ARG_ATTR_FIELD_NUMBER
public static final int NODE_DEF_FIELD_NUMBER
public static final int RET_FIELD_NUMBER
public static final int CONTROL_RET_FIELD_NUMBER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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(java.lang.String key)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;containsAttr in interface FunctionDefOrBuilder@Deprecated public java.util.Map<java.lang.String,AttrValue> getAttr()
getAttrMap() instead.getAttr in interface FunctionDefOrBuilderpublic java.util.Map<java.lang.String,AttrValue> getAttrMap()
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;getAttrMap in interface FunctionDefOrBuilderpublic AttrValue getAttrOrDefault(java.lang.String key, AttrValue defaultValue)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;getAttrOrDefault in interface FunctionDefOrBuilderpublic AttrValue getAttrOrThrow(java.lang.String key)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;getAttrOrThrow in interface FunctionDefOrBuilderpublic int getArgAttrCount()
FunctionDefOrBuildermap<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;getArgAttrCount in interface FunctionDefOrBuilderpublic boolean containsArgAttr(int key)
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;containsArgAttr in interface FunctionDefOrBuilder@Deprecated public java.util.Map<java.lang.Integer,FunctionDef.ArgAttrs> getArgAttr()
getArgAttrMap() instead.getArgAttr in interface FunctionDefOrBuilderpublic java.util.Map<java.lang.Integer,FunctionDef.ArgAttrs> getArgAttrMap()
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;getArgAttrMap in interface FunctionDefOrBuilderpublic FunctionDef.ArgAttrs getArgAttrOrDefault(int key, FunctionDef.ArgAttrs defaultValue)
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;getArgAttrOrDefault in interface FunctionDefOrBuilderpublic FunctionDef.ArgAttrs getArgAttrOrThrow(int key)
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;getArgAttrOrThrow in interface FunctionDefOrBuilderpublic java.util.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 java.util.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 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 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 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(java.lang.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 java.util.Map<java.lang.String,java.lang.String> getRet()
getRetMap() instead.getRet in interface FunctionDefOrBuilderpublic java.util.Map<java.lang.String,java.lang.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 java.lang.String getRetOrDefault(java.lang.String key,
java.lang.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 java.lang.String getRetOrThrow(java.lang.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 int getControlRetCount()
FunctionDefOrBuilderA mapping from control output names from `signature` to node names in `node_def` which should be control outputs of this function.
map<string, string> control_ret = 6;getControlRetCount in interface FunctionDefOrBuilderpublic boolean containsControlRet(java.lang.String key)
A mapping from control output names from `signature` to node names in `node_def` which should be control outputs of this function.
map<string, string> control_ret = 6;containsControlRet in interface FunctionDefOrBuilder@Deprecated public java.util.Map<java.lang.String,java.lang.String> getControlRet()
getControlRetMap() instead.getControlRet in interface FunctionDefOrBuilderpublic java.util.Map<java.lang.String,java.lang.String> getControlRetMap()
A mapping from control output names from `signature` to node names in `node_def` which should be control outputs of this function.
map<string, string> control_ret = 6;getControlRetMap in interface FunctionDefOrBuilderpublic java.lang.String getControlRetOrDefault(java.lang.String key,
java.lang.String defaultValue)
A mapping from control output names from `signature` to node names in `node_def` which should be control outputs of this function.
map<string, string> control_ret = 6;getControlRetOrDefault in interface FunctionDefOrBuilderpublic java.lang.String getControlRetOrThrow(java.lang.String key)
A mapping from control output names from `signature` to node names in `node_def` which should be control outputs of this function.
map<string, string> control_ret = 6;getControlRetOrThrow in interface FunctionDefOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static FunctionDef parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FunctionDef parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FunctionDef parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FunctionDef parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FunctionDef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FunctionDef parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FunctionDef parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static FunctionDef parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static FunctionDef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static FunctionDef parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static FunctionDef parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static FunctionDef parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic FunctionDef.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static FunctionDef.Builder newBuilder()
public static FunctionDef.Builder newBuilder(FunctionDef prototype)
public FunctionDef.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected FunctionDef.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static FunctionDef getDefaultInstance()
public static com.google.protobuf.Parser<FunctionDef> parser()
public com.google.protobuf.Parser<FunctionDef> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public FunctionDef getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder