Skip to content
Discussion options

You must be logged in to vote

There exists a few layers in PyG that support this kind of structure (see the "Static Graph" column here. With it, you can do

x = ... # [batch_size, num_nodes, in_channels]
edge_index = ... # edges of a single graph

out = conv(x, edge_index)  # [batch_size, num_nodes, out_channels]

Replies: 1 comment 1 reply

Comment options

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

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