final case class ApiDef(graphOpName: String = "", deprecationMessage: String = "", deprecationVersion: Int = 0, visibility: Visibility = ..., endpoint: Seq[Endpoint] = _root_.scala.Seq.empty, inArg: Seq[Arg] = _root_.scala.Seq.empty, outArg: Seq[Arg] = _root_.scala.Seq.empty, argOrder: Seq[String] = _root_.scala.Seq.empty, attr: Seq[Attr] = _root_.scala.Seq.empty, summary: String = "", description: String = "", descriptionPrefix: String = "", descriptionSuffix: String = "", unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[ApiDef] with Product with Serializable
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.
- graphOpName
Name of the op (in the OpDef) to specify the API for.
- deprecationMessage
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.
- deprecationVersion
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.
- argOrder
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.
- summary
One-line human-readable description of what the Op does.
- description
Additional, longer human-readable description of what the Op does.
- descriptionPrefix
Modify an existing/inherited description by adding text to the beginning or end.
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- ApiDef
- Updatable
- GeneratedMessage
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ApiDef(graphOpName: String = "", deprecationMessage: String = "", deprecationVersion: Int = 0, visibility: Visibility = ..., endpoint: Seq[Endpoint] = _root_.scala.Seq.empty, inArg: Seq[Arg] = _root_.scala.Seq.empty, outArg: Seq[Arg] = _root_.scala.Seq.empty, argOrder: Seq[String] = _root_.scala.Seq.empty, attr: Seq[Attr] = _root_.scala.Seq.empty, summary: String = "", description: String = "", descriptionPrefix: String = "", descriptionSuffix: String = "", unknownFields: UnknownFieldSet = ...)
- graphOpName
Name of the op (in the OpDef) to specify the API for.
- deprecationMessage
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.
- deprecationVersion
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.
- argOrder
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.
- summary
One-line human-readable description of what the Op does.
- description
Additional, longer human-readable description of what the Op does.
- descriptionPrefix
Modify an existing/inherited description by adding text to the beginning or end.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAllArgOrder(__vs: Iterable[String]): ApiDef
- def addAllAttr(__vs: Iterable[Attr]): ApiDef
- def addAllEndpoint(__vs: Iterable[Endpoint]): ApiDef
- def addAllInArg(__vs: Iterable[Arg]): ApiDef
- def addAllOutArg(__vs: Iterable[Arg]): ApiDef
- def addArgOrder(__vs: String*): ApiDef
- def addAttr(__vs: Attr*): ApiDef
- def addEndpoint(__vs: Endpoint*): ApiDef
- def addInArg(__vs: Arg*): ApiDef
- def addOutArg(__vs: Arg*): ApiDef
- val argOrder: Seq[String]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val attr: Seq[Attr]
- def clearArgOrder: ApiDef
- def clearAttr: ApiDef
- def clearEndpoint: ApiDef
- def clearInArg: ApiDef
- def clearOutArg: ApiDef
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
companion: ApiDef.type
- Definition Classes
- ApiDef → GeneratedMessage
- val deprecationMessage: String
- val deprecationVersion: Int
- val description: String
- val descriptionPrefix: String
- val descriptionSuffix: String
- def discardUnknownFields: ApiDef
- val endpoint: Seq[Endpoint]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getField(__field: FieldDescriptor): PValue
- Definition Classes
- ApiDef → GeneratedMessage
-
def
getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- ApiDef → GeneratedMessage
- val graphOpName: String
- val inArg: Seq[Arg]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val outArg: Seq[Arg]
-
def
serializedSize: Int
- Definition Classes
- ApiDef → GeneratedMessage
- val summary: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
toByteArray: Array[Byte]
- Definition Classes
- GeneratedMessage
-
final
def
toByteString: ByteString
- Definition Classes
- GeneratedMessage
-
final
def
toPMessage: PMessage
- Definition Classes
- GeneratedMessage
-
def
toProtoString: String
- Definition Classes
- ApiDef → GeneratedMessage
- val unknownFields: UnknownFieldSet
-
def
update(ms: (Lens[ApiDef, ApiDef]) ⇒ Mutation[ApiDef]*): ApiDef
- Definition Classes
- Updatable
- val visibility: Visibility
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def withArgOrder(__v: Seq[String]): ApiDef
- def withAttr(__v: Seq[Attr]): ApiDef
- def withDeprecationMessage(__v: String): ApiDef
- def withDeprecationVersion(__v: Int): ApiDef
- def withDescription(__v: String): ApiDef
- def withDescriptionPrefix(__v: String): ApiDef
- def withDescriptionSuffix(__v: String): ApiDef
- def withEndpoint(__v: Seq[Endpoint]): ApiDef
- def withGraphOpName(__v: String): ApiDef
- def withInArg(__v: Seq[Arg]): ApiDef
- def withOutArg(__v: Seq[Arg]): ApiDef
- def withSummary(__v: String): ApiDef
- def withUnknownFields(__v: UnknownFieldSet): ApiDef
- def withVisibility(__v: Visibility): ApiDef
-
final
def
writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
-
def
writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- ApiDef → GeneratedMessage
-
final
def
writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated