Returns the Tensor components encoded in a CompositeTensorVariant.
Raises an error if type_spec_proto doesn't match the TypeSpec
in encoded.
Args
encoded
A Tensor of type variant.
A scalar variant Tensor containing an encoded ExtensionType value.
metadata
A string.
String serialization for the TypeSpec. Must be compatible with the
TypeSpec contained in encoded. (Note: the encoding for the TypeSpec
may change in future versions of TensorFlow.)
Tcomponents
A list of tf.DTypes. Expected dtypes for components.