Skip to content
Discussion options

You must be logged in to vote

A simple thing to do would be, to run message passing on all nodes and then only update nodes of one type.

x=... # node feature matrix.
node_type=... # 1-d tensor indicating the type of each node.
node_mask = node_type ==i
conv =GATConv()
x[node_mask] = conv(x,edge_index)[node_mask] # update nodes of type i.

Replies: 1 comment 1 reply

Comment options

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

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