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.Endpoint | If you specify any endpoint, this will replace all of the inherited endpoints. | |
인터페이스 | ApiDef.EndpointOrBuilder | ||
열거형 | ApiDef.Visibility | Protobuf 열거형 tensorflow.ApiDef.Visibility |
상수
공개 방법
부울 | 같음 (객체 객체) |
끈 | getArgOrder (정수 인덱스) List of original in_arg names to specify new argument order. |
com.google.protobuf.ByteString | getArgOrderBytes (정수 인덱스) 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 (정수 인덱스) 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 (정수 인덱스) repeated .tensorflow.ApiDef.Attr attr = 6; |
목록<? ApiDef.AttrOrBuilder 확장 > | getAttrOrBuilderList () repeated .tensorflow.ApiDef.Attr attr = 6; |
정적 APIDef | |
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.Endpoint | getEndpoint (정수 인덱스) 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 (정수 인덱스) 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 (정수 인덱스) 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 (정수 인덱스) repeated .tensorflow.ApiDef.Arg in_arg = 4; |
목록<? ApiDef.ArgOrBuilder 확장 > | getInArgOrBuilderList () repeated .tensorflow.ApiDef.Arg in_arg = 4; |
ApiDef.Arg | getOutArg (정수 인덱스) 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 (정수 인덱스) 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 | getSummaryBytes () One-line human-readable description of what the Op does. |
최종 com.google.protobuf.UnknownFieldSet | |
ApiDef.Visibility | 가시성 () .tensorflow.ApiDef.Visibility visibility = 2; |
정수 | getVisibilityValue () .tensorflow.ApiDef.Visibility visibility = 2; |
정수 | 해시코드 () |
최종 부울 | 초기화됨 () |
정적 ApiDef.Builder | 새로운 빌더 () |
정적 ApiDef.Builder | newBuilder ( ApiDef 프로토타입) |
ApiDef.Builder | |
정적 APIDef | parsDelimitedFrom (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 확장Registry) |
정적 APIDef | parsFrom (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 | toBuilder () |
무효의 | writeTo (com.google.protobuf.CodedOutputStream 출력) |
상속된 메서드
상수
공개 정적 최종 정수 ARG_ORDER_FIELD_NUMBER
공개 정적 최종 int ATTR_FIELD_NUMBER
공개 정적 최종 int DEPRECATION_MESSAGE_FIELD_NUMBER
공개 정적 최종 int DEPRECATION_VERSION_FIELD_NUMBER
공개 정적 최종 int DESCRIPTION_FIELD_NUMBER
공개 정적 최종 int DESCRIPTION_PREFIX_FIELD_NUMBER
공개 정적 최종 int DESCRIPTION_SUFFIX_FIELD_NUMBER
공개 정적 최종 int ENDPOINT_FIELD_NUMBER
공개 정적 최종 int GRAPH_OP_NAME_FIELD_NUMBER
공개 정적 최종 int IN_ARG_FIELD_NUMBER
공개 정적 최종 int OUT_ARG_FIELD_NUMBER
공개 정적 최종 int SUMMARY_FIELD_NUMBER
공개 정적 최종 int VISIBILITY_FIELD_NUMBER
공개 방법
공개 부울은 (객체 obj) 와 같습니다 .
공개 문자열 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;
공개 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;
공개 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;
공개 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;
공개 int getAttrCount ()
repeated .tensorflow.ApiDef.Attr attr = 6;
공개 목록<? ApiDef.AttrOrBuilder > getAttrOrBuilderList () 를 확장합니다.
repeated .tensorflow.ApiDef.Attr attr = 6;
공개 문자열 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;
공개 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;
공개 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;
공개 문자열 getDescription ()
Additional, longer human-readable description of what the Op does.
string description = 8;
공개 com.google.protobuf.ByteString getDescriptionBytes ()
Additional, longer human-readable description of what the Op does.
string description = 8;
공개 문자열 getDescriptionPrefix ()
Modify an existing/inherited description by adding text to the beginning or end.
string description_prefix = 9;
공개 com.google.protobuf.ByteString getDescriptionPrefixBytes ()
Modify an existing/inherited description by adding text to the beginning or end.
string description_prefix = 9;
공개 문자열 getDescriptionSuffix ()
string description_suffix = 10;
공개 com.google.protobuf.ByteString getDescriptionSuffixBytes ()
string description_suffix = 10;
공개 정적 최종 com.google.protobuf.Descriptors.Descriptor getDescriptor ()
공개 int getEndpointCount ()
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.
string graph_op_name = 1;
공개 com.google.protobuf.ByteString getGraphOpNameBytes ()
Name of the op (in the OpDef) to specify the API for.
string graph_op_name = 1;
공개 int getInArgCount ()
repeated .tensorflow.ApiDef.Arg in_arg = 4;
공개 목록<? ApiDef.ArgOrBuilder > getInArgOrBuilderList () 를 확장합니다.
repeated .tensorflow.ApiDef.Arg in_arg = 4;
공개 int getOutArgCount ()
repeated .tensorflow.ApiDef.Arg out_arg = 5;
공개 목록<? ApiDef.ArgOrBuilder > getOutArgOrBuilderList ()를 확장합니다.
repeated .tensorflow.ApiDef.Arg out_arg = 5;
공공의 getParserForType ()
공개 int getSerializedSize ()
공개 문자열 getSummary ()
One-line human-readable description of what the Op does.
string summary = 7;
공개 com.google.protobuf.ByteString getSummaryBytes ()
One-line human-readable description of what the Op does.
string summary = 7;
공개 최종 com.google.protobuf.UnknownFieldSet getUnknownFields ()
공개 int getVisibilityValue ()
.tensorflow.ApiDef.Visibility visibility = 2;
공개 int hashCode ()
공개 최종 부울 isInitialized ()
공개 정적 ApiDef parseDelimitedFrom (InputStream 입력, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
던지기
IO예외 |
---|
공개 정적 ApiDef 구문 분석 (ByteBuffer 데이터, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
던지기
잘못된프로토콜버퍼예외 |
---|
공개 정적 ApiDef parsFrom (byte[] 데이터, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
던지기
잘못된프로토콜버퍼예외 |
---|
공개 정적 ApiDef ParseFrom (com.google.protobuf.CodedInputStream 입력, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
던지기
IO예외 |
---|
공개 정적 ApiDef 구문 분석 (InputStream 입력, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
던지기
IO예외 |
---|
공개 정적 ApiDef ParseFrom (com.google.protobuf.ByteString 데이터, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
던지기
잘못된프로토콜버퍼예외 |
---|
공개 정적 파서 ()
공개 무효 writeTo (com.google.protobuf.CodedOutputStream 출력)
던지기
IO예외 |
---|