Skip to content
Discussion options

You must be logged in to vote

Setting sizes=-1 will get you all neighbors of a node in NeighborSampler as explained here.

Now NeighborSampler is depreciated so its better to use NeighborLoader. In NeighborLoader although its not mentioned in the docs, and I am not entirely sure, it looks like you can get all neighbors by setting num_neigbhors=[-1], @rusty1s can confirm this.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@khaled-rahman
Comment options

@rusty1s
Comment options

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