could you try leaving the “inp, target” from MusicDataSet class to a numpy array. I think the problem that you are trying a convert a list of tensor to a tensor. Or you could call torch.stack(dataset), torch.stack(target).