How to use GATv2Conv with batch? #3814
-
I wonder to know, if it is possible to use BTW, is there any demo doc for these models or layers implemented in pyg? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
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: |
Beta Was this translation helpful? Give feedback.
See here for a tutorial on how PyG handles mini-batches. In general, this scheme is applicable for any GNN layer integrated into PyG.
Let me know if this resolves your issues: