this thread explains well the use of tf.repeat() as a tensorflow alternative to np.repeat(). one functionality which I was unable to figure out, in np.repeat(), a specific column/row/slice can be replicated by supplying the index. e.g.
import numpy as np
x = np.array([[1,2],[3,4]])
np.repeat(x, [1, 2], axis=0)
# Answer will be -> array([[1, 2],
# [3, 4],
# [3, 4]])
is there any tensorflow alternative to this functionality of np.repeat()?