Hello,
I am trying to find an efficient solution for the following problem and it seems I cannot get it right.
I have a tensor like:
tensor([[[ 1,  2,  3],
[ 4,  5,  6],
[ 7,  8,  9],
[10, 11, 12]],
[[13, 14, 15],
[16, 17, 18],
[19, 20, 21],
[22, 23, 24]]])
I want to turn this into:
tensor([[ 1,  2,  3, 13, 14, 15],
[ 4,  5,  6, 16, 17, 18],
[ 7,  8,  9, 19, 20, 21],
[10, 11, 12, 22, 23, 24]])
In a computationally efficient fashion because this happens intensively in my application.
Could you help me please?
Thanks!
PS: I have this solution so far but it is looks suboptimal:
torch.cat(tuple(t[:]),1)