Skip to content
Discussion options

You must be logged in to vote

You can use traditional indexing/index_select to select specific node feature vectors, e.g.

node_idx = torch.tensor([0, 10, 15])  # Select features of node 0, 10 and 15
out = x[node_idx]

Does that answer your question?

Replies: 1 comment 3 replies

Comment options

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

@rusty1s
Comment options

@oliverluo1993
Comment options

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