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
ネストされたクラス
クラス | ApiDef.Arg | Protobuf 型tensorflow.ApiDef.Arg | |
インタフェース | ApiDef.ArgOrBuilder | ||
クラス | APIDef.Attr | Description of the graph-construction-time configuration of this Op. | |
インタフェース | ApiDef.AttrOrBuilder | ||
クラス | 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. | |
クラス | ApiDef.エンドポイント | If you specify any endpoint, this will replace all of the inherited endpoints. | |
インタフェース | ApiDef.EndpointOrBuilder | ||
列挙型 | ApiDef.Visibility | Protobuf enum tensorflow.ApiDef.Visibility |
定数
パブリックメソッド
ブール値 | 等しい(オブジェクトオブジェクト) |
弦 | getArgOrder (int インデックス) List of original in_arg names to specify new argument order. |
com.google.protobuf.ByteString | getArgOrderBytes (int インデックス) List of original in_arg names to specify new argument order. |
整数 | 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 インデックス) repeated .tensorflow.ApiDef.Attr attr = 6; |
整数 | getAttrCount () repeated .tensorflow.ApiDef.Attr attr = 6; |
リスト< ApiDef.Attr > | getAttrList () repeated .tensorflow.ApiDef.Attr attr = 6; |
ApiDef.AttrOrBuilder | getAttrOrBuilder (int インデックス) repeated .tensorflow.ApiDef.Attr attr = 6; |
リスト<? ApiDef.AttrOrBuilderを拡張 > | getAttrOrBuilderList () repeated .tensorflow.ApiDef.Attr attr = 6; |
静的ApiDef | |
アピデフ | |
弦 | 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. |
整数 | getDeprecationVersion () Major version when the op will be deleted. |
弦 | get説明() 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. |
弦 | 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. |
弦 | getDescriptionSuffix () string description_suffix = 10; |
com.google.protobuf.ByteString | getDescriptionSuffixBytes () string description_suffix = 10; |
最終的な静的 com.google.protobuf.Descriptors.Descriptor | |
ApiDef.エンドポイント | getEndpoint (int インデックス) repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
整数 | getEndpointCount () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
リスト< ApiDef.Endpoint > | getEndpointList () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
ApiDef.EndpointOrBuilder | getEndpointOrBuilder (int インデックス) repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
リスト<? ApiDef.EndpointOrBuilderを拡張 > | getEndpointOrBuilderList () repeated .tensorflow.ApiDef.Endpoint endpoint = 3; |
弦 | 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 インデックス) repeated .tensorflow.ApiDef.Arg in_arg = 4; |
整数 | getInArgCount () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
リスト< ApiDef.Arg > | getInArgList () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
ApiDef.ArgOrBuilder | getInArgOrBuilder (int インデックス) repeated .tensorflow.ApiDef.Arg in_arg = 4; |
リスト<? ApiDef.ArgOrBuilderを拡張 > | getInArgOrBuilderList () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
ApiDef.Arg | getOutArg (int インデックス) repeated .tensorflow.ApiDef.Arg out_arg = 5; |
整数 | getOutArgCount () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
リスト< ApiDef.Arg > | getOutArgList () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
ApiDef.ArgOrBuilder | getOutArgOrBuilder (int インデックス) repeated .tensorflow.ApiDef.Arg out_arg = 5; |
リスト<? ApiDef.ArgOrBuilderを拡張 > | getOutArgOrBuilderList () repeated .tensorflow.ApiDef.Arg out_arg = 5; |
整数 | |
弦 | get概要() One-line human-readable description of what the Op does. |
com.google.protobuf.ByteString | getサマリーバイト() One-line human-readable description of what the Op does. |
最終的な com.google.protobuf.UnknownFieldSet | |
ApiDef.Visibility | getVisibility () .tensorflow.ApiDef.Visibility visibility = 2; |
整数 | getVisibilityValue () .tensorflow.ApiDef.Visibility visibility = 2; |
整数 | ハッシュコード() |
最終ブール値 | |
静的ApiDef.Builder | newBuilder () |
静的ApiDef.Builder | newBuilder ( ApiDefプロトタイプ) |
ApiDef.Builder | |
静的ApiDef | parseDelimitedFrom (InputStream 入力) |
静的ApiDef | parseDelimitedFrom (InputStream 入力、com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
静的ApiDef | parseFrom (ByteBuffer データ、com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
静的ApiDef | parseFrom (com.google.protobuf.CodedInputStream 入力) |
静的ApiDef | parseFrom (byte[] データ、com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
静的ApiDef | parseFrom (ByteBuffer データ) |
静的ApiDef | parseFrom (com.google.protobuf.CodedInputStream 入力、com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
静的ApiDef | parseFrom (com.google.protobuf.ByteString データ) |
静的ApiDef | parseFrom (InputStream 入力、com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
静的ApiDef | parseFrom (com.google.protobuf.ByteString データ、com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
静的 | パーサー() |
ApiDef.Builder | toビルダー() |
空所 | writeTo (com.google.protobuf.CodedOutputStream 出力) |
継承されたメソッド
定数
パブリック静的最終整数ARG_ORDER_FIELD_NUMBER
パブリック静的最終整数ATTR_FIELD_NUMBER
public static Final int DEPRECATION_MESSAGE_FIELD_NUMBER
public static Final int DEPRECATION_VERSION_FIELD_NUMBER
パブリック静的最終整数DESCRIPTION_FIELD_NUMBER
public static Final int DESCRIPTION_PREFIX_FIELD_NUMBER
パブリック静的最終整数DESCRIPTION_SUFFIX_FIELD_NUMBER
パブリック静的最終整数ENDPOINT_FIELD_NUMBER
パブリック静的最終整数GRAPH_OP_NAME_FIELD_NUMBER
パブリック静的最終整数IN_ARG_FIELD_NUMBER
パブリック静的最終整数OUT_ARG_FIELD_NUMBER
パブリック静的最終整数SUMMARY_FIELD_NUMBER
パブリック静的最終整数VISIBILITY_FIELD_NUMBER
パブリックメソッド
public booleanに等しい(オブジェクト obj)
public String getArgOrder (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 (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 (int インデックス)
repeated .tensorflow.ApiDef.Attr attr = 6;
公開リスト<? extends ApiDef.AttrOrBuilder > 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;
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 ()
public int getEndpointCount ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
public List< ApiDef.Endpoint > getEndpointList ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
public ApiDef.EndpointOrBuilder getEndpointOrBuilder (int インデックス)
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
公開リスト<? extends ApiDef.EndpointOrBuilder > getEndpointOrBuilderList ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
パブリック String 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;
public int getInArgCount ()
repeated .tensorflow.ApiDef.Arg in_arg = 4;
public ApiDef.ArgOrBuilder getInArgOrBuilder (int インデックス)
repeated .tensorflow.ApiDef.Arg in_arg = 4;
公開リスト<? extends ApiDef.ArgOrBuilder > getInArgOrBuilderList ()
repeated .tensorflow.ApiDef.Arg in_arg = 4;
public int getOutArgCount ()
repeated .tensorflow.ApiDef.Arg out_arg = 5;
public ApiDef.ArgOrBuilder getOutArgOrBuilder (int インデックス)
repeated .tensorflow.ApiDef.Arg out_arg = 5;
公開リスト<? extends ApiDef.ArgOrBuilder > getOutArgOrBuilderList ()
repeated .tensorflow.ApiDef.Arg out_arg = 5;
公共 getParserForType ()
public 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;
public Final com.google.protobuf.UnknownFieldSet getUnknownFields ()
public int getVisibilityValue ()
.tensorflow.ApiDef.Visibility visibility = 2;
public int hashCode ()
パブリック最終ブール値isInitialized ()
public static ApiDef parseDelimitedFrom (InputStream 入力、com.google.protobuf.ExtensionRegistryLite extensionRegistry)
投げる
IO例外 |
---|
public static ApiDef parseFrom (ByteBuffer データ、com.google.protobuf.ExtensionRegistryLite extensionRegistry)
投げる
無効なプロトコルバッファ例外 |
---|
public static ApiDef parseFrom (byte[] データ、com.google.protobuf.ExtensionRegistryLite extensionRegistry)
投げる
無効なプロトコルバッファ例外 |
---|
public static ApiDef parseFrom (com.google.protobuf.CodedInputStream 入力、com.google.protobuf.ExtensionRegistryLite extensionRegistry)
投げる
IO例外 |
---|
public static ApiDef parseFrom (InputStream 入力、com.google.protobuf.ExtensionRegistryLite extensionRegistry)
投げる
IO例外 |
---|
public static ApiDef parseFrom (com.google.protobuf.ByteString データ、com.google.protobuf.ExtensionRegistryLite extensionRegistry)
投げる
無効なプロトコルバッファ例外 |
---|
パブリック静的 パーサー()
public void writeTo (com.google.protobuf.CodedOutputStream 出力)
投げる
IO例外 |
---|