Creates a new tensor array.
Creates a new tensor array.
Size of the tensor array.
Data type of the elements in the tensor array.
Boolean value indicating whether writes to the tensor array are allowed to grow in size. By default, this is not allowed.
Boolean value indicating whether to clear the tensors in the array, after being
read. This disables multiple read semantics but allows early release of memory.
Defaults to true
.
Name to use for the tensor array. Overrides the name used for the temporary tensor array resource. If not provided or if an empty string is provided, then the name of the created tensor array op is used, which is guaranteed to be unique.
Boolean value indicating whether shape inference is enabled. If true
, all
elements must have the same shape.
Expected shape of the elements in the tensor array, if known. If this shape is not fully defined, then gathering zero-sized tensor array elements will cause an error.
Boolean value indicating whether to place the tensor array on the same device as
the tensor used on its first write call (write operations include write
,
unstack
, and split
). If false
, the tensor array will be placed on the device
determined by the op creation context available during its initialization.
Name for the created tensor array ops.
Created tensor array.