Skip to content
Discussion options

You must be logged in to vote

Yes, this is correct. Please feel free to continue using the NeighborSampler if it fits you better. Overall, I don't like it that much because it leads to complicated GNN designs that are tightly coupled to a specific sampler.

The NeighborLoader samples neighbors equivalently, but will group them into a single edge_index matrix. Note that the edge_index is still directed though. As a result, the output is the same. The only difference is that NeighborLoader will be marginally slower since we are computing node embeddings for nodes we no longer need. This is a trade-off we make to obtain a cleaner GNN design.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
5 replies
@bwdeng20
Comment options

@rusty1s
Comment options

@bwdeng20
Comment options

@rusty1s
Comment options

@bwdeng20
Comment options

Answer selected by bwdeng20
Comment options

You must be logged in to vote
2 replies
@LukeLIN-web
Comment options

@Baizx98
Comment options

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