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 .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2022-10-27 UTC.
[null,null,["Last updated 2022-10-27 UTC."],[],[]]