Skip to content
Discussion options

You must be logged in to vote

You can simply add the edge_weight to your data object, e.g.:

data['user', 'writes', 'tweet'].edge_weight = edge_weight

Note that HGTConv doesn't support edge weights, so you would need to use a different layer in this case. For example, you can construct a heterogeneous layer via HeteroConv by making use of GNN layers in PyG that support edge weights.

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