ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more


Stacks all tensors in the list.

Requires that all tensors have the same shape.

input_handle: the input list tensor: the gathered result num_elements: optional. If not -1, the number of elements in the list.

input_handle A Tensor of type variant.
element_shape A Tensor of type int32.
element_dtype A tf.DType.
num_elements An optional int. Defaults to -1.
name A name for the operation (optional).

A Tensor of type element_dtype.