TensorArrayConcat

public final class TensorArrayConcat

Concat the elements from the TensorArray into value `value`.

Takes `T` elements of shapes

(n0 x d0 x d1 x ...), (n1 x d0 x d1 x ...), ..., (n(T-1) x d0 x d1 x ...)
   
and concatenates them into a Tensor of shape:

(n0 + n1 + ... + n(T-1) x d0 x d1 x ...)
All elements must have the same shape (excepting the first dimension).

Nested Classes

class TensorArrayConcat.Options Optional attributes for TensorArrayConcat  

Constants

String OP_NAME The name of this op, as known by TensorFlow core engine

Public Methods

static <T extends TType> TensorArrayConcat<T>
create(Scope scope, Operand<?> handle, Operand<TFloat32> flowIn, Class<T> dtype, Options... options)
Factory method to create a class wrapping a new TensorArrayConcat operation.
static TensorArrayConcat.Options
elementShapeExcept0(Shape elementShapeExcept0)
Output<TInt64>
lengths()
A vector of the row sizes of the original T elements in the value output.
Output<T>
value()
All of the elements in the TensorArray, concatenated along the first axis.

Inherited Methods

org.tensorflow.op.RawOp
final boolean
equals(Object obj)
final int
Operation
op()
Return this unit of computation as a single 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()
org.tensorflow.op.Op
abstract ExecutionEnvironment
env()
Return the execution environment this op was created in.
abstract Operation
op()
Return this unit of computation as a single Operation.

Constants

public static final String OP_NAME

The name of this op, as known by TensorFlow core engine

Constant Value: "TensorArrayConcatV3"

Public Methods

public static TensorArrayConcat<T> create (Scope scope, Operand<?> handle, Operand<TFloat32> flowIn, Class<T> dtype, Options... options)

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

Parameters
scope current scope
handle The handle to a TensorArray.
flowIn A float scalar that enforces proper chaining of operations.
dtype The type of the elem that is returned.
options carries optional attributes values
Returns
  • a new instance of TensorArrayConcat

public static TensorArrayConcat.Options elementShapeExcept0 (Shape elementShapeExcept0)

Parameters
elementShapeExcept0 The expected shape of an element, if known, excluding the first dimension. Used to validate the shapes of TensorArray elements. If this shape is not fully specified, concatenating zero-size TensorArrays is an error.

public Output<TInt64> lengths ()

A vector of the row sizes of the original T elements in the value output. In the example above, this would be the values: `(n1, n2, ..., n(T-1))`.

public Output<T> value ()

All of the elements in the TensorArray, concatenated along the first axis.