Splits a tensor into a list.
tf.raw_ops.TensorListSplit(
tensor, element_shape, lengths, name=None
)
list[i] corresponds to lengths[i] tensors from the input tensor. The tensor must have rank at least 1 and contain exactly sum(lengths) elements.
tensor: The input tensor. element_shape: A shape compatible with that of elements in the tensor. lengths: Vector of sizes of the 0th dimension of tensors in the list. output_handle: The list.
Args |
|---|
tensor
Tensor.
element_shape
Tensor. Must be one of the following types: int32, int64.
lengths
Tensor of type int64.
name
Returns | |
|---|---|
A Tensor of type variant.
|