Used to specify and override the default API & behavior in the generated code for client languages, from what you would get from the OpDef alone. There will be a set of ApiDefs that are common to all client languages, and another set per client language. The per-client-language ApiDefs will inherit values from the common ApiDefs which it can either replace or modify. We separate the API definition from the OpDef so we can evolve the API while remaining backwards compatible when interpretting old graphs. Overrides go in an "api_def.pbtxt" file with a text-format ApiDefs message. WARNING: Be *very* careful changing the API for any existing op -- you can change the semantics of existing code. These changes may need to wait until a major release of TensorFlow to avoid breaking our compatibility promises.
tensorflow.ApiDef
מסוג Protobuf.ApiDef כיתות מקוננות
מַחלָקָה | ApiDef.Arg | סוג Protobuf tensorflow.ApiDef.Arg | |
מִמְשָׁק | ApiDef.ArgOrBuilder | ||
מַחלָקָה | ApiDef.Attr | Description of the graph-construction-time configuration of this Op. | |
מִמְשָׁק | ApiDef.AttrOrBuilder | ||
מַחלָקָה | ApiDef.Builder | Used to specify and override the default API & behavior in the generated code for client languages, from what you would get from the OpDef alone. | |
מַחלָקָה | ApiDef.Endpoint | If you specify any endpoint, this will replace all of the inherited endpoints. | |
מִמְשָׁק | ApiDef.EndpointOrBuilder | ||
enum | ApiDef.Visibility | Protobuf enum tensorflow.ApiDef.Visibility |
קבועים
שיטות ציבוריות
בוליאני | שווה (Object obj) |
חוּט | getArgOrder (int index) List of original in_arg names to specify new argument order. |
com.google.protobuf.ByteString | getArgOrderBytes (int index) List of original in_arg names to specify new argument order. |
int | getArgOrderCount () List of original in_arg names to specify new argument order. |
com.google.protobuf.ProtocolStringList | getArgOrderList () List of original in_arg names to specify new argument order. |
ApiDef.Attr | getAttr (אינדקס int) repeated .tensorflow.ApiDef.Attr attr = 6; |
int | getAttrCount () repeated .tensorflow.ApiDef.Attr attr = 6; |
רשימה< ApiDef.Attr > | getAttrList () repeated .tensorflow.ApiDef.Attr attr = 6; |
ApiDef.AttrOrBuilder | getAttrOrBuilder (int index) repeated .tensorflow.ApiDef.Attr attr = 6; |
רשימה<? מרחיב את ApiDef.AttrOrBuilder > | getAttrOrBuilderList () repeated .tensorflow.ApiDef.Attr attr = 6; |
סטטי ApiDef | |
ApiDef | |
חוּט | getDeprecationMessage () If this op is deprecated, set deprecation message to the message that should be logged when this op is used. |
com.google.protobuf.ByteString | getDeprecationMessageBytes () If this op is deprecated, set deprecation message to the message that should be logged when this op is used. |
int | getDeprecationVersion () Major version when the op will be deleted. |
חוּט | getDescription () Additional, longer human-readable description of what the Op does. |
com.google.protobuf.ByteString | getDescriptionBytes () Additional, longer human-readable description of what the Op does. |
חוּט | getDescriptionPrefix () Modify an existing/inherited description by adding text to the beginning or end. |
com.google.protobuf.ByteString | getDescriptionPrefixBytes () Modify an existing/inherited description by adding text to the beginning or end. |
חוּט | getDescriptionSuffix () string description_suffix = 10; |
com.google.protobuf.ByteString | getDescriptionSuffixBytes () string description_suffix = 10; |
final static com.google.protobuf.Descriptors.Descriptor | |
ApiDef.Endpoint | getEndpoint (int index) repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
int | getEndpointCount () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
רשימה< ApiDef.Endpoint > | getEndpointList () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
ApiDef.EndpointOrBuilder | getEndpointOrBuilder (int index) repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
רשימה<? מרחיב את ApiDef.EndpointOrBuilder > | getEndpointOrBuilderList () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
חוּט | getGraphOpName () Name of the op (in the OpDef) to specify the API for. |
com.google.protobuf.ByteString | getGraphOpNameBytes () Name of the op (in the OpDef) to specify the API for. |
ApiDef.Arg | getInArg (int index) repeated .tensorflow.ApiDef.Arg in_arg = 4; |
int | getInArgCount () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
רשימה< ApiDef.Arg > | getInArgList () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
ApiDef.ArgOrBuilder | getInArgOrBuilder (int index) repeated .tensorflow.ApiDef.Arg in_arg = 4; |
רשימה<? מרחיב את ApiDef.ArgOrBuilder > | getInArgOrBuilderList () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
ApiDef.Arg | getOutArg (int index) repeated .tensorflow.ApiDef.Arg out_arg = 5; |
int | getOutArgCount () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
רשימה< ApiDef.Arg > | getOutArgList () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
ApiDef.ArgOrBuilder | getOutArgOrBuilder (int index) repeated .tensorflow.ApiDef.Arg out_arg = 5; |
רשימה<? מרחיב את ApiDef.ArgOrBuilder > | getOutArgOrBuilderList () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
int | |
חוּט | getSummary () One-line human-readable description of what the Op does. |
com.google.protobuf.ByteString | getSummaryBytes () One-line human-readable description of what the Op does. |
final com.google.protobuf.UnknownFieldSet | |
ApiDef.Visibility | getVisibility () .tensorflow.ApiDef.Visibility visibility = 2; |
int | getVisibilityValue () .tensorflow.ApiDef.Visibility visibility = 2; |
int | hashcode () |
בוליאנית סופית | |
סטטי ApiDef.Builder | newBuilder () |
סטטי ApiDef.Builder | newBuilder (אב טיפוס של ApiDef ) |
ApiDef.Builder | |
סטטי ApiDef | parseDelimitedFrom (קלט InputStream) |
סטטי ApiDef | parseDelimitedFrom (קלט InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
סטטי ApiDef | parseFrom (נתוני ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
סטטי ApiDef | parseFrom (קלט com.google.protobuf.CodedInputStream) |
סטטי ApiDef | parseFrom (נתוני byte[], com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
סטטי ApiDef | parseFrom (נתוני ByteBuffer) |
סטטי ApiDef | parseFrom (קלט com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
סטטי ApiDef | parseFrom (נתוני com.google.protobuf.ByteString) |
סטטי ApiDef | parseFrom (קלט InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
סטטי ApiDef | parseFrom (נתוני com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
סטָטִי | מנתח () |
ApiDef.Builder | toBuilder () |
בָּטֵל | writeTo (פלט com.google.protobuf.CodedOutputStream) |
שיטות בירושה
קבועים
גמר סטטי ציבורי ב- ARG_ORDER_FIELD_NUMBER
גמר סטטי ציבורי ATTR_FIELD_NUMBER
גמר סטטי ציבורי DEPRECATION_MESSAGE_FIELD_NUMBER
גמר סטטי ציבורי DEPRECATION_VERSION_FIELD_NUMBER
גמר סטטי ציבורי DESCRIPTION_FIELD_NUMBER
אינט סופי סטטי ציבורי DESCRIPTION_PREFIX_FIELD_NUMBER
גמר סטטי ציבורי DESCRIPTION_SUFFIX_FIELD_NUMBER
אינט סופי סטטי ציבורי ENDPOINT_FIELD_NUMBER
גמר סטטי ציבורי GRAPH_OP_NAME_FIELD_NUMBER
גמר סטטי ציבורי IN_ARG_FIELD_NUMBER
גמר סטטי ציבורי OUT_ARG_FIELD_NUMBER
גמר סטטי ציבורי SUMMARY_FIELD_NUMBER
אינט סופי סטטי ציבורי VISIBILITY_FIELD_NUMBER
שיטות ציבוריות
שווה ערך בוליאני ציבורי (Object obj)
מחרוזת ציבורית getArgOrder (int index)
List of original in_arg names to specify new argument order. Length of arg_order should be either empty to keep current order or match size of in_arg.
repeated string arg_order = 11;
public com.google.protobuf.ByteString getArgOrderBytes (int index)
List of original in_arg names to specify new argument order. Length of arg_order should be either empty to keep current order or match size of in_arg.
repeated string arg_order = 11;
public int getArgOrderCount ()
List of original in_arg names to specify new argument order. Length of arg_order should be either empty to keep current order or match size of in_arg.
repeated string arg_order = 11;
public com.google.protobuf.ProtocolStringList getArgOrderList ()
List of original in_arg names to specify new argument order. Length of arg_order should be either empty to keep current order or match size of in_arg.
repeated string arg_order = 11;
public int getAttrCount ()
repeated .tensorflow.ApiDef.Attr attr = 6;
Public ApiDef.AttrOrBuilder getAttrOrBuilder (אינדקס int)
repeated .tensorflow.ApiDef.Attr attr = 6;
רשימה ציבורית<? מרחיב את ApiDef.AttrOrBuilder > getAttrOrBuilderList ()
repeated .tensorflow.ApiDef.Attr attr = 6;
מחרוזת ציבורית getDeprecationMessage ()
If this op is deprecated, set deprecation message to the message that should be logged when this op is used. The message should indicate alternative op to use, if any.
string deprecation_message = 12;
public com.google.protobuf.ByteString getDeprecationMessageBytes ()
If this op is deprecated, set deprecation message to the message that should be logged when this op is used. The message should indicate alternative op to use, if any.
string deprecation_message = 12;
public int getDeprecationVersion ()
Major version when the op will be deleted. For e.g. set this value to 2 if op API should be removed in TensorFlow 2.0 and deprecated in versions before that.
int32 deprecation_version = 13;
מחרוזת ציבורית getDescription ()
Additional, longer human-readable description of what the Op does.
string description = 8;
public com.google.protobuf.ByteString getDescriptionBytes ()
Additional, longer human-readable description of what the Op does.
string description = 8;
מחרוזת ציבורית getDescriptionPrefix ()
Modify an existing/inherited description by adding text to the beginning or end.
string description_prefix = 9;
public com.google.protobuf.ByteString getDescriptionPrefixBytes ()
Modify an existing/inherited description by adding text to the beginning or end.
string description_prefix = 9;
מחרוזת ציבורית getDescriptionSuffix ()
string description_suffix = 10;
public com.google.protobuf.ByteString getDescriptionSuffixBytes ()
string description_suffix = 10;
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public int getEndpointCount ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
רשימה ציבורית< ApiDef.Endpoint > getEndpointList ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
Public ApiDef.EndpointOrBuilder getEndpointOrBuilder (int index)
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
רשימה ציבורית<? מרחיב את ApiDef.EndpointOrBuilder > getEndpointOrBuilderList ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
מחרוזת ציבורית getGraphOpName ()
Name of the op (in the OpDef) to specify the API for.
string graph_op_name = 1;
public com.google.protobuf.ByteString getGraphOpNameBytes ()
Name of the op (in the OpDef) to specify the API for.
string graph_op_name = 1;
public int getInArgCount ()
repeated .tensorflow.ApiDef.Arg in_arg = 4;
Public ApiDef.ArgOrBuilder getInArgOrBuilder (int index)
repeated .tensorflow.ApiDef.Arg in_arg = 4;
רשימה ציבורית<? מרחיב את ApiDef.ArgOrBuilder > getInArgOrBuilderList ()
repeated .tensorflow.ApiDef.Arg in_arg = 4;
public int getOutArgCount ()
repeated .tensorflow.ApiDef.Arg out_arg = 5;
Public ApiDef.ArgOrBuilder getOutArgOrBuilder (אינדקס int)
repeated .tensorflow.ApiDef.Arg out_arg = 5;
רשימה ציבורית<? מרחיב את ApiDef.ArgOrBuilder > getOutArgOrBuilderList ()
repeated .tensorflow.ApiDef.Arg out_arg = 5;
פּוּמְבֵּי getParserForType ()
public int getSerializedSize ()
מחרוזת ציבורית getSummary ()
One-line human-readable description of what the Op does.
string summary = 7;
public com.google.protobuf.ByteString getSummaryBytes ()
One-line human-readable description of what the Op does.
string summary = 7;
public final com.google.protobuf.UnknownFieldSet getUnknownFields ()
public int getVisibilityValue ()
.tensorflow.ApiDef.Visibility visibility = 2;
public int hashCode ()
בוליאני הסופי הציבורי הוא אתחול ()
Public static ApiDef parseDelimitedFrom (קלט InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
IOException |
---|
ParseFrom של ApiDef סטטי ציבורי (נתוני ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
InvalidProtocolBufferException |
---|
ניתוח ApiDef סטטי ציבורי (נתוני byte[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
InvalidProtocolBufferException |
---|
ParseFrom של ApiDef סטטי ציבורי (קלט com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
IOException |
---|
ParseFrom של ApiDef סטטי ציבורי (נתוני com.google.protobuf.ByteString)
זורק
InvalidProtocolBufferException |
---|
ParseFrom של ApiDef סטטי ציבורי (קלט InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
IOException |
---|
ParseFrom של ApiDef סטטי ציבורי (נתוני com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
InvalidProtocolBufferException |
---|
סטטי ציבורי מנתח ()
public void writeTo (פלט com.google.protobuf.CodedOutputStream)
זורק
IOException |
---|