An array of Tensors of given size.
tf.raw_ops.TensorArrayV3(
size,
dtype,
element_shape=None,
dynamic_size=False,
clear_after_read=True,
identical_element_shapes=False,
tensor_array_name='',
name=None
)
Write data via Write and read via Read or Pack.
Args |
|---|
size
Tensor of type int32. The size of the array.
dtype
tf.DType. The type of the elements on the tensor_array.
element_shape
tf.TensorShape or list of ints. Defaults to None.
The expected shape of an element, if known. Used to
validate the shapes of TensorArray elements. If this shape is not
fully specified, gathering zero-size TensorArrays is an error.
dynamic_size
bool. Defaults to False.
A boolean that determines whether writes to the TensorArray
are allowed to grow the size. By default, this is not allowed.
clear_after_read
bool. Defaults to True.
If true (default), Tensors in the TensorArray are cleared
after being read. This disables multiple read semantics but allows early
release of memory.
identical_element_shapes
bool. Defaults to False.
If true (default is false), then all
elements in the TensorArray will be expected to have identical shapes.
This allows certain behaviors, like dynamically checking for
consistent shapes on write, and being able to fill in properly
shaped zero tensors on stack -- even if the element_shape attribute
is not fully defined.
tensor_array_name
string. Defaults to "".
Overrides the name used for the temporary tensor_array
resource. Default value is the name of the 'TensorArray' op (which
is guaranteed unique).
name
Returns | |
|---|---|
A tuple of Tensor objects (handle, flow).
|
|
handle
|
A Tensor of type resource.
|
flow
|
A Tensor of type float32.
|