Skip to content
Discussion options

You must be logged in to vote

Is there a need to convert your list of data sets to a Dataset? The DataLoader just works fine on a list of data objects. If you still want to create a Dataset, you can do:

class MyDataset(InMemoryDataset):
    def __init__(self, data_list: List[Data]):
        super().__init__(None)
        self.data, self.slices = self.collate(data_list)

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@anthonysirico
Comment options

@anthonysirico
Comment options

@rusty1s
Comment options

Answer selected by anthonysirico
@anthonysirico
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants