CompositeTensorVariantToComponents

public final class CompositeTensorVariantToComponents

Decodes a `variant` scalar Tensor into an `ExtensionType` value.

Returns the Tensor components encoded in a `CompositeTensorVariant`.

Raises an error if `type_spec_proto` doesn't match the TypeSpec in `encoded`.

Public Methods

List<Output<?>>
components()
The component tensors for the ExtensionType value in `encoded`.
static CompositeTensorVariantToComponents
create(Scope scope, Operand<?> encoded, String metadata, List<Class<?>> Tcomponents)
Factory method to create a class wrapping a new CompositeTensorVariantToComponents operation.
Iterator<Operand<Object>>

Inherited Methods

Public Methods

public List<Output<?>> components ()

The component tensors for the ExtensionType value in `encoded`.

public static CompositeTensorVariantToComponents create (Scope scope, Operand<?> encoded, String metadata, List<Class<?>> Tcomponents)

Factory method to create a class wrapping a new CompositeTensorVariantToComponents operation.

Parameters
scope current scope
encoded A scalar `variant` Tensor containing an encoded ExtensionType value.
metadata 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 Expected dtypes for components.
Returns
  • a new instance of CompositeTensorVariantToComponents

public Iterator<Operand<Object>> iterator ()