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.Tipo de protobuf
tensorflow.ApiDef
Classes aninhadas
aula | ApiDef.Arg | Tipo de protobuf tensorflow.ApiDef.Arg | |
interface | ApiDef.ArgOrBuilder | ||
aula | ApiDef.Attr | Description of the graph-construction-time configuration of this Op. | |
interface | ApiDef.AttrOrBuilder | ||
aula | 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. | |
aula | ApiDef.Endpoint | If you specify any endpoint, this will replace all of the inherited endpoints. | |
interface | ApiDef.EndpointOrBuilder | ||
enumeração | ApiDef.Visibilidade | Protobuf enum tensorflow.ApiDef.Visibility |
Constantes
interno | ARG_ORDER_FIELD_NUMBER | |
interno | ATTR_FIELD_NUMBER | |
interno | DEPRECATION_MESSAGE_FIELD_NUMBER | |
interno | DEPRECATION_VERSION_FIELD_NUMBER | |
interno | DESCRIPTION_FIELD_NUMBER | |
interno | DESCRIPTION_PREFIX_FIELD_NUMBER | |
interno | DESCRIPTION_SUFFIX_FIELD_NUMBER | |
interno | ENDPOINT_FIELD_NUMBER | |
interno | GRAPH_OP_NAME_FIELD_NUMBER | |
interno | IN_ARG_FIELD_NUMBER | |
interno | OUT_ARG_FIELD_NUMBER | |
interno | SUMMARY_FIELD_NUMBER | |
interno | VISIBILITY_FIELD_NUMBER |
Métodos Públicos
booleano | é igual (objeto obj) |
Corda | getArgOrder (índice interno) List of original in_arg names to specify new argument order. |
com.google.protobuf.ByteString | getArgOrderBytes (índice interno) List of original in_arg names to specify new argument order. |
interno | 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 (índice interno) repeated .tensorflow.ApiDef.Attr attr = 6; |
interno | getAttrCount () repeated .tensorflow.ApiDef.Attr attr = 6; |
Lista< ApiDef.Attr > | getAttrList () repeated .tensorflow.ApiDef.Attr attr = 6; |
ApiDef.AttrOrBuilder | getAttrOrBuilder (índice interno) repeated .tensorflow.ApiDef.Attr attr = 6; |
Lista<? estende ApiDef.AttrOrBuilder > | getAttrOrBuilderList () repeated .tensorflow.ApiDef.Attr attr = 6; |
ApiDef estático | |
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. |
interno | getDeprecationVersion () Major version when the op will be deleted. |
Corda | getDescrição () 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. |
Corda | 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. |
Corda | getDescriptionSuffix () string description_suffix = 10; |
com.google.protobuf.ByteString | getDescriptionSuffixBytes () string description_suffix = 10; |
final estático com.google.protobuf.Descriptors.Descriptor | |
ApiDef.Endpoint | getEndpoint (índice interno) repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
interno | getEndpointCount () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
Lista< ApiDef.Endpoint > | getEndpointList () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
ApiDef.EndpointOrBuilder | getEndpointOrBuilder (índice interno) repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
Lista<? 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 (índice interno) repeated .tensorflow.ApiDef.Arg in_arg = 4; |
interno | getInArgCount () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
Lista< ApiDef.Arg > | getInArgList () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
ApiDef.ArgOrBuilder | getInArgOrBuilder (índice interno) repeated .tensorflow.ApiDef.Arg in_arg = 4; |
Lista<? estende ApiDef.ArgOrBuilder > | getInArgOrBuilderList () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
ApiDef.Arg | getOutArg (índice interno) repeated .tensorflow.ApiDef.Arg out_arg = 5; |
interno | getOutArgCount () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
Lista< ApiDef.Arg > | getOutArgList () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
ApiDef.ArgOrBuilder | getOutArgOrBuilder (índice interno) repeated .tensorflow.ApiDef.Arg out_arg = 5; |
Lista<? estende ApiDef.ArgOrBuilder > | getOutArgOrBuilderList () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
interno | |
Corda | obter Resumo () 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.Visibilidade | obterVisibilidade () .tensorflow.ApiDef.Visibility visibility = 2; |
interno | getVisibilityValue () .tensorflow.ApiDef.Visibility visibility = 2; |
interno | código hash () |
booleano final | |
ApiDef.Builder estático | |
ApiDef.Builder estático | newBuilder (protótipo ApiDef ) |
ApiDef.Builder | |
ApiDef estático | parseDelimitedFrom (entrada InputStream) |
ApiDef estático | parseDelimitedFrom (entrada InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ApiDef estático | parseFrom (dados de ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ApiDef estático | parseFrom (entrada com.google.protobuf.CodedInputStream) |
ApiDef estático | parseFrom (byte[] dados, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ApiDef estático | parseFrom (dados de ByteBuffer) |
ApiDef estático | parseFrom (entrada com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ApiDef estático | parseFrom (dados com.google.protobuf.ByteString) |
ApiDef estático | parseFrom (entrada InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ApiDef estático | parseFrom (dados com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
estático | analisador () |
ApiDef.Builder | |
vazio | writeTo (saída com.google.protobuf.CodedOutputStream) |
Métodos herdados
Constantes
público estático final int ARG_ORDER_FIELD_NUMBER
público estático final int ATTR_FIELD_NUMBER
público estático final int DEPRECATION_MESSAGE_FIELD_NUMBER
público estático final int DEPRECATION_VERSION_FIELD_NUMBER
público estático final int DESCRIPTION_FIELD_NUMBER
público estático final int DESCRIPTION_PREFIX_FIELD_NUMBER
público estático final int DESCRIPTION_SUFFIX_FIELD_NUMBER
int final estático público ENDPOINT_FIELD_NUMBER
int final estático público GRAPH_OP_NAME_FIELD_NUMBER
público estático final int IN_ARG_FIELD_NUMBER
público estático final int OUT_ARG_FIELD_NUMBER
público estático final int SUMMARY_FIELD_NUMBER
público estático final int VISIBILITY_FIELD_NUMBER
Métodos Públicos
booleano público é igual (Object obj)
string pública getArgOrder (índice 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;
público com.google.protobuf.ByteString getArgOrderBytes (índice 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;
público 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;
público 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;
público int getAttrCount ()
repeated .tensorflow.ApiDef.Attr attr = 6;
público ApiDef.AttrOrBuilder getAttrOrBuilder (índice int)
repeated .tensorflow.ApiDef.Attr attr = 6;
Lista pública<? estende ApiDef.AttrOrBuilder > getAttrOrBuilderList ()
repeated .tensorflow.ApiDef.Attr attr = 6;
String pública 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;
público 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;
público 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;
String pública getDescrição ()
Additional, longer human-readable description of what the Op does.
string description = 8;
público com.google.protobuf.ByteString getDescriptionBytes ()
Additional, longer human-readable description of what the Op does.
string description = 8;
String pública getDescriptionPrefix ()
Modify an existing/inherited description by adding text to the beginning or end.
string description_prefix = 9;
público com.google.protobuf.ByteString getDescriptionPrefixBytes ()
Modify an existing/inherited description by adding text to the beginning or end.
string description_prefix = 9;
String pública getDescriptionSuffix ()
string description_suffix = 10;
público com.google.protobuf.ByteString getDescriptionSuffixBytes ()
string description_suffix = 10;
final estático público com.google.protobuf.Descriptors.Descriptor getDescriptor ()
público int getEndpointCount ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
Lista pública< ApiDef.Endpoint > getEndpointList ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
público ApiDef.EndpointOrBuilder getEndpointOrBuilder (índice int)
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
Lista pública<? estende ApiDef.EndpointOrBuilder > getEndpointOrBuilderList ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
String pública getGraphOpName ()
Name of the op (in the OpDef) to specify the API for.
string graph_op_name = 1;
público com.google.protobuf.ByteString getGraphOpNameBytes ()
Name of the op (in the OpDef) to specify the API for.
string graph_op_name = 1;
público int getInArgCount ()
repeated .tensorflow.ApiDef.Arg in_arg = 4;
público ApiDef.ArgOrBuilder getInArgOrBuilder (índice int)
repeated .tensorflow.ApiDef.Arg in_arg = 4;
Lista pública<? estende ApiDef.ArgOrBuilder > getInArgOrBuilderList ()
repeated .tensorflow.ApiDef.Arg in_arg = 4;
público intgetOutArgCount ()
repeated .tensorflow.ApiDef.Arg out_arg = 5;
público ApiDef.ArgOrBuilder getOutArgOrBuilder (índice int)
repeated .tensorflow.ApiDef.Arg out_arg = 5;
Lista pública<? estende ApiDef.ArgOrBuilder > getOutArgOrBuilderList ()
repeated .tensorflow.ApiDef.Arg out_arg = 5;
público getParserForType ()
público int getSerializedSize ()
String pública getSummary ()
One-line human-readable description of what the Op does.
string summary = 7;
público com.google.protobuf.ByteString getSummaryBytes ()
One-line human-readable description of what the Op does.
string summary = 7;
final público com.google.protobuf.UnknownFieldSet getUnknownFields ()
público int getVisibilityValue ()
.tensorflow.ApiDef.Visibility visibility = 2;
hashCode int público ()
público final booleano isInitialized ()
public static ApiDef parseDelimitedFrom (entrada InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lança
IOException |
---|
public static ApiDef parseFrom (dados ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lança
InvalidProtocolBufferException |
---|
public static ApiDef parseFrom (byte[] dados, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lança
InvalidProtocolBufferException |
---|
public static ApiDef parseFrom (entrada com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lança
IOException |
---|
ApiDef estático público parseFrom (dados com.google.protobuf.ByteString)
Lança
InvalidProtocolBufferException |
---|
public static ApiDef parseFrom (entrada InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lança
IOException |
---|
public static ApiDef parseFrom (dados com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lança
InvalidProtocolBufferException |
---|
estática pública analisador ()
public void writeTo (saída com.google.protobuf.CodedOutputStream)
Lança
IOException |
---|