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
Kelas Bersarang
kelas | ApiDef.Arg | Tipe protobuf tensorflow.ApiDef.Arg | |
antarmuka | ApiDef.ArgOrBuilder | ||
kelas | ApiDef.Attr | Description of the graph-construction-time configuration of this Op. | |
antarmuka | ApiDef.AttrOrBuilder | ||
kelas | 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. | |
kelas | ApiDef.Titik Akhir | If you specify any endpoint, this will replace all of the inherited endpoints. | |
antarmuka | ApiDef.EndpointOrBuilder | ||
enum | ApiDef.Visibilitas | Protobuf enum tensorflow.ApiDef.Visibility |
Konstanta
ke dalam | ARG_ORDER_FIELD_NUMBER | |
ke dalam | ATTR_FIELD_NUMBER | |
ke dalam | DEPRECATION_MESSAGE_FIELD_NUMBER | |
ke dalam | DEPRECATION_VERSION_FIELD_NUMBER | |
ke dalam | DESCRIPTION_FIELD_NUMBER | |
ke dalam | DESCRIPTION_PREFIX_FIELD_NUMBER | |
ke dalam | DESCRIPTION_SUFFIX_FIELD_NUMBER | |
ke dalam | ENDPOINT_FIELD_NUMBER | |
ke dalam | GRAPH_OP_NAME_FIELD_NUMBER | |
ke dalam | IN_ARG_FIELD_NUMBER | |
ke dalam | OUT_ARG_FIELD_NUMBER | |
ke dalam | SUMMARY_FIELD_NUMBER | |
ke dalam | VISIBILITY_FIELD_NUMBER |
Metode Publik
boolean | sama dengan (Objek objek) |
Rangkaian | 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. |
ke dalam | dapatkanArgOrderCount () List of original in_arg names to specify new argument order. |
com.google.protobuf.ProtocolStringList | dapatkanArgOrderList () List of original in_arg names to specify new argument order. |
ApiDef.Attr | getAttr (indeks int) repeated .tensorflow.ApiDef.Attr attr = 6; |
ke dalam | dapatkanAttrCount () repeated .tensorflow.ApiDef.Attr attr = 6; |
Daftar< ApiDef.Attr > | dapatkanAttrList () repeated .tensorflow.ApiDef.Attr attr = 6; |
ApiDef.AttrOrBuilder | getAttrOrBuilder (indeks int) repeated .tensorflow.ApiDef.Attr attr = 6; |
Daftar<? memperluas ApiDef.AttrOrBuilder > | dapatkanAttrOrBuilderList () repeated .tensorflow.ApiDef.Attr attr = 6; |
ApiDef statis | |
ApiDef | |
Rangkaian | dapatkanPenghentianPesan () If this op is deprecated, set deprecation message to the message that should be logged when this op is used. |
com.google.protobuf.ByteString | dapatkanDeprecationMessageBytes () If this op is deprecated, set deprecation message to the message that should be logged when this op is used. |
ke dalam | dapatkanDeprecationVersion () Major version when the op will be deleted. |
Rangkaian | dapatkanDeskripsi () Additional, longer human-readable description of what the Op does. |
com.google.protobuf.ByteString | dapatkanDeskripsiBytes () Additional, longer human-readable description of what the Op does. |
Rangkaian | dapatkanDeskripsiAwalan () Modify an existing/inherited description by adding text to the beginning or end. |
com.google.protobuf.ByteString | dapatkanDeskripsiPrefixBytes () Modify an existing/inherited description by adding text to the beginning or end. |
Rangkaian | dapatkanDeskripsiSuffix () string description_suffix = 10; |
com.google.protobuf.ByteString | dapatkanDeskripsiSuffixBytes () string description_suffix = 10; |
com.google.protobuf.Descriptors.Descriptor statis terakhir | |
ApiDef.Titik Akhir | getEndpoint (indeks int) repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
ke dalam | dapatkanEndpointCount () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
Daftar< ApiDef.Titik Akhir > | dapatkanDaftar Titik Akhir () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
ApiDef.EndpointOrBuilder | getEndpointOrBuilder (indeks int) repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
Daftar<? memperluas ApiDef.EndpointOrBuilder > | dapatkanEndpointOrBuilderList () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
Rangkaian | dapatkanGraphOpName () Name of the op (in the OpDef) to specify the API for. |
com.google.protobuf.ByteString | dapatkanGraphOpNameBytes () Name of the op (in the OpDef) to specify the API for. |
ApiDef.Arg | getInArg (indeks int) repeated .tensorflow.ApiDef.Arg in_arg = 4; |
ke dalam | dapatkanInArgCount () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
Daftar< ApiDef.Arg > | dapatkanInArgList () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
ApiDef.ArgOrBuilder | getInArgOrBuilder (indeks int) repeated .tensorflow.ApiDef.Arg in_arg = 4; |
Daftar<? memperluas ApiDef.ArgOrBuilder > | getInArgOrBuilderList () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
ApiDef.Arg | getOutArg (indeks int) repeated .tensorflow.ApiDef.Arg out_arg = 5; |
ke dalam | getOutArgCount () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
Daftar< ApiDef.Arg > | dapatkanOutArgList () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
ApiDef.ArgOrBuilder | getOutArgOrBuilder (indeks int) repeated .tensorflow.ApiDef.Arg out_arg = 5; |
Daftar<? memperluas ApiDef.ArgOrBuilder > | getOutArgOrBuilderList () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
ke dalam | |
Rangkaian | dapatkan Ringkasan () One-line human-readable description of what the Op does. |
com.google.protobuf.ByteString | dapatkanSummaryBytes () One-line human-readable description of what the Op does. |
final com.google.protobuf.UnknownFieldSet | |
ApiDef.Visibilitas | dapatkan Visibilitas () .tensorflow.ApiDef.Visibility visibility = 2; |
ke dalam | dapatkanVisibilityValue () .tensorflow.ApiDef.Visibility visibility = 2; |
ke dalam | Kode hash () |
boolean terakhir | |
ApiDef.Builder statis | |
ApiDef.Builder statis | newBuilder (prototipe ApiDef ) |
ApiDef.Builder | |
ApiDef statis | parseDelimitedFrom (masukan Aliran Masukan) |
ApiDef statis | parseDelimitedFrom (masukan InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ApiDef statis | parseFrom (data ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ApiDef statis | parseFrom (com.google.protobuf.CodedInputStream masukan) |
ApiDef statis | parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ApiDef statis | parseFrom (data ByteBuffer) |
ApiDef statis | parseFrom (com.google.protobuf.CodedInputStream masukan, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ApiDef statis | parseFrom (com.google.protobuf.ByteString data) |
ApiDef statis | parseFrom (masukan InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ApiDef statis | parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
statis | pengurai () |
ApiDef.Builder | |
ruang kosong | writeTo (com.google.protobuf.CodedOutputStream keluaran) |
Metode Warisan
Konstanta
int final statis publik ARG_ORDER_FIELD_NUMBER
int akhir statis publik ATTR_FIELD_NUMBER
int akhir statis publik DEPRECATION_MESSAGE_FIELD_NUMBER
int akhir statis publik DEPRECATION_VERSION_FIELD_NUMBER
int akhir statis publik DESCRIPTION_FIELD_NUMBER
int akhir statis publik DESCRIPTION_PREFIX_FIELD_NUMBER
int akhir statis publik DESCRIPTION_SUFFIX_FIELD_NUMBER
int akhir statis publik ENDPOINT_FIELD_NUMBER
int final statis publik GRAPH_OP_NAME_FIELD_NUMBER
int akhir statis publik IN_ARG_FIELD_NUMBER
int akhir statis publik OUT_ARG_FIELD_NUMBER
int akhir statis publik SUMMARY_FIELD_NUMBER
int final statis publik VISIBILITY_FIELD_NUMBER
Metode Publik
boolean publik sama (Obj objek)
String publik 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;
publik 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;
int publik 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 () publik
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 publik getAttrCount ()
repeated .tensorflow.ApiDef.Attr attr = 6;
publik ApiDef.AttrOrBuilder getAttrOrBuilder (int indeks)
repeated .tensorflow.ApiDef.Attr attr = 6;
Daftar Publik<? memperluas ApiDef.AttrOrBuilder > getAttrOrBuilderList ()
repeated .tensorflow.ApiDef.Attr attr = 6;
String publik 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;
publik 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;
publik 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;
GetDeskripsi String publik ()
Additional, longer human-readable description of what the Op does.
string description = 8;
com.google.protobuf.ByteString publik getDescriptionBytes ()
Additional, longer human-readable description of what the Op does.
string description = 8;
String publik getDescriptionPrefix ()
Modify an existing/inherited description by adding text to the beginning or end.
string description_prefix = 9;
publik com.google.protobuf.ByteString getDescriptionPrefixBytes ()
Modify an existing/inherited description by adding text to the beginning or end.
string description_prefix = 9;
String publik getDescriptionSuffix ()
string description_suffix = 10;
publik com.google.protobuf.ByteString getDescriptionSuffixBytes ()
string description_suffix = 10;
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
int publik getEndpointCount ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
Daftar publik< ApiDef.Endpoint > getEndpointList ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
publik ApiDef.EndpointOrBuilder getEndpointOrBuilder (int indeks)
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
Daftar Publik<? memperluas ApiDef.EndpointOrBuilder > getEndpointOrBuilderList ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
String publik getGraphOpName ()
Name of the op (in the OpDef) to specify the API for.
string graph_op_name = 1;
publik com.google.protobuf.ByteString getGraphOpNameBytes ()
Name of the op (in the OpDef) to specify the API for.
string graph_op_name = 1;
int publik getInArgCount ()
repeated .tensorflow.ApiDef.Arg in_arg = 4;
publik ApiDef.ArgOrBuilder getInArgOrBuilder (int indeks)
repeated .tensorflow.ApiDef.Arg in_arg = 4;
Daftar Publik<? memperluas ApiDef.ArgOrBuilder > getInArgOrBuilderList ()
repeated .tensorflow.ApiDef.Arg in_arg = 4;
int publik getOutArgCount ()
repeated .tensorflow.ApiDef.Arg out_arg = 5;
publik ApiDef.ArgOrBuilder getOutArgOrBuilder (int indeks)
repeated .tensorflow.ApiDef.Arg out_arg = 5;
Daftar Publik<? memperluas ApiDef.ArgOrBuilder > getOutArgOrBuilderList ()
repeated .tensorflow.ApiDef.Arg out_arg = 5;
publik dapatkanParserForType ()
publik int getSerializedSize ()
String publik getSummary ()
One-line human-readable description of what the Op does.
string summary = 7;
com.google.protobuf.ByteString publik getSummaryBytes ()
One-line human-readable description of what the Op does.
string summary = 7;
public final com.google.protobuf.UnknownFieldSet getUnknownFields ()
int publik getVisibilityValue ()
.tensorflow.ApiDef.Visibility visibility = 2;
kode hash int publik ()
boolean akhir publik diinisialisasi ()
parseDelimitedFrom ApiDef statis publik (input InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Melempar
Pengecualian IO |
---|
parseFrom ApiDef statis publik (data ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Melempar
InvalidProtocolBufferException |
---|
parseFrom ApiDef statis publik (com.google.protobuf.CodedInputStream masukan)
Melempar
Pengecualian IO |
---|
parseFrom ApiDef statis publik (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Melempar
InvalidProtocolBufferException |
---|
parseFrom ApiDef statis publik (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Melempar
Pengecualian IO |
---|
parseFrom ApiDef statis publik (com.google.protobuf.ByteString data)
Melempar
InvalidProtocolBufferException |
---|
parseFrom ApiDef statis publik (input InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Melempar
Pengecualian IO |
---|
parseFrom ApiDef statis publik (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Melempar
InvalidProtocolBufferException |
---|
statis publik pengurai ()
public void writeTo (com.google.protobuf.CodedOutputStream keluaran)
Melempar
Pengecualian IO |
---|