Skip to content
Discussion options

You must be logged in to vote

This looks correct to me. Instead of using model.conv2.weight, I suggest to use a distinct parameter for this (like DGL is doing, too):

rel_weight = torch.nn.Parameter(torch.Tensor(num_relations, hidden_channels))
# Initialize `rel_weight`

score = torch.sum(s * rel_weight[edge_type] * o, dim=-1)

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
4 replies
@sbonner0
Comment options

@rusty1s

This comment was marked as off-topic.

@sbonner0
Comment options

@rusty1s
Comment options

Answer selected by sbonner0
Comment options

You must be logged in to vote
8 replies
@moritzblum
Comment options

@rusty1s
Comment options

@moritzblum
Comment options

@rusty1s
Comment options

@moritzblum
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants