Open jfulem opened 1 year ago
def getitem(self, idx) -> tuple[list[torch.Tensor], torch.Tensor]
Hi @jfulem, is this specification of dataset generally used? Will appreciate your suggestions very much.
Yes, getting this tuple[list[torch.Tensor], torch.Tensor]
as the dataset item is very common.
Marked as a new feature, are you willing to work on this @jfulem ?
@xuyxu, sure I can make the PR.
Hi, I'm using a Dataset class (extending torch.utils.data.Dataset) which contains this method:
Unfortunately, the
split_data_target
intorchensemble.utils.io
can't handle that.maybe this modification would be useful: