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
Klasy zagnieżdżone
klasa | ApiDef.Arg | Protobuf typu tensorflow.ApiDef.Arg | |
interfejs | ApiDef.ArgOrBuilder | ||
klasa | ApiDef.Attr | Description of the graph-construction-time configuration of this Op. | |
interfejs | ApiDef.AttrOrBuilder | ||
klasa | Konstruktor ApiDef | 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. | |
klasa | Punkt końcowy ApiDef | If you specify any endpoint, this will replace all of the inherited endpoints. | |
interfejs | ApiDef.EndpointOrBuilder | ||
wyliczenie | Widoczność ApiDef | Protobuf enum tensorflow.ApiDef.Visibility |
Stałe
Metody publiczne
wartość logiczna | równa się (obiekt obiektu) |
Smyczkowy | getArgOrder (indeks int) List of original in_arg names to specify new argument order. |
com.google.protobuf.ByteString | getArgOrderBytes (indeks int) List of original in_arg names to specify new argument order. |
wew | 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 (indeks int) repeated .tensorflow.ApiDef.Attr attr = 6; |
wew | getAttrCount () repeated .tensorflow.ApiDef.Attr attr = 6; |
Lista< ApiDef.Attr > | getAttrList () repeated .tensorflow.ApiDef.Attr attr = 6; |
ApiDef.AttrOrBuilder | getAttrOrBuilder (indeks int) repeated .tensorflow.ApiDef.Attr attr = 6; |
Lista<? rozszerza ApiDef.AttrOrBuilder > | getAttrOrBuilderList () repeated .tensorflow.ApiDef.Attr attr = 6; |
statyczny ApiDef | |
ApiDef | |
Smyczkowy | pobierz wiadomość o wycofaniu () 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. |
wew | getDeprecationVersion () Major version when the op will be deleted. |
Smyczkowy | pobierz opis () 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. |
Smyczkowy | pobierzPrefiksOpisu () 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. |
Smyczkowy | getDescriptionSuffix () string description_suffix = 10; |
com.google.protobuf.ByteString | getDescriptionSuffixBytes () string description_suffix = 10; |
końcowy statyczny com.google.protobuf.Descriptors.Descriptor | |
Punkt końcowy ApiDef | getEndpoint (indeks int) repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
wew | pobierz liczbę punktów końcowych () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
Lista< ApiDef.Endpoint > | getEndpointList () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
ApiDef.EndpointOrBuilder | getEndpointOrBuilder (indeks int) repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
Lista<? rozszerza ApiDef.EndpointOrBuilder > | getEndpointOrBuilderList () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
Smyczkowy | 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 (indeks int) repeated .tensorflow.ApiDef.Arg in_arg = 4; |
wew | getInArgCount () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
Lista< ApiDef.Arg > | getInArgList () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
ApiDef.ArgOrBuilder | getInArgOrBuilder (indeks int) repeated .tensorflow.ApiDef.Arg in_arg = 4; |
Lista<? rozszerza ApiDef.ArgOrBuilder > | getInArgOrBuilderList () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
ApiDef.Arg | getOutArg (indeks int) repeated .tensorflow.ApiDef.Arg out_arg = 5; |
wew | getOutArgCount () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
Lista< ApiDef.Arg > | getOutArgList () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
ApiDef.ArgOrBuilder | getOutArgOrBuilder (indeks int) repeated .tensorflow.ApiDef.Arg out_arg = 5; |
Lista<? rozszerza ApiDef.ArgOrBuilder > | getOutArgOrBuilderList () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
wew | |
Smyczkowy | pobierz podsumowanie () 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. |
końcowy com.google.protobuf.UnknownFieldSet | |
Widoczność ApiDef | uzyskaj widoczność () .tensorflow.ApiDef.Visibility visibility = 2; |
wew | getVisibilityValue () .tensorflow.ApiDef.Visibility visibility = 2; |
wew | hashCode () |
końcowa wartość logiczna | |
statyczny ApiDef.Builder | nowyBuilder () |
statyczny ApiDef.Builder | newBuilder (prototyp ApiDef ) |
Konstruktor ApiDef | |
statyczny ApiDef | parseDelimitedFrom (wejście strumienia wejściowego) |
statyczny ApiDef | parseDelimitedFrom (dane wejścioweInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry) |
statyczny ApiDef | parseFrom (dane ByteBuffer, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry) |
statyczny ApiDef | parseFrom (wejście com.google.protobuf.CodedInputStream) |
statyczny ApiDef | parseFrom (bajt [] dane, com.google.protobuf.ExtensionRegistryLite rozszerzenieRegistry) |
statyczny ApiDef | parseFrom (dane ByteBuffer) |
statyczny ApiDef | parseFrom (wejście com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry) |
statyczny ApiDef | parseFrom (dane com.google.protobuf.ByteString) |
statyczny ApiDef | parseFrom (dane wejścioweInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry) |
statyczny ApiDef | parseFrom (dane com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry) |
statyczny | parser () |
Konstruktor ApiDef | |
próżnia | writeTo (wyjście com.google.protobuf.CodedOutputStream) |
Metody dziedziczone
Stałe
publiczny statyczny końcowy int ARG_ORDER_FIELD_NUMBER
publiczny statyczny końcowy int ATTR_FIELD_NUMBER
publiczny statyczny końcowy int DEPRECATION_MESSAGE_FIELD_NUMBER
publiczny statyczny końcowy int DEPRECATION_VERSION_FIELD_NUMBER
publiczny statyczny końcowy int DESCRIPTION_FIELD_NUMBER
publiczny statyczny końcowy int DESCRIPTION_PREFIX_FIELD_NUMBER
publiczny statyczny końcowy int DESCRIPTION_SUFFIX_FIELD_NUMBER
publiczny statyczny końcowy int ENDPOINT_FIELD_NUMBER
publiczny statyczny końcowy int GRAPH_OP_NAME_FIELD_NUMBER
publiczny statyczny końcowy int IN_ARG_FIELD_NUMBER
publiczny statyczny końcowy int OUT_ARG_FIELD_NUMBER
publiczny statyczny końcowy int SUMMARY_FIELD_NUMBER
publiczny statyczny końcowy int VISIBILITY_FIELD_NUMBER
Metody publiczne
publiczna wartość logiczna równa się (obiekt obiektu)
public String getArgOrder (indeks 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 (indeks 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;
publiczny 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;
publiczny int getAttrCount ()
repeated .tensorflow.ApiDef.Attr attr = 6;
public ApiDef.AttrOrBuilder getAttrOrBuilder (indeks int)
repeated .tensorflow.ApiDef.Attr attr = 6;
lista publiczna<? rozszerza ApiDef.AttrOrBuilder > getAttrOrBuilderList ()
repeated .tensorflow.ApiDef.Attr attr = 6;
publiczny ciąg 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;
public String 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;
public String 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;
public String getDescriptionSuffix ()
string description_suffix = 10;
public com.google.protobuf.ByteString getDescriptionSuffixBytes ()
string description_suffix = 10;
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
publiczny int getEndpointCount ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
public List< ApiDef.Endpoint > getEndpointList ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
public ApiDef.EndpointOrBuilder getEndpointOrBuilder (indeks int)
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
lista publiczna<? rozszerza ApiDef.EndpointOrBuilder > getEndpointOrBuilderList ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
publiczny ciąg 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;
publiczny int getInArgCount ()
repeated .tensorflow.ApiDef.Arg in_arg = 4;
public ApiDef.ArgOrBuilder getInArgOrBuilder (indeks int)
repeated .tensorflow.ApiDef.Arg in_arg = 4;
lista publiczna<? rozszerza ApiDef.ArgOrBuilder > getInArgOrBuilderList ()
repeated .tensorflow.ApiDef.Arg in_arg = 4;
publiczny int getOutArgCount ()
repeated .tensorflow.ApiDef.Arg out_arg = 5;
public ApiDef.ArgOrBuilder getOutArgOrBuilder (indeks int)
repeated .tensorflow.ApiDef.Arg out_arg = 5;
lista publiczna<? rozszerza ApiDef.ArgOrBuilder > getOutArgOrBuilderList ()
repeated .tensorflow.ApiDef.Arg out_arg = 5;
publiczny getParserForType ()
publiczny int getSerializedSize ()
public String 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;
publiczny finał com.google.protobuf.UnknownFieldSet getUnknownFields ()
public int getVisibilityValue ()
.tensorflow.ApiDef.Visibility visibility = 2;
publiczny int hashCode ()
publiczna końcowa wartość logiczna isInitialized ()
publiczny statyczny ApiDef parseDelimitedFrom (dane wejściowe wejściowe, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
Rzuca
Wyjątek IO |
---|
publiczny statyczny ApiDef parseFrom (dane ByteBuffer, com.google.protobuf.ExtensionRegistryLite rozszerzenieRegistry)
Rzuca
Nieprawidłowy wyjątekProtocolBufferException |
---|
publiczny statyczny ApiDef parseFrom (wejście com.google.protobuf.CodedInputStream)
Rzuca
Wyjątek IO |
---|
publiczny statyczny ApiDef parseFrom (bajt [] dane, com.google.protobuf.ExtensionRegistryLite rozszerzenieRegistry)
Rzuca
Nieprawidłowy wyjątekProtocolBufferException |
---|
publiczny statyczny ApiDef parseFrom (dane ByteBuffer)
Rzuca
Nieprawidłowy wyjątekProtocolBufferException |
---|
publiczny statyczny ApiDef parseFrom (wejście com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite rozszerzenieRegistry)
Rzuca
Wyjątek IO |
---|
publiczny statyczny ApiDef parseFrom (dane com.google.protobuf.ByteString)
Rzuca
Nieprawidłowy wyjątekProtocolBufferException |
---|
publiczny statyczny ApiDef parseFrom (dane wejściowe wejściowe, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
Rzuca
Wyjątek IO |
---|
publiczny statyczny ApiDef parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite rozszerzenieRegistry)
Rzuca
Nieprawidłowy wyjątekProtocolBufferException |
---|
publiczna statyka parser ()
public void writeTo (wyjście com.google.protobuf.CodedOutputStream)
Rzuca
Wyjątek IO |
---|