Skip to content
Discussion options

You must be logged in to vote

Dataloader expects a Dataset object not a Data object that's why you are getting an error. Dataloader merges multiple Data objects in a Dataset and returns a minibatch. The idea here is if you have multiple graphs or Data objects in a Dataset this loader returns a subset of graphs as a single Data object in a minibatch.

On the other hand if your goal is to sample a set of nodes for training/testing from a single graph check out NeigghborLoader.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@lambdaofgod
Comment options

@wsad1
Comment options

Answer selected by lambdaofgod
Comment options

You must be logged in to vote
0 replies
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