Skip to content
Discussion options

You must be logged in to vote

Yes. Here is a simple example to build a dataset of multiple graphs:

from torch_geometric.data import InMemoryDataset

class MyDataset(InMemoryDataset):
    def __init__(self, data_list):
        super().__init__('my_root_path')
        self.data, self.slices = self.collate(data_list)

where data_list is a list of Data objects.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@lingxuan9
Comment options

@EdisonLeeeee
Comment options

Answer selected by lingxuan9
Comment options

You must be logged in to vote
5 replies
@rusty1s
Comment options

@lingxuan9
Comment options

@lingxuan9
Comment options

@rusty1s
Comment options

@lingxuan9
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