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

org.tensorflow.op.PrimitiveOp
final boolean
equals(Object obj)
final int
Operation
op()
Returns the underlying Operation
final String
boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
void
forEach(Consumer<? super T> arg0)
abstract Iterator<Operand<Object>>
iterator()
Spliterator<Operand<Object>>
spliterator()

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 ()