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
فئات متداخلة
فصل | 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 | ||
التعداد | ApiDef.Visibility | Protobuf التعداد tensorflow.ApiDef.Visibility |
الثوابت
كثافة العمليات | 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 |
الأساليب العامة
منطقية | يساوي (كائن كائن) |
خيط | getArgOrder (فهرس كثافة العمليات) List of original in_arg names to specify new argument order. |
com.google.protobuf.ByteString | getArgOrderBytes (فهرس كثافة العمليات) List of original in_arg names to specify new argument order. |
كثافة العمليات | getArgOrderCount () List of original in_arg names to specify new argument order. |
com.google.protobuf.ProtocolStringList | قائمة getArgOrder () List of original in_arg names to specify new argument order. |
ApiDef.Attr | getAttr (فهرس كثافة العمليات) repeated .tensorflow.ApiDef.Attr attr = 6; |
كثافة العمليات | الحصول علىAttrCount () repeated .tensorflow.ApiDef.Attr attr = 6; |
القائمة< ApiDef.Attr > | getAttrList () repeated .tensorflow.ApiDef.Attr attr = 6; |
ApiDef.AttrOrBuilder | getAttrOrBuilder (فهرس كثافة العمليات) repeated .tensorflow.ApiDef.Attr attr = 6; |
القائمة<؟ يمتد ApiDef.AttrOrBuilder > | getAttrOrBuilderList () repeated .tensorflow.ApiDef.Attr attr = 6; |
ثابت ApiDef | |
أبيديف | |
خيط | رسالة الإهمال () If this op is deprecated, set deprecation message to the message that should be logged when this op is used. |
com.google.protobuf.ByteString | الحصول على DeprecationMessageBytes () If this op is deprecated, set deprecation message to the message that should be logged when this op is used. |
كثافة العمليات | الحصول على نسخة الإهمال () Major version when the op will be deleted. |
خيط | الحصول على الوصف () Additional, longer human-readable description of what the Op does. |
com.google.protobuf.ByteString | الحصول على الوصف بايت () Additional, longer human-readable description of what the Op does. |
خيط | الحصول على الوصفبادئة () Modify an existing/inherited description by adding text to the beginning or end. |
com.google.protobuf.ByteString | الحصول على الوصفPrefixBytes () Modify an existing/inherited description by adding text to the beginning or end. |
خيط | الحصول على وصف لاحقة () string description_suffix = 10; |
com.google.protobuf.ByteString | الحصول على الوصفSuffixBytes () string description_suffix = 10; |
النهائي الثابت com.google.protobuf.Descriptors.Descriptor | |
ApiDef.Endpoint | الحصول على نقطة النهاية (مؤشر كثافة العمليات) repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
كثافة العمليات | الحصول على نقطة النهاية () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
القائمة< ApiDef.Endpoint > | قائمة النهاية () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
ApiDef.EndpointOrBuilder | getEndpointOrBuilder (فهرس كثافة العمليات) repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
القائمة<؟ يمتد ApiDef.EndpointOrBuilder > | الحصول على EndpointOrBuilderList () 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 (فهرس كثافة العمليات) repeated .tensorflow.ApiDef.Arg in_arg = 4; |
كثافة العمليات | getInArgCount () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
القائمة< ApiDef.Arg > | قائمة getInArg () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
ApiDef.ArgOrBuilder | getInArgOrBuilder (فهرس كثافة العمليات) repeated .tensorflow.ApiDef.Arg in_arg = 4; |
القائمة<؟ يمتد ApiDef.ArgOrBuilder > | getInArgOrBuilderList () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
ApiDef.Arg | getOutArg (مؤشر كثافة العمليات) repeated .tensorflow.ApiDef.Arg out_arg = 5; |
كثافة العمليات | getOutArgCount () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
القائمة< ApiDef.Arg > | getOutArgList () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
ApiDef.ArgOrBuilder | getOutArgOrBuilder (فهرس كثافة العمليات) repeated .tensorflow.ApiDef.Arg out_arg = 5; |
القائمة<؟ يمتد ApiDef.ArgOrBuilder > | getOutArgOrBuilderList () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
كثافة العمليات | |
خيط | الحصول على ملخص () One-line human-readable description of what the Op does. |
com.google.protobuf.ByteString | الحصول على ملخص بايت () One-line human-readable description of what the Op does. |
النهائي com.google.protobuf.UnknownFieldSet | |
ApiDef.Visibility | الحصول على الرؤية () .tensorflow.ApiDef.Visibility visibility = 2; |
كثافة العمليات | الحصول على قيمة الرؤية () .tensorflow.ApiDef.Visibility visibility = 2; |
كثافة العمليات | رمز التجزئة () |
منطقية نهائية | تمت التهيئة () |
ثابت ApiDef.Builder | منشئ جديد () |
ثابت 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 (بيانات البايت[]، com.google.protobuf.ExtensionRegistryLite ExtensionRegistry) |
ثابت ApiDef | parseFrom (بيانات ByteBuffer) |
ثابت ApiDef | parseFrom (com.google.protobuf.CodedInputStream input، 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 data، com.google.protobuf.ExtensionRegistryLite ExtensionRegistry) |
ثابت | محلل () |
ApiDef.Builder | إلى البناء () |
فارغ | writeTo (com.google.protobuf.CodedOutputStream الإخراج) |
الطرق الموروثة
منطقية | يساوي (الكائن arg0) |
الدرجة النهائية<?> | الحصول على كلاس () |
كثافة العمليات | رمز التجزئة () |
الفراغ النهائي | إعلام () |
الفراغ النهائي | إعلام الكل () |
خيط | إلى سلسلة () |
الفراغ النهائي | انتظر (طويل arg0، int arg1) |
الفراغ النهائي | انتظر (طويل arg0) |
الفراغ النهائي | انتظر () |
سلسلة مجردة | getArgOrder (فهرس كثافة العمليات) List of original in_arg names to specify new argument order. |
مجردة com.google.protobuf.ByteString | getArgOrderBytes (فهرس كثافة العمليات) List of original in_arg names to specify new argument order. |
كثافة العمليات مجردة | getArgOrderCount () List of original in_arg names to specify new argument order. |
قائمة مجردة <سلسلة> | قائمة getArgOrder () List of original in_arg names to specify new argument order. |
مجردة ApiDef.Attr | getAttr (فهرس كثافة العمليات) repeated .tensorflow.ApiDef.Attr attr = 6; |
كثافة العمليات مجردة | الحصول علىAttrCount () repeated .tensorflow.ApiDef.Attr attr = 6; |
قائمة مجردة< ApiDef.Attr > | getAttrList () repeated .tensorflow.ApiDef.Attr attr = 6; |
مجردة ApiDef.AttrOrBuilder | getAttrOrBuilder (فهرس كثافة العمليات) repeated .tensorflow.ApiDef.Attr attr = 6; |
قائمة مجردة <؟ يمتد ApiDef.AttrOrBuilder > | getAttrOrBuilderList () repeated .tensorflow.ApiDef.Attr attr = 6; |
سلسلة مجردة | رسالة الإهمال () If this op is deprecated, set deprecation message to the message that should be logged when this op is used. |
مجردة com.google.protobuf.ByteString | الحصول على DeprecationMessageBytes () If this op is deprecated, set deprecation message to the message that should be logged when this op is used. |
كثافة العمليات مجردة | الحصول على نسخة الإهمال () Major version when the op will be deleted. |
سلسلة مجردة | الحصول على الوصف () Additional, longer human-readable description of what the Op does. |
مجردة com.google.protobuf.ByteString | الحصول على الوصف بايت () Additional, longer human-readable description of what the Op does. |
سلسلة مجردة | الحصول على الوصفبادئة () Modify an existing/inherited description by adding text to the beginning or end. |
مجردة com.google.protobuf.ByteString | الحصول على الوصفPrefixBytes () Modify an existing/inherited description by adding text to the beginning or end. |
سلسلة مجردة | الحصول على وصف لاحقة () string description_suffix = 10; |
مجردة com.google.protobuf.ByteString | الحصول على الوصفSuffixBytes () string description_suffix = 10; |
مجردة ApiDef.Endpoint | الحصول على نقطة النهاية (مؤشر كثافة العمليات) repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
كثافة العمليات مجردة | الحصول على نقطة النهاية () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
قائمة مجردة < ApiDef.Endpoint > | الحصول على قائمة النهاية () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
مجردة ApiDef.EndpointOrBuilder | getEndpointOrBuilder (فهرس كثافة العمليات) repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
قائمة مجردة <؟ يمتد ApiDef.EndpointOrBuilder > | الحصول على EndpointOrBuilderList () 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 (فهرس كثافة العمليات) repeated .tensorflow.ApiDef.Arg in_arg = 4; |
كثافة العمليات مجردة | getInArgCount () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
قائمة مجردة< ApiDef.Arg > | قائمة getInArg () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
مجردة ApiDef.ArgOrBuilder | getInArgOrBuilder (فهرس كثافة العمليات) repeated .tensorflow.ApiDef.Arg in_arg = 4; |
قائمة مجردة <؟ يمتد ApiDef.ArgOrBuilder > | getInArgOrBuilderList () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
مجردة ApiDef.Arg | getOutArg (مؤشر كثافة العمليات) repeated .tensorflow.ApiDef.Arg out_arg = 5; |
كثافة العمليات مجردة | getOutArgCount () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
قائمة مجردة< ApiDef.Arg > | getOutArgList () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
مجردة ApiDef.ArgOrBuilder | getOutArgOrBuilder (فهرس كثافة العمليات) repeated .tensorflow.ApiDef.Arg out_arg = 5; |
قائمة مجردة <؟ يمتد ApiDef.ArgOrBuilder > | getOutArgOrBuilderList () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
سلسلة مجردة | الحصول على ملخص () One-line human-readable description of what the Op does. |
مجردة com.google.protobuf.ByteString | الحصول على ملخص بايت () One-line human-readable description of what the Op does. |
مجردة ApiDef.Visibility | الحصول على الرؤية () .tensorflow.ApiDef.Visibility visibility = 2; |
كثافة العمليات مجردة | الحصول على قيمة الرؤية () .tensorflow.ApiDef.Visibility visibility = 2; |
الثوابت
العدد النهائي الثابت العام 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
int النهائي الثابت العام 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 العامة (فهرس كثافة العمليات)
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;
com.google.protobuf.ByteString getArgOrderBytes العام (مؤشر int)
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;
int public 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;
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;
int public getAttrCount ()
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;
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;
int public 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;
الحصول على سلسلة عامة ()
Additional, longer human-readable description of what the Op does.
string description = 8;
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;
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;
com.google.protobuf.ByteString العامة getDescriptionSuffixBytes ()
string description_suffix = 10;
النهائي العام الثابت com.google.protobuf.Descriptors.Descriptor getDescriptor ()
كثافة العمليات العامة getEndpointCount ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
القائمة العامة< ApiDef.Endpoint > getEndpointList ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
ApiDef.EndpointOrBuilder العام getEndpointOrBuilder (مؤشر int)
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;
com.google.protobuf.ByteString العامة getGraphOpNameBytes ()
Name of the op (in the OpDef) to specify the API for.
string graph_op_name = 1;
int public getInArgCount ()
repeated .tensorflow.ApiDef.Arg in_arg = 4;
ApiDef.ArgOrBuilder العام getInArgOrBuilder (فهرس كثافة العمليات)
repeated .tensorflow.ApiDef.Arg in_arg = 4;
القائمة العامة <؟ يمتد ApiDef.ArgOrBuilder > getInArgOrBuilderList ()
repeated .tensorflow.ApiDef.Arg in_arg = 4;
int public getOutArgCount ()
repeated .tensorflow.ApiDef.Arg out_arg = 5;
ApiDef.ArgOrBuilder العام getOutArgOrBuilder (فهرس كثافة العمليات)
repeated .tensorflow.ApiDef.Arg out_arg = 5;
القائمة العامة <؟ يمتد ApiDef.ArgOrBuilder > getOutArgOrBuilderList ()
repeated .tensorflow.ApiDef.Arg out_arg = 5;
عام الحصول على بارسيرفورتيب ()
int public getSerializedSize ()
سلسلة getSummary العامة ()
One-line human-readable description of what the Op does.
string summary = 7;
com.google.protobuf.ByteString العامة getSummaryBytes ()
One-line human-readable description of what the Op does.
string summary = 7;
النهائي العام com.google.protobuf.UnknownFieldSet getUnknownFields ()
int public getVisibilityValue ()
.tensorflow.ApiDef.Visibility visibility = 2;
كود التجزئة الدولي العام ()
تمت تهيئة القيمة المنطقية النهائية العامة ()
ApiDef parseDelimitedFrom الثابت العام (إدخال InputStream، com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
رميات
IOEException |
---|
تحليل ApiDef العام الثابت (بيانات ByteBuffer، com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
رميات
InvalidProtocolBufferException |
---|
تحليل ApiDef العام الثابت (بيانات البايت []، com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
رميات
InvalidProtocolBufferException |
---|
تحليل ApiDef العام الثابت (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
رميات
IOEException |
---|
تحليل ApiDef العام الثابت (بيانات com.google.protobuf.ByteString)
رميات
InvalidProtocolBufferException |
---|
تحليل ApiDef العام الثابت (إدخال InputStream، com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
رميات
IOEException |
---|
تحليل ApiDef العام الثابت (com.google.protobuf.ByteString data، com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
رميات
InvalidProtocolBufferException |
---|
ساكنة عامة محلل ()
الكتابة إلى الفراغ العام (إخراج com.google.protobuf.CodedOutputStream)
رميات
IOEException |
---|