-
Does PyG's NeighborLoader contains property or information for the original sampled nodes index for each batch? |
Beta Was this translation helpful? Give feedback.
Answered by
rusty1s
Nov 18, 2021
Replies: 1 comment 1 reply
-
You can maintain them by adding them to the original data.n_id = torch.arange(data.num_nodes)
loader = NeighborLoader(data, ...)
batch = next(iter(loader))
print(batch.n_id) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
GYHHAHA
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can maintain them by adding them to the original
data
object: