@ptrblck I am not sure what exactly you mean by target tensor. I have two dataset with different types of elements in it (dict and list). Do I need to check for the dataset and return tensor accordingly?