Here, my_dataloader is returning lists instead of torch tensor. please help.
tensor_x = torch.tensor(Mat)      #Mat is a 2d numpy array
my_dataset = TensorDataset(tensor_x)

my_dataloader = DataLoader(my_dataset,batch_size=8, shuffle = True)