"Uncollate" a batch
#4874
-
Hi, I was wondering whether it is possible to somehow get a batch in "pytorch style" out of the batch that is yielded by torch_geometric.loader.DataLoader? ie. if I have Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
rusty1s
Jun 28, 2022
Replies: 1 comment 2 replies
-
If your points are all of the same size, simply reshaping is sufficient: x = x.view(batch_size, num_nodes, 3) Otherwise, take a look at |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
anticdimi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If your points are all of the same size, simply reshaping is sufficient:
Otherwise, take a look at
utils.to_dense_batch
, which will do the same with some padding logic.