Replies: 1 comment 5 replies
-
This will look something as follows: class MyDataset(InMemoryDataset):
def __init__(self, root, transform):
super().__init__(root, transform)
self.data, self.slices = torch.load(self.processed_paths[0])
@property
def processed_file_names(self) -> List[str]:
return ['data.pt']
def process(self):
data_list = []
for _ in range(1000):
# Create the data objects just like you did above
data_list.append(data)
torch.save(self.collate(data_list), self.processed_paths[0]) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following graph:
What I want to do is follow the same data generation process as the first few lines of the code, but create not just 1, but 1000 graphs. In essence something like the TUDataset which has 600 graphs. I am not sure how to go about this.
Any suugestions?
Beta Was this translation helpful? Give feedback.
All reactions