class NetDataset(Dataset):

    def __init__(self):
        xy = np.loadtxt('data_2d.txt', delimiter=';', dtype=np.float32)
        self.len = xy.shape[0]
        self.x_data = torch.from_numpy(xy[:, 0:-1])
        self.y_data = torch.from_numpy(xy[:, [-1]])

    def __getitem__(self, index):
        return self.x_data[index], self.y_data[index]

    def __len__(self):
        return self.len

self.x_data = torch.from_numpy(xy[:, 0:-1])
it gives me the following view [0.1 0.4 0.5 0.2 0.8 0.5]
How can i get this [[0.1 0.4 0.5][0.2 0.8 0.5]]?