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
Classi nidificate
classe | ApiDef.Arg | Tipo di protocollo tensorflow.ApiDef.Arg | |
interfaccia | ApiDef.ArgOrBuilder | ||
classe | ApiDef.Attr | Description of the graph-construction-time configuration of this Op. | |
interfaccia | ApiDef.AttrOrBuilder | ||
classe | 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. | |
classe | ApiDef.Endpoint | If you specify any endpoint, this will replace all of the inherited endpoints. | |
interfaccia | ApiDef.EndpointOrBuilder | ||
enum | ApiDef.Visibilità | Protobuf enum tensorflow.ApiDef.Visibility |
Costanti
Metodi pubblici
booleano | è uguale a (Oggetto oggetto) |
Corda | getArgOrder (indice int) List of original in_arg names to specify new argument order. |
com.google.protobuf.ByteString | getArgOrderBytes (indice int) 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 (indice int) repeated .tensorflow.ApiDef.Attr attr = 6; |
int | getAttrCount () repeated .tensorflow.ApiDef.Attr attr = 6; |
Elenco< ApiDef.Attr > | getAttrList () repeated .tensorflow.ApiDef.Attr attr = 6; |
ApiDef.AttrOrBuilder | getAttrOrBuilder (indice int) repeated .tensorflow.ApiDef.Attr attr = 6; |
Elenco<? estende ApiDef.AttrOrBuilder > | getAttrOrBuilderList () repeated .tensorflow.ApiDef.Attr attr = 6; |
ApiDef statico | |
ApiDef | |
Corda | 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. |
Corda | getDescrizione () Additional, longer human-readable description of what the Op does. |
com.google.protobuf.ByteString | getDescrizioneBytes () Additional, longer human-readable description of what the Op does. |
Corda | getDescrizionePrefisso () 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. |
Corda | getDescrizioneSuffisso () string description_suffix = 10; |
com.google.protobuf.ByteString | getDescrizioneSuffixBytes () string description_suffix = 10; |
com.google.protobuf.Descriptors.Descriptor statico finale | |
ApiDef.Endpoint | getEndpoint (indice int) repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
int | getEndpointCount () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
Elenco< ApiDef.Endpoint > | getEndpointList () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
ApiDef.EndpointOrBuilder | getEndpointOrBuilder (indice int) repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
Elenco<? estende ApiDef.EndpointOrBuilder > | getEndpointOrBuilderList () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
Corda | 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 (indice int) repeated .tensorflow.ApiDef.Arg in_arg = 4; |
int | getInArgCount () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
Elenco< ApiDef.Arg > | getInArgList () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
ApiDef.ArgOrBuilder | getInArgOrBuilder (indice int) repeated .tensorflow.ApiDef.Arg in_arg = 4; |
Elenco<? estende ApiDef.ArgOrBuilder > | getInArgOrBuilderList () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
ApiDef.Arg | getOutArg (indice int) repeated .tensorflow.ApiDef.Arg out_arg = 5; |
int | getOutArgCount () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
Elenco< ApiDef.Arg > | getOutArgList () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
ApiDef.ArgOrBuilder | getOutArgOrBuilder (indice int) repeated .tensorflow.ApiDef.Arg out_arg = 5; |
Elenco<? estende ApiDef.ArgOrBuilder > | getOutArgOrBuilderList () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
int | |
Corda | getRiepilogo () 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. |
finale com.google.protobuf.UnknownFieldSet | |
ApiDef.Visibilità | getVisibilità () .tensorflow.ApiDef.Visibility visibility = 2; |
int | getVisibilityValue () .tensorflow.ApiDef.Visibility visibility = 2; |
int | codicehash () |
booleano finale | |
ApiDef.Builder statico | |
ApiDef.Builder statico | newBuilder (prototipo ApiDef ) |
ApiDef.Builder | |
ApiDef statico | parseDelimitedFrom (input InputStream) |
ApiDef statico | parseDelimitedFrom (input InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ApiDef statico | parseFrom (dati ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ApiDef statico | parseFrom (ingresso com.google.protobuf.CodedInputStream) |
ApiDef statico | parseFrom (byte[] dati, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ApiDef statico | parseFrom (dati ByteBuffer) |
ApiDef statico | parseFrom (input com.google.protobuf.CodedInputStream, estensione com.google.protobuf.ExtensionRegistryLiteRegistry) |
ApiDef statico | parseFrom (dati com.google.protobuf.ByteString) |
ApiDef statico | parseFrom (input InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ApiDef statico | parseFrom (dati com.google.protobuf.ByteString, estensione com.google.protobuf.ExtensionRegistryLiteRegistry) |
statico | analizzatore () |
ApiDef.Builder | toBuilder () |
vuoto | writeTo (output com.google.protobuf.CodedOutputStream) |
Metodi ereditati
Costanti
public static final int ARG_ORDER_FIELD_NUMBER
public static final int ATTR_FIELD_NUMBER
public static final int DEPRECATION_MESSAGE_FIELD_NUMBER
public static final int DEPRECATION_VERSION_FIELD_NUMBER
public static final int DESCRIZIONE_FIELD_NUMBER
public static final int DESCRIZIONE_PREFIX_FIELD_NUMBER
public static final int DESCRIZIONE_SUFFIX_FIELD_NUMBER
pubblico statico finale int ENDPOINT_FIELD_NUMBER
pubblico statico finale int GRAPH_OP_NAME_FIELD_NUMBER
public static final int IN_ARG_FIELD_NUMBER
pubblico statico finale int OUT_ARG_FIELD_NUMBER
public static final int SUMMARY_FIELD_NUMBER
public static final int VISIBILITY_FIELD_NUMBER
Metodi pubblici
booleano pubblico è uguale a (Oggetto obj)
public String getArgOrder (indice 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;
pubblico com.google.protobuf.ByteString getArgOrderBytes (indice 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;
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;
public int getAttrCount ()
repeated .tensorflow.ApiDef.Attr attr = 6;
public ApiDef.AttrOrBuilder getAttrOrBuilder (indice int)
repeated .tensorflow.ApiDef.Attr attr = 6;
Elenco pubblico<? estende ApiDef.AttrOrBuilder > getAttrOrBuilderList ()
repeated .tensorflow.ApiDef.Attr attr = 6;
stringa pubblica 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;
pubblico 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;
stringa pubblica getDescription ()
Additional, longer human-readable description of what the Op does.
string description = 8;
pubblico 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;
pubblico 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;
pubblico 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;
Elenco pubblico< ApiDef.Endpoint > getEndpointList ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
public ApiDef.EndpointOrBuilder getEndpointOrBuilder (indice int)
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
Elenco pubblico<? estende ApiDef.EndpointOrBuilder > getEndpointOrBuilderList ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
stringa pubblica getGraphOpName ()
Name of the op (in the OpDef) to specify the API for.
string graph_op_name = 1;
pubblico 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 (indice int)
repeated .tensorflow.ApiDef.Arg in_arg = 4;
Elenco pubblico<? estende ApiDef.ArgOrBuilder > getInArgOrBuilderList ()
repeated .tensorflow.ApiDef.Arg in_arg = 4;
public int getOutArgCount ()
repeated .tensorflow.ApiDef.Arg out_arg = 5;
public ApiDef.ArgOrBuilder getOutArgOrBuilder (indice int)
repeated .tensorflow.ApiDef.Arg out_arg = 5;
Elenco pubblico<? estende ApiDef.ArgOrBuilder > getOutArgOrBuilderList ()
repeated .tensorflow.ApiDef.Arg out_arg = 5;
pubblico getParserForType ()
public int getSerializedSize ()
public String getSummary ()
One-line human-readable description of what the Op does.
string summary = 7;
pubblico com.google.protobuf.ByteString getSummaryBytes ()
One-line human-readable description of what the Op does.
string summary = 7;
pubblico finale com.google.protobuf.UnknownFieldSet getUnknownFields ()
public int getVisibilityValue ()
.tensorflow.ApiDef.Visibility visibility = 2;
public int hashCode ()
public final booleano isInitialized ()
ApiDef pubblico statico parseDelimitedFrom (input InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lancia
IOException |
---|
parseFrom ApiDef pubblico statico (dati ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lancia
InvalidProtocolBufferException |
---|
parseFrom ApiDef pubblico statico (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lancia
InvalidProtocolBufferException |
---|
parseFrom ApiDef pubblico statico (input com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lancia
IOException |
---|
parseFrom ApiDef statico pubblico (dati com.google.protobuf.ByteString)
Lancia
InvalidProtocolBufferException |
---|
parseFrom ApiDef pubblico statico (input InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lancia
IOException |
---|
parseFrom ApiDef statico pubblico (dati com.google.protobuf.ByteString, estensione com.google.protobuf.ExtensionRegistryLiteRegistry)
Lancia
InvalidProtocolBufferException |
---|
pubblico statico analizzatore ()
public void writeTo (output com.google.protobuf.CodedOutputStream)
Lancia
IOException |
---|