On this page
tf.raw_ops.CompositeTensorVariantToComponents
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 . |
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/raw_ops/CompositeTensorVariantToComponents