Solved by vdw in post #4 
              
              
                Well you can first split your original tensor in half, reshape both halves and concatenate them again: 
# initilizing list 
X = list(range(0, 24))

# converting list to array 
X = np.array(X) 

# converting array to tensor
X = torch.from_numpy(X)

# split tensor in half
X_split = torch.split(X, int(…