Skip to content
Discussion options

You must be logged in to vote
from torch_scatter import scatter
num_nodes_per_example = scatter(torch.ones_like(data.batch), batch)

Replies: 2 comments 1 reply

Comment options

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

Answer selected by zcaicaros
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