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.Protobuf türü
tensorflow.ApiDef
İç İçe Sınıflar
sınıf | ApiDef.Arg | Protobuf tipi tensorflow.ApiDef.Arg | |
arayüz | ApiDef.ArgOrBuilder | ||
sınıf | ApiDef.Attr | Description of the graph-construction-time configuration of this Op. | |
arayüz | ApiDef.AttrOrBuilder | ||
sınıf | 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. | |
sınıf | ApiDef.Endpoint | If you specify any endpoint, this will replace all of the inherited endpoints. | |
arayüz | ApiDef.EndpointOrBuilder | ||
numaralandırma | ApiDef.Görünürlük | Protobuf enum tensorflow.ApiDef.Visibility |
Sabitler
Genel Yöntemler
boolean | eşittir (Nesne nesnesi) |
Sicim | getArgOrder (int dizini) List of original in_arg names to specify new argument order. |
com.google.protobuf.ByteString | getArgOrderBytes (int dizini) 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 dizini) repeated .tensorflow.ApiDef.Attr attr = 6; |
int | getAttrCount () repeated .tensorflow.ApiDef.Attr attr = 6; |
Liste< ApiDef.Attr > | getAttrList () repeated .tensorflow.ApiDef.Attr attr = 6; |
ApiDef.AttrOrBuilder | getAttrOrBuilder (int dizini) repeated .tensorflow.ApiDef.Attr attr = 6; |
Liste<? ApiDef.AttrOrBuilder'ı genişletir > | getAttrOrBuilderList () repeated .tensorflow.ApiDef.Attr attr = 6; |
statik ApiDef | |
ApiDef | |
Sicim | 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. |
Sicim | 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. |
Sicim | 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. |
Sicim | getDescriptionSuffix () string description_suffix = 10; |
com.google.protobuf.ByteString | getDescriptionSuffixBytes () string description_suffix = 10; |
final statik com.google.protobuf.Descriptors.Descriptor | |
ApiDef.Endpoint | getEndpoint (int dizini) repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
int | getEndpointCount () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
Liste< ApiDef.Endpoint > | getEndpointList () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
ApiDef.EndpointOrBuilder | getEndpointOrBuilder (int dizini) repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
Liste<? ApiDef.EndpointOrBuilder'ı genişletir > | getEndpointOrBuilderList () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
Sicim | 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 dizini) repeated .tensorflow.ApiDef.Arg in_arg = 4; |
int | getInArgCount () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
Liste< ApiDef.Arg > | getInArgList () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
ApiDef.ArgOrBuilder | getInArgOrBuilder (int dizini) repeated .tensorflow.ApiDef.Arg in_arg = 4; |
Liste<? ApiDef.ArgOrBuilder'ı genişletir > | getInArgOrBuilderList () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
ApiDef.Arg | getOutArg (int dizini) repeated .tensorflow.ApiDef.Arg out_arg = 5; |
int | getOutArgCount () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
Liste< ApiDef.Arg > | getOutArgList () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
ApiDef.ArgOrBuilder | getOutArgOrBuilder (int dizini) repeated .tensorflow.ApiDef.Arg out_arg = 5; |
Liste<? ApiDef.ArgOrBuilder'ı genişletir > | getOutArgOrBuilderList () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
int | |
Sicim | getÖzet () 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.Görünürlük | getVisibility () .tensorflow.ApiDef.Visibility visibility = 2; |
int | getVisibilityValue () .tensorflow.ApiDef.Visibility visibility = 2; |
int | hashKodu () |
son boole değeri | Başlatıldı () |
statik ApiDef.Builder | yeniİnşaatçı () |
statik ApiDef.Builder | newBuilder ( ApiDef prototipi) |
ApiDef.Builder | |
statik ApiDef | parseDelimitedFrom (InputStream girişi) |
statik ApiDef | parseDelimitedFrom (InputStream girişi, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
statik ApiDef | parseFrom (ByteBuffer verileri, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
statik ApiDef | ayrıştırmaFrom (com.google.protobuf.CodedInputStream girişi) |
statik ApiDef | parseFrom (byte[] verileri, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
statik ApiDef | parseFrom (ByteBuffer verileri) |
statik ApiDef | parseFrom (com.google.protobuf.CodedInputStream girişi, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
statik ApiDef | ayrıştırmaFrom (com.google.protobuf.ByteString verileri) |
statik ApiDef | parseFrom (InputStream girişi, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
statik ApiDef | parseFrom (com.google.protobuf.ByteString verileri, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
statik | ayrıştırıcı () |
ApiDef.Builder | inşaatçıya () |
geçersiz | writeTo (com.google.protobuf.CodedOutputStream çıkışı) |
Kalıtsal Yöntemler
Sabitler
genel statik final int ARG_ORDER_FIELD_NUMBER
genel statik final int ATTR_FIELD_NUMBER
genel statik final int DEPRECATION_MESSAGE_FIELD_NUMBER
genel statik final int DEPRECATION_VERSION_FIELD_NUMBER
genel statik final int DESCRIPTION_FIELD_NUMBER
genel statik final int DESCRIPTION_PREFIX_FIELD_NUMBER
genel statik final int DESCRIPTION_SUFFIX_FIELD_NUMBER
genel statik final int ENDPOINT_FIELD_NUMBER
genel statik final int GRAPH_OP_NAME_FIELD_NUMBER
genel statik final int IN_ARG_FIELD_NUMBER
genel statik final int OUT_ARG_FIELD_NUMBER
genel statik final int SUMMARY_FIELD_NUMBER
genel statik final int VISIBILITY_FIELD_NUMBER
Genel Yöntemler
genel boole eşittir (Object obj)
public String getArgOrder (int indeksi)
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 dizini)
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;
genel int getAttrCount ()
repeated .tensorflow.ApiDef.Attr attr = 6;
public ApiDef.AttrOrBuilder getAttrOrBuilder (int dizini)
repeated .tensorflow.ApiDef.Attr attr = 6;
genel liste<? ApiDef.AttrOrBuilder'ı genişletir > getAttrOrBuilderList ()
repeated .tensorflow.ApiDef.Attr attr = 6;
public String 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;
genel Dize 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;
genel Dize 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;
genel Dize 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;
genel Liste< ApiDef.Endpoint > getEndpointList ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
public ApiDef.EndpointOrBuilder getEndpointOrBuilder (int dizini)
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
genel liste<? ApiDef.EndpointOrBuilder'ı genişletir > getEndpointOrBuilderList ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
genel Dize 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;
genel int getInArgCount ()
repeated .tensorflow.ApiDef.Arg in_arg = 4;
public ApiDef.ArgOrBuilder getInArgOrBuilder (int dizini)
repeated .tensorflow.ApiDef.Arg in_arg = 4;
genel liste<? ApiDef.ArgOrBuilder'ı genişletir > getInArgOrBuilderList ()
repeated .tensorflow.ApiDef.Arg in_arg = 4;
public int getOutArgCount ()
repeated .tensorflow.ApiDef.Arg out_arg = 5;
public ApiDef.ArgOrBuilder getOutArgOrBuilder (int dizini)
repeated .tensorflow.ApiDef.Arg out_arg = 5;
genel liste<? ApiDef.ArgOrBuilder'ı genişletir > getOutArgOrBuilderList ()
repeated .tensorflow.ApiDef.Arg out_arg = 5;
halk getParserForType ()
public int getSerializedSize ()
genel Dize 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;
genel final com.google.protobuf.UnknownFieldSet getUnknownFields ()
public int getVisibilityValue ()
.tensorflow.ApiDef.Visibility visibility = 2;
genel int hashCode ()
genel final boolean isInitialized ()
public static ApiDef parseDelimitedFrom (InputStream girişi, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Atar
IOİstisnası |
---|
genel statik ApiDef ayrıştırmaFrom (ByteBuffer verileri, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Atar
Geçersiz ProtokolBufferException |
---|
genel statik ApiDef ayrıştırmaFrom (bayt[] veri, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Atar
Geçersiz ProtokolBufferException |
---|
genel statik ApiDef ayrıştırmaFrom (com.google.protobuf.CodedInputStream girişi, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Atar
IOİstisnası |
---|
genel statik ApiDef ayrıştırmaFrom (com.google.protobuf.ByteString verileri)
Atar
Geçersiz ProtokolBufferException |
---|
genel statik ApiDef ayrıştırmaFrom (InputStream girişi, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Atar
IOİstisnası |
---|
genel statik ApiDef ayrıştırmaFrom (com.google.protobuf.ByteString verileri, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Atar
Geçersiz ProtokolBufferException |
---|
genel statik ayrıştırıcı ()
genel geçersiz writeTo (com.google.protobuf.CodedOutputStream çıkışı)
Atar
IOİstisnası |
---|