tf.split Tutorials and Examples for Beginners


tf.split() can split a tensor into sub tensors.

split(
    value,
    num_or_size_splits,
    axis=0,
    num=None,
    name='split'
)

Note:

1.num_or_size_splits can be a integer or a list

2.notice the order of split on axis

In this page, we write some tutorials and examples on how to use tf.split() function in tensorflow, you can follow our tutorials and examples to learn how to split a tensor to sub tensors.