tf.OptionalSpec

Type specification for tf.experimental.Optional.

Inherits From: TypeSpec

For instance, tf.OptionalSpec can be used to define a tf.function that takes tf.experimental.Optional as an input argument: