מחלקה סופית ציבורית FunctionDef
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.
tensorflow.FunctionDef
מסוג Protobuf.FunctionDef כיתות מקוננות
מַחלָקָה | FunctionDef.ArgAttrs | Attributes for function arguments. | |
מִמְשָׁק | FunctionDef.ArgAttrsOrBuilder | ||
מַחלָקָה | FunctionDef.Builder | A function can be instantiated when the runtime can bind every attr with a value. |
קבועים
int | ARG_ATTR_FIELD_NUMBER | |
int | ATTR_FIELD_NUMBER | |
int | CONTROL_RET_FIELD_NUMBER | |
int | NODE_DEF_FIELD_NUMBER | |
int | RESOURCE_ARG_UNIQUE_ID_FIELD_NUMBER | |
int | RET_FIELD_NUMBER | |
int | SIGNATURE_FIELD_NUMBER |
שיטות ציבוריות
בוליאני | containsArgAttr (מפתח int) map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7; |
בוליאני | containsAttr (מפתח מחרוזת) Attributes specific to this function definition. |
בוליאני | containsControlRet (מפתח מחרוזת) A mapping from control output names from `signature` to node names in `node_def` which should be control outputs of this function. |
בוליאני | containsResourceArgUniqueId (מפתח int) Unique IDs for each resource argument, used to track aliasing resources. |
בוליאני | containsRet (מפתח מחרוזת) A mapping from the output arg names from `signature` to the outputs from `node_def` that should be returned by the function. |
בוליאני | שווה (Object obj) |
מפה<Integer, FunctionDef.ArgAttrs > | getArgAttr () השתמש ב- getArgAttrMap() במקום זאת. |
int | getArgAttrCount () map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7; |
מפה<Integer, FunctionDef.ArgAttrs > | getArgAttrMap () map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7; |
FunctionDef.ArgAttrs | getArgAttrOrDefault (מפתח int, FunctionDef.ArgAttrs defaultValue) map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7; |
FunctionDef.ArgAttrs | getArgAttrOrThrow (מפתח int) map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7; |
מפה<String, AttrValue > | getAttr () השתמש ב- getAttrMap() במקום זאת. |
int | getAttrCount () Attributes specific to this function definition. |
מפה<String, AttrValue > | getAttrMap () Attributes specific to this function definition. |
AttrValue | getAttrOrDefault (מפתח מחרוזת, AttrValue defaultValue) Attributes specific to this function definition. |
AttrValue | getAttrOrThrow (מפתח מחרוזת) Attributes specific to this function definition. |
מפה<String, String> | getControlRet () השתמש ב- getControlRetMap() במקום זאת. |
int | getControlRetCount () A mapping from control output names from `signature` to node names in `node_def` which should be control outputs of this function. |
מפה<String, String> | getControlRetMap () A mapping from control output names from `signature` to node names in `node_def` which should be control outputs of this function. |
חוּט | getControlRetOrDefault (מפתח מחרוזת, מחרוזת defaultValue) A mapping from control output names from `signature` to node names in `node_def` which should be control outputs of this function. |
חוּט | getControlRetOrThrow (מפתח מחרוזת) A mapping from control output names from `signature` to node names in `node_def` which should be control outputs of this function. |
סטטי FunctionDef | |
FunctionDef | |
final static com.google.protobuf.Descriptors.Descriptor | |
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. |
רשימה< 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. |
רשימה<? מרחיב את NodeDefOrBuilder > | getNodeDefOrBuilderList () By convention, "op" in node_def is resolved by consulting with a user-defined library first. |
מפה<Integer, Integer> | getResourceArgUniqueId () השתמש ב- getResourceArgUniqueIdMap() במקום זאת. |
int | getResourceArgUniqueIdCount () Unique IDs for each resource argument, used to track aliasing resources. |
מפה<Integer, Integer> | getResourceArgUniqueIdMap () Unique IDs for each resource argument, used to track aliasing resources. |
int | getResourceArgUniqueIdOrDefault (מפתח int, int defaultValue) Unique IDs for each resource argument, used to track aliasing resources. |
int | getResourceArgUniqueIdOrThrow (מפתח int) Unique IDs for each resource argument, used to track aliasing resources. |
מפה<String, String> | getRet () השתמש ב- getRetMap() במקום זאת. |
int | getRetCount () A mapping from the output arg names from `signature` to the outputs from `node_def` that should be returned by the function. |
מפה<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. |
חוּט | getRetOrDefault (מפתח מחרוזת, מחרוזת defaultValue) A mapping from the output arg names from `signature` to the outputs from `node_def` that should be returned by the function. |
חוּט | getRetOrThrow (מפתח מחרוזת) A mapping from the output arg names from `signature` to the outputs from `node_def` that should be returned by the function. |
int | |
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. |
final com.google.protobuf.UnknownFieldSet | |
בוליאני | hasSignature () The definition of the function's name, arguments, return values, attrs etc. |
int | hashcode () |
בוליאנית סופית | |
סטטי FunctionDef.Builder | newBuilder () |
סטטי FunctionDef.Builder | newBuilder (אב-טיפוס FunctionDef ) |
FunctionDef.Builder | |
סטטי FunctionDef | parseDelimitedFrom (קלט InputStream) |
סטטי FunctionDef | parseDelimitedFrom (קלט InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
סטטי FunctionDef | parseFrom (נתוני ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
סטטי FunctionDef | parseFrom (קלט com.google.protobuf.CodedInputStream) |
סטטי FunctionDef | parseFrom (נתוני byte[], com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
סטטי FunctionDef | parseFrom (נתוני ByteBuffer) |
סטטי FunctionDef | parseFrom (קלט com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
סטטי FunctionDef | parseFrom (נתוני com.google.protobuf.ByteString) |
סטטי FunctionDef | parseFrom (קלט InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
סטטי FunctionDef | parseFrom (נתוני com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
סטָטִי | מנתח () |
FunctionDef.Builder | toBuilder () |
בָּטֵל | writeTo (פלט com.google.protobuf.CodedOutputStream) |
שיטות בירושה
קבועים
גמר סטטי ציבורי ב- ARG_ATTR_FIELD_NUMBER
ערך קבוע: 7
גמר סטטי ציבורי ATTR_FIELD_NUMBER
ערך קבוע: 5
אינט סופי סטטי ציבורי CONTROL_RET_FIELD_NUMBER
ערך קבוע: 6
גמר סטטי ציבורי NODE_DEF_FIELD_NUMBER
ערך קבוע: 3
אינט סופי סטטי ציבורי RESOURCE_ARG_UNIQUE_ID_FIELD_NUMBER
ערך קבוע: 8
גמר סטטי ציבורי RET_FIELD_NUMBER
ערך קבוע: 4
סיום סטטי ציבורי SIGNATURE_FIELD_NUMBER
ערך קבוע: 1
שיטות ציבוריות
בוליאני ציבורי מכילArgAttr (מפתח int)
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
boolean public containsAttr (מפתח מחרוזת)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;
בוליאני ציבורי מכילControlRet (מפתח מחרוזת)
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;
public boolean containsResourceArgUniqueId (מפתח int)
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;
בוליאני ציבורי מכילRet (מפתח מחרוזת)
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;
שווה ערך בוליאני ציבורי (Object obj)
public int getArgAttrCount ()
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
מפה ציבורית<Integer, FunctionDef.ArgAttrs > getArgAttrMap ()
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
public FunctionDef.ArgAttrs getArgAttrOrDefault (מפתח int, FunctionDef.ArgAttrs defaultValue)
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
public FunctionDef.ArgAttrs getArgAttrOrThrow (מפתח int)
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
public int getAttrCount ()
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;
מפה ציבורית<String, AttrValue > getAttrMap ()
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;
public AttrValue getAttrOrDefault (מפתח מחרוזת, AttrValue defaultValue)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;
public AttrValue getAttrOrThrow (מפתח מחרוזת)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;
public int getControlRetCount ()
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;
מפה ציבורית<String, 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;
מחרוזת ציבורית getControlRetOrDefault (מפתח מחרוזת, מחרוזת 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;
מחרוזת ציבורית 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;
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
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;
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;
רשימה ציבורית< 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;
public NodeDefOrBuilder 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;
רשימה ציבורית<? מרחיב את 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;
פּוּמְבֵּי getParserForType ()
מפה ציבורית<Integer, Integer> getResourceArgUniqueId ()
השתמש ב- getResourceArgUniqueIdMap()
במקום זאת.
public int getResourceArgUniqueIdCount ()
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;
מפה ציבורית<Integer, Integer> 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;
public int getResourceArgUniqueIdOrDefault (מפתח int, 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;
public int getResourceArgUniqueIdOrThrow (מפתח int)
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;
public 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> ret = 4;
מפה ציבורית<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;
מחרוזת ציבורית getRetOrDefault (מפתח מחרוזת, מחרוזת 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;
מחרוזת ציבורית 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;
public int getSerializedSize ()
Public OpDef getSignature ()
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;
public final com.google.protobuf.UnknownFieldSet getUnknownFields ()
יש חתימה בולינית ציבורית ()
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;
public int hashCode ()
בוליאני הסופי הציבורי הוא אתחול ()
public static FunctionDef parseDelimitedFrom (קלט InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
IOException |
---|
public static FunctionDef parseFrom (נתוני ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
InvalidProtocolBufferException |
---|
public static FunctionDef parseFrom (נתוני byte[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
InvalidProtocolBufferException |
---|
public static FunctionDef parseFrom (קלט com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
IOException |
---|
public static FunctionDef parseFrom (נתוני com.google.protobuf.ByteString)
זורק
InvalidProtocolBufferException |
---|
public static FunctionDef parseFrom (קלט InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
IOException |
---|
public static FunctionDef parseFrom (נתוני com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
InvalidProtocolBufferException |
---|
סטטי ציבורי מנתח ()
public void writeTo (פלט com.google.protobuf.CodedOutputStream)
זורק
IOException |
---|