Skip to content
Discussion options

You must be logged in to vote

See here for a tutorial on how PyG handles mini-batches. In general, this scheme is applicable for any GNN layer integrated into PyG.

data_list = [Data(x=..., edge_index=...), Data(x=..., edge_index=...)]
loader = DataLoader(data_list, batch_size=32)

conv = GATv2Conv(...)

batch = next(iter(loader))
out = conv(batch.x, batch.edge_index)

Let me know if this resolves your issues:

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@AlbertoWang
Comment options

@rusty1s
Comment options

@AlbertoWang
Comment options

Answer selected by AlbertoWang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants