A value that can be accepted or returned by TensorFlow APIs. Accepted types for value include tf.Tensor, any value that can be converted to tf.Tensor using tf.convert_to_tensor, and any subclass of CompositeTensor (such as tf.RaggedTensor).
Returns
A TypeSpec that is compatible with value.
Raises
TypeError
If a TypeSpec cannot be built for value, because its type is not supported.