Help! What does 'ptr' mean in 'from torch_geometric.loader import DataLoader' #4332
Replies: 1 comment 1 reply
-
Thanks for asking. I am very sorry that this is not documented at all (mostly since we only make use of it internally). The
In contrast, the
The |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, everyone.
I am just learning the Graph Neural Network. So, I import the class using 'from torch_geometric.loader import DataLoader' and I can see there is an attribute in the dict which named 'ptr'.
I have looked around the net and went after some useful blogs or references to know what it is. Does anyone please tell me what does that mean?
train_loader = DataLoader(train_dataset, batch_size=64)
One batch in the train_loader look like this:
DataBatch(x=[154, 1], edge_index=[2, 124], y=[64], batch=[154], ptr=[65])
Beta Was this translation helpful? Give feedback.
All reactions