Skip to content

Commit

Permalink
Update conv.jl: Back to old commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rbSparky authored Aug 19, 2024
1 parent ff2670c commit ce2c1b6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions GNNlib/src/layers/conv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -355,18 +355,18 @@ end

####################### MegNetConv ######################################

function megnet_conv(l, g::GNNGraph, x::AbstractMatrix, e::Union{AbstractMatrix, Nothing}=nothing)
function megnet_conv(l, g::GNNGraph, x::AbstractMatrix, e::AbstractMatrix)
check_num_nodes(g, x)
ē = apply_edges(g, xi = x, xj = x, e = e) do xi, xj, e

= apply_edges(g, xi = x, xj = x, e = e) do xi, xj, e
l.ϕe(vcat(xi, xj, e))
end

xᵉ = aggregate_neighbors(g, l.aggr, ē)
xᵉ = aggregate_neighbors(g, l.aggr, )

= l.ϕv(vcat(x, xᵉ))

return x̄, ē
return x̄,
end

####################### GMMConv ######################################
Expand Down Expand Up @@ -721,4 +721,4 @@ function d_conv(l, g::GNNGraph, x::AbstractMatrix)
T1_out = T2_out
end
return h .+ l.bias
end
end

0 comments on commit ce2c1b6

Please sign in to comment.