Hi, I’m trying to repeat tensors along the batch dimension.
We have a batch (8 x 3 x 224 x 224) where its size is 8
and let’s say it is called as [a, b, c, d, e, f, g, h], and each alphabet denotes an example in the batch.
Then, I want to repeat each of them three times, resulting in EXACTLY FOLLOWING ORDER [a, a, a, b, b, b, c, c, c, d, d, d, …, h, h, h]. Same elements should come in succession.
Thus, the final dimension is (24 x 3 x 224 x 224).
How can I make it possible?