Skip to content
Discussion options

You must be logged in to vote

You can maintain them by adding them to the original data object:

data.n_id = torch.arange(data.num_nodes)
loader = NeighborLoader(data, ...)
batch = next(iter(loader))
print(batch.n_id)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@GYHHAHA
Comment options

Answer selected by GYHHAHA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants