Skip to content
Discussion options

You must be logged in to vote

You would still need to define these node types. Correctly, e.g., via

data["tweet"].num_nodes = ...

Afterwards, your GNN expects that there exists node features for these types. You can either add a dummy feature vector, e.g., torch.ones(num_nodes, 1) to these node types, or learn a feature representation for them via torch.nn.Embedding.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SHamda
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