Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1s committed Oct 20, 2022
1 parent 1ff4fe5 commit 357be3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_geometric/nn/conv/han_conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def group(
num_edge_types = len(xs)
out = torch.stack(xs)
if out.numel() == 0:
return out.view(0, out.size(-1))
return out.view(0, out.size(-1)), None
attn_score = (q * torch.tanh(k_lin(out)).mean(1)).sum(-1)
attn = F.softmax(attn_score, dim=0)
out = torch.sum(attn.view(num_edge_types, 1, -1) * out, dim=0)
Expand Down

0 comments on commit 357be3b

Please sign in to comment.