Hi,
I wanted to do an operation like this:

[ 1 2 3 4 5 6 7 8 9 ] --> [1 1 1 2 2 2 3 3 3 4 4 4 5 5 5 6 6 6 7 7 7 8 8 8 9 9 9]

How can I do this in torch?
lets, assume the given tensor, t = torch.tensor([ 1 2 3 4 5 6 7 8 9 ])