Data object in Pytorch geometric #5147
Replies: 3 comments 5 replies
-
You can use a
When you sample from this loader you will get a single graph that has an extra attribute Essentially this stores multiple graphs as a single graph that is not connected. |
Beta Was this translation helpful? Give feedback.
-
You can also look up the concept of |
Beta Was this translation helpful? Give feedback.
-
I used a If I use
Now, if I changed
I should get something like
Any advice? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to store two graphs in the PyTorch geometrics Data object?
e.g.
Data(x=[B, 1100], edge_index=[B, 2, 4400], edge_attr=[B, 4400, 35], y=[B, 2])
where
B=2
orB=1
In the official documentation, it has mentioned that the object should be as follows
Data(x=[1100], edge_index=[2, 4400], edge_attr=[4400, 35], y=[2])
as per documentation Data object is limited to hold/store single graph object.(from https://pytorch-geometric.readthedocs.io/en/latest/notes/introduction.html#data-handling-of-graphs)
Can someone clarify, I was trying to create a custom Dataloader.
Beta Was this translation helpful? Give feedback.
All reactions