tf.TensorArray.gather(indices, name=None)
Return selected values in the TensorArray as a packed Tensor.
All of selected values must have been written and their shapes must all match.
Args:
indices: A 1-D Tensor taking values in [0, max_value). If the TensorArray is not dynamic, max_value=size().
name: A name for the operation (optional).
Returns:
The in the TensorArray selected by indices, packed into one tensor.