Hello,
my goal is the following:
t = torch.tensor([1, 2, 3, 4])
# Every second element now in own tensor
expected = torch.tensor([[1, 3], [2, 4]])
assert expected == t
What operations do I have to perform to reshape the tensor, such that we use every second element as a new dimension.
With best regards,
Patrick