Skip to content
Discussion options

You must be logged in to vote

That line you are referring to removes user defined collate functions, the dataloader instead uses a inbuilt collate function to collate graphs, refer to this line.

Now you could modify the "behaviour" of the default collate function by over-ridding the __inc__ and __cat_dim__ functions as described (here)[https://pytorch-geometric.readthedocs.io/en/latest/notes/batching.html#pairs-of-graphs]. Now if that too doesn't fit your use case you'll have to write a custom dataloader with your own collate function.

Replies: 2 comments 2 replies

Comment options

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

Answer selected by hatemhelal
Comment options

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

wsad1 Nov 4, 2021
Maintainer

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