Class FunctionDef
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.proto.FunctionDef
- All Implemented Interfaces:
Message, MessageLite, MessageLiteOrBuilder, MessageOrBuilder, Serializable, 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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAttributes for function arguments.static interfacestatic final classA function can be instantiated when the runtime can bind every attr with a value.Nested classes/interfaces inherited from class GeneratedMessageV3
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType, BuilderType>, GeneratedMessageV3.ExtendableMessage<MessageType>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameterNested classes/interfaces inherited from class AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class AbstractMessage
memoizedSizeFields inherited from class AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsArgAttr(int key) map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;booleancontainsAttr(String key) Attributes specific to this function definition.booleancontainsControlRet(String key) A mapping from control output names from `signature` to node names in `node_def` which should be control outputs of this function.booleancontainsResourceArgUniqueId(int key) Unique IDs for each resource argument, used to track aliasing resources.booleancontainsRet(String key) A mapping from the output arg names from `signature` to the outputs from `node_def` that should be returned by the function.booleanDeprecated.intmap<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;getArgAttrOrDefault(int key, FunctionDef.ArgAttrs defaultValue) map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;getArgAttrOrThrow(int key) map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;getAttr()Deprecated.intAttributes specific to this function definition.Attributes specific to this function definition.getAttrOrDefault(String key, AttrValue defaultValue) Attributes specific to this function definition.getAttrOrThrow(String key) Attributes specific to this function definition.Deprecated.intA mapping from control output names from `signature` to node names in `node_def` which should be control outputs of this function.A mapping from control output names from `signature` to node names in `node_def` which should be control outputs of this function.getControlRetOrDefault(String key, String defaultValue) A mapping from control output names from `signature` to node names in `node_def` which should be control outputs of this function.A mapping from control output names from `signature` to node names in `node_def` which should be control outputs of this function.static FunctionDefstatic final Descriptors.DescriptorgetNodeDef(int index) By convention, "op" in node_def is resolved by consulting with a user-defined library first.intBy convention, "op" in node_def is resolved by consulting with a user-defined library first.By convention, "op" in node_def is resolved by consulting with a user-defined library first.getNodeDefOrBuilder(int index) By convention, "op" in node_def is resolved by consulting with a user-defined library first.List<? extends NodeDefOrBuilder> By convention, "op" in node_def is resolved by consulting with a user-defined library first.Deprecated.intUnique IDs for each resource argument, used to track aliasing resources.Unique IDs for each resource argument, used to track aliasing resources.intgetResourceArgUniqueIdOrDefault(int key, int defaultValue) Unique IDs for each resource argument, used to track aliasing resources.intgetResourceArgUniqueIdOrThrow(int key) Unique IDs for each resource argument, used to track aliasing resources.getRet()Deprecated.intA mapping from the output arg names from `signature` to the outputs from `node_def` that should be returned by the function.A mapping from the output arg names from `signature` to the outputs from `node_def` that should be returned by the function.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.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.intThe definition of the function's name, arguments, return values, attrs etc.The definition of the function's name, arguments, return values, attrs etc.final UnknownFieldSetinthashCode()booleanThe definition of the function's name, arguments, return values, attrs etc.protected GeneratedMessageV3.FieldAccessorTableprotected MapFieldinternalGetMapField(int number) final booleanstatic FunctionDef.Builderstatic FunctionDef.BuildernewBuilder(FunctionDef prototype) protected FunctionDef.Builderprotected Objectstatic FunctionDefparseDelimitedFrom(InputStream input) static FunctionDefparseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static FunctionDefparseFrom(byte[] data) static FunctionDefparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) static FunctionDefparseFrom(ByteString data) static FunctionDefparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static FunctionDefparseFrom(CodedInputStream input) static FunctionDefparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) static FunctionDefparseFrom(InputStream input) static FunctionDefparseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static FunctionDefparseFrom(ByteBuffer data) static FunctionDefparseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) static Parser<FunctionDef> parser()voidwriteTo(CodedOutputStream output) Methods inherited from class GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, 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, writeStringNoTagMethods inherited from class AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
Field Details
-
SIGNATURE_FIELD_NUMBER
public static final int SIGNATURE_FIELD_NUMBER- See Also:
-
ATTR_FIELD_NUMBER
public static final int ATTR_FIELD_NUMBER- See Also:
-
ARG_ATTR_FIELD_NUMBER
public static final int ARG_ATTR_FIELD_NUMBER- See Also:
-
RESOURCE_ARG_UNIQUE_ID_FIELD_NUMBER
public static final int RESOURCE_ARG_UNIQUE_ID_FIELD_NUMBER- See Also:
-
NODE_DEF_FIELD_NUMBER
public static final int NODE_DEF_FIELD_NUMBER- See Also:
-
RET_FIELD_NUMBER
public static final int RET_FIELD_NUMBER- See Also:
-
CONTROL_RET_FIELD_NUMBER
public static final int CONTROL_RET_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classGeneratedMessageV3
-
getUnknownFields
- Specified by:
getUnknownFieldsin interfaceMessageOrBuilder- Overrides:
getUnknownFieldsin classGeneratedMessageV3
-
getDescriptor
-
internalGetMapField
- Overrides:
internalGetMapFieldin classGeneratedMessageV3
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3
-
hasSignature
public boolean hasSignature()The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;- Specified by:
hasSignaturein interfaceFunctionDefOrBuilder- Returns:
- Whether the signature field is set.
-
getSignature
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;- Specified by:
getSignaturein interfaceFunctionDefOrBuilder- Returns:
- The signature.
-
getSignatureOrBuilder
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;- Specified by:
getSignatureOrBuilderin interfaceFunctionDefOrBuilder
-
getAttrCount
public int getAttrCount()Description copied from interface:FunctionDefOrBuilderAttributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;- Specified by:
getAttrCountin interfaceFunctionDefOrBuilder
-
containsAttr
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;- Specified by:
containsAttrin interfaceFunctionDefOrBuilder
-
getAttr
-
getAttrMap
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;- Specified by:
getAttrMapin interfaceFunctionDefOrBuilder
-
getAttrOrDefault
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;- Specified by:
getAttrOrDefaultin interfaceFunctionDefOrBuilder
-
getAttrOrThrow
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;- Specified by:
getAttrOrThrowin interfaceFunctionDefOrBuilder
-
getArgAttrCount
public int getArgAttrCount()Description copied from interface:FunctionDefOrBuildermap<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;- Specified by:
getArgAttrCountin interfaceFunctionDefOrBuilder
-
containsArgAttr
public boolean containsArgAttr(int key) map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;- Specified by:
containsArgAttrin interfaceFunctionDefOrBuilder
-
getArgAttr
-
getArgAttrMap
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;- Specified by:
getArgAttrMapin interfaceFunctionDefOrBuilder
-
getArgAttrOrDefault
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;- Specified by:
getArgAttrOrDefaultin interfaceFunctionDefOrBuilder
-
getArgAttrOrThrow
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;- Specified by:
getArgAttrOrThrowin interfaceFunctionDefOrBuilder
-
getResourceArgUniqueIdCount
public int getResourceArgUniqueIdCount()Description copied from interface:FunctionDefOrBuilderUnique IDs for each resource argument, used to track aliasing resources. If Argument A and Argument B alias each other, then resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index]. If this field is empty, none of the arguments could alias; otherwise, every resource argument should have an entry in this field. When instantiated, the unique IDs will be attached to the _Arg nodes' "_resource_arg_unique_id" attribute.
map<uint32, uint32> resource_arg_unique_id = 8;- Specified by:
getResourceArgUniqueIdCountin interfaceFunctionDefOrBuilder
-
containsResourceArgUniqueId
public boolean containsResourceArgUniqueId(int key) Unique IDs for each resource argument, used to track aliasing resources. If Argument A and Argument B alias each other, then resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index]. If this field is empty, none of the arguments could alias; otherwise, every resource argument should have an entry in this field. When instantiated, the unique IDs will be attached to the _Arg nodes' "_resource_arg_unique_id" attribute.
map<uint32, uint32> resource_arg_unique_id = 8;- Specified by:
containsResourceArgUniqueIdin interfaceFunctionDefOrBuilder
-
getResourceArgUniqueId
Deprecated.UsegetResourceArgUniqueIdMap()instead.- Specified by:
getResourceArgUniqueIdin interfaceFunctionDefOrBuilder
-
getResourceArgUniqueIdMap
Unique IDs for each resource argument, used to track aliasing resources. If Argument A and Argument B alias each other, then resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index]. If this field is empty, none of the arguments could alias; otherwise, every resource argument should have an entry in this field. When instantiated, the unique IDs will be attached to the _Arg nodes' "_resource_arg_unique_id" attribute.
map<uint32, uint32> resource_arg_unique_id = 8;- Specified by:
getResourceArgUniqueIdMapin interfaceFunctionDefOrBuilder
-
getResourceArgUniqueIdOrDefault
public int getResourceArgUniqueIdOrDefault(int key, int defaultValue) Unique IDs for each resource argument, used to track aliasing resources. If Argument A and Argument B alias each other, then resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index]. If this field is empty, none of the arguments could alias; otherwise, every resource argument should have an entry in this field. When instantiated, the unique IDs will be attached to the _Arg nodes' "_resource_arg_unique_id" attribute.
map<uint32, uint32> resource_arg_unique_id = 8;- Specified by:
getResourceArgUniqueIdOrDefaultin interfaceFunctionDefOrBuilder
-
getResourceArgUniqueIdOrThrow
public int getResourceArgUniqueIdOrThrow(int key) Unique IDs for each resource argument, used to track aliasing resources. If Argument A and Argument B alias each other, then resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index]. If this field is empty, none of the arguments could alias; otherwise, every resource argument should have an entry in this field. When instantiated, the unique IDs will be attached to the _Arg nodes' "_resource_arg_unique_id" attribute.
map<uint32, uint32> resource_arg_unique_id = 8;- Specified by:
getResourceArgUniqueIdOrThrowin interfaceFunctionDefOrBuilder
-
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;- Specified by:
getNodeDefListin interfaceFunctionDefOrBuilder
-
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;- Specified by:
getNodeDefOrBuilderListin interfaceFunctionDefOrBuilder
-
getNodeDefCount
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;- Specified by:
getNodeDefCountin interfaceFunctionDefOrBuilder
-
getNodeDef
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;- Specified by:
getNodeDefin interfaceFunctionDefOrBuilder
-
getNodeDefOrBuilder
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;- Specified by:
getNodeDefOrBuilderin interfaceFunctionDefOrBuilder
-
getRetCount
public int getRetCount()Description copied from interface: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;- Specified by:
getRetCountin interfaceFunctionDefOrBuilder
-
containsRet
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;- Specified by:
containsRetin interfaceFunctionDefOrBuilder
-
getRet
-
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;- Specified by:
getRetMapin interfaceFunctionDefOrBuilder
-
getRetOrDefault
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;- Specified by:
getRetOrDefaultin interfaceFunctionDefOrBuilder
-
getRetOrThrow
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;- Specified by:
getRetOrThrowin interfaceFunctionDefOrBuilder
-
getControlRetCount
public int getControlRetCount()Description copied from interface: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;- Specified by:
getControlRetCountin interfaceFunctionDefOrBuilder
-
containsControlRet
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;- Specified by:
containsControlRetin interfaceFunctionDefOrBuilder
-
getControlRet
Deprecated.UsegetControlRetMap()instead.- Specified by:
getControlRetin interfaceFunctionDefOrBuilder
-
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;- Specified by:
getControlRetMapin interfaceFunctionDefOrBuilder
-
getControlRetOrDefault
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;- Specified by:
getControlRetOrDefaultin interfaceFunctionDefOrBuilder
-
getControlRetOrThrow
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;- Specified by:
getControlRetOrThrowin interfaceFunctionDefOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfaceMessageLite- Overrides:
writeToin classGeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfaceMessageLite- Overrides:
getSerializedSizein classGeneratedMessageV3
-
equals
- Specified by:
equalsin interfaceMessage- Overrides:
equalsin classAbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceMessage- Overrides:
hashCodein classAbstractMessage
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static FunctionDef parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static FunctionDef parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static FunctionDef parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static FunctionDef parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static FunctionDef parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static FunctionDef parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfaceMessage- Specified by:
newBuilderForTypein interfaceMessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfaceMessage- Specified by:
toBuilderin interfaceMessageLite
-
newBuilderForType
- Specified by:
newBuilderForTypein classGeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfaceMessage- Specified by:
getParserForTypein interfaceMessageLite- Overrides:
getParserForTypein classGeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-