Replies: 1 comment 2 replies
-
We provide support for batching along a new dimension via https://pytorch-geometric.readthedocs.io/en/latest/advanced/batching.html#batching-along-new-dimensions. Does this work for your use-case? However, note that we don't pad features by default. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
I was curious, does PyG offer an official dense-equivalent to its
DataLoader
class? In particular, does PyG offer a collate function that can take a list ofData
orHeteroData
objects and create aBatch
object from them? ThisBatch
object, instead of sparsely concatenating all graph features, would concatenate them along a newbatch_size
first dimension for the corresponding feature tensor. Moreover, each (sub)graph may have a different number of nodes, soDenseDataLoader
wouldn't seem to work for this use case.Beta Was this translation helpful? Give feedback.
All reactions