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 | ||
сорт | АпиДеф.Аттр | 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. | |
сорт | АпиДеф.Конечная точка | If you specify any endpoint, this will replace all of the inherited endpoints. | |
интерфейс | АпиDef.EndpointOrBuilder | ||
перечисление | ApiDef.Visibility | Protobuf enum 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 |
Публичные методы
логическое значение | равно (Объект obj) |
Нить | 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 | getArgOrderList () List of original in_arg names to specify new argument order. |
АпиДеф.Аттр | getAttr (целевой индекс) repeated .tensorflow.ApiDef.Attr attr = 6; |
интервал | getAttrCount () 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 | |
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. |
интервал | getDeprecationVersion () Major version when the op will be deleted. |
Нить | получитьОписание () 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; |
окончательный статический com.google.protobuf.Descriptors.Descriptor | |
АпиДеф.Конечная точка | getEndpoint (целочисленный индекс) repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
интервал | getEndpointCount () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
Список< ApiDef.Endpoint > | getEndpointList () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
АпиDef.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. |
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 > | getInArgList () 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 | getSummaryBytes () One-line human-readable description of what the Op does. |
окончательный com.google.protobuf.UnknownFieldSet | |
ApiDef.Visibility | получитьВидимость () .tensorflow.ApiDef.Visibility visibility = 2; |
интервал | getVisibilityValue () .tensorflow.ApiDef.Visibility visibility = 2; |
интервал | хэш-код () |
последнее логическое значение | |
статический ApiDef.Builder | |
статический ApiDef.Builder | newBuilder (прототип ApiDef ) |
ApiDef.Builder | |
статический APIDef | parseDelimitedFrom (входной поток) |
статический 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 (ввод входного потока, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry) |
статический APIDef | parseFrom (данные com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry) |
статический | парсер () |
ApiDef.Builder | toBuilder () |
пустота | writeTo (вывод com.google.protobuf.CodedOutputStream) |
Унаследованные методы
логическое значение | равно (Объект arg0) |
последний класс<?> | получитьКласс () |
интервал | хэш-код () |
окончательная пустота | уведомить () |
окончательная пустота | уведомитьВсе () |
Нить | toString () |
окончательная пустота | подождать (длинный 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. |
абстрактный int | getArgOrderCount () List of original in_arg names to specify new argument order. |
абстрактный список<String> | getArgOrderList () List of original in_arg names to specify new argument order. |
абстрактный ApiDef.Attr | getAttr (целевой индекс) 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 (индекс целого числа) 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. |
абстрактный 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. |
абстрактная строка | получитьОписание () 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; |
абстрактный ApiDef.Endpoint | getEndpoint (целочисленный индекс) 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) 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 (целочисленный индекс) 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 (индекс целого числа) 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; |
абстрактный int | 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 | getSummaryBytes () One-line human-readable description of what the Op does. |
абстрактный ApiDef.Visibility | получитьВидимость () .tensorflow.ApiDef.Visibility visibility = 2; |
абстрактный int | getVisibilityValue () .tensorflow.ApiDef.Visibility visibility = 2; |
Константы
общедоступный статический окончательный int ARG_ORDER_FIELD_NUMBER
общедоступный статический окончательный int ATTR_FIELD_NUMBER
общедоступный статический окончательный int DEPRECATION_MESSAGE_FIELD_NUMBER
общедоступный статический окончательный int DEPRECATION_VERSION_FIELD_NUMBER
общедоступный статический окончательный int DESCRIPTION_FIELD_NUMBER
общедоступный статический окончательный int DESCRIPTION_PREFIX_FIELD_NUMBER
общедоступный статический окончательный int DESCRIPTION_SUFFIX_FIELD_NUMBER
общедоступный статический окончательный int ENDPOINT_FIELD_NUMBER
общедоступный статический окончательный int GRAPH_OP_NAME_FIELD_NUMBER
общедоступный статический окончательный int IN_ARG_FIELD_NUMBER
общедоступный статический окончательный int OUT_ARG_FIELD_NUMBER
общедоступный статический окончательный int SUMMARY_FIELD_NUMBER
общедоступный статический окончательный int VISIBILITY_FIELD_NUMBER
Публичные методы
общедоступное логическое значение равно (Object obj)
публичная строка getArgOrder (индекс 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;
public 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;
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;
общедоступный 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;
общедоступный статический окончательный 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)
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)
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;
публичный финал com.google.protobuf.UnknownFieldSet getUnknownFields ()
public int getVisibilityValue ()
.tensorflow.ApiDef.Visibility visibility = 2;
public int hashCode ()
публичное окончательное логическое значение isInitialized ()
общедоступный статический ApiDef parseDelimitedFrom (ввод InputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
Броски
Исключение IO |
---|
общедоступный статический ApiDef parseFrom (данные ByteBuffer, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
Броски
Инвалидпротоколбуфферисключение |
---|
общедоступный статический анализ ApiDef (вход com.google.protobuf.CodedInputStream)
Броски
Исключение IO |
---|
общедоступный статический ApiDef parseFrom (данные byte[], com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
Броски
Инвалидпротоколбуфферисключение |
---|
общедоступный статический ApiDef parseFrom (данные ByteBuffer)
Броски
Инвалидпротоколбуфферисключение |
---|
общедоступный статический анализ ApiDef (вход com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
Броски
Исключение IO |
---|
общедоступный статический анализ ApiDef (данные com.google.protobuf.ByteString)
Броски
Инвалидпротоколбуфферисключение |
---|
общедоступный статический ApiDef parseFrom (вход InputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
Броски
Исключение IO |
---|
общедоступный статический ApiDef parseFrom (данные com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
Броски
Инвалидпротоколбуфферисключение |
---|
общественный статический парсер ()
public void writeTo (вывод com.google.protobuf.CodedOutputStream)
Броски
Исключение IO |
---|