Decodes a variant
scalar Tensor into an ExtensionType
value.
tf.raw_ops.CompositeTensorVariantToComponents(
encoded, metadata, Tcomponents, name=None
)
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.
|
name
|
A name for the operation (optional). |
Returns | |
---|---|
A list of Tensor objects of type Tcomponents .
|