Skip to content

Commit

Permalink
Update conv.jl: self loops
Browse files Browse the repository at this point in the history
  • Loading branch information
rbSparky authored Sep 30, 2024
1 parent fea71c9 commit be04df5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GNNLux/src/layers/conv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -929,11 +929,11 @@ function (l::TransformerConv)(g, x, e, ps, st)
BN2 = l.BN2 === nothing ? nothing :
StatefulLuxLayer{true}(l.BN2, ps.BN2, _getstate(st, :BN2))
m = (; W1, W2, W3, W4, W5, W6, FF, BN1, BN2, l.sqrt_out,
l.heads, l.concat, l.skip_connection)
l.heads, l.concat, l.skip_connection, l.add_self_loops)
return GNNlib.transformer_conv(m, g, x, e), st
end

function Base.show(io::IO, l::TransformerConv)
(in, ein), out = (l.in_dims, l.out_dims)
print(io, "TransformerConv(($in, $ein) => $out, heads=$(l.heads))")
end
end

0 comments on commit be04df5

Please sign in to comment.