tf repeat code example
Example: what is tf.repeat()
# An N -dimensional Tensor. repeats. An 1-D int Tensor. The number of repetitions for each element. repeats is broadcasted to fit the shape of the given axis.
repeat(['a', 'b', 'c'], repeats=[3, 0, 2], axis=0)
# Result
numpy=array([b'a', b'a', b'a', b'c', b'c'], dtype=object)>