How to correctly set num_nodes for a PairData object? #3297
-
For a PairData object I get this warning:
For batching purposes, how do I correctly set the 'num_nodes' attribute? Just the sum of nodes of both graphs, or something else? Thanks a lot for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Thanks for reporting. PyG raises this warning as it fails to compute the Nonetheless, I fixed this issue in master, see #3298. This should avoid printing the warning for |
Beta Was this translation helpful? Give feedback.
-
Great, thanks a lot! |
Beta Was this translation helpful? Give feedback.
Thanks for reporting. PyG raises this warning as it fails to compute the
batch
vector, which you do not need in your case anyways. As such, you can ignore the warning as it will not do any harm in your case.Nonetheless, I fixed this issue in master, see #3298. This should avoid printing the warning for
PairData
in the first place.