Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rbSparky committed Aug 8, 2024
1 parent bd2c335 commit 5c0c5a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions GNNLux/src/layers/conv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -637,8 +637,9 @@ end
aggr::A
end

# 'mean' not defined
#MEGNetConv(ϕe, ϕv; aggr = mean) = MEGNetConv(ϕe, ϕv, aggr)
function MEGNetConv(in_dims::Int, out_dims::Int, ϕe::TE, ϕv::TV; aggr::A = mean) where {TE, TV, A}
return MEGNetConv{TE, TV, A}(in_dims, out_dims, ϕe, ϕv, aggr)
end

function MEGNetConv(ch::Pair{Int, Int}; aggr = mean)
nin, nout = ch
Expand All @@ -648,7 +649,7 @@ function MEGNetConv(ch::Pair{Int, Int}; aggr = mean)
ϕv = Chain(Dense(nin + nout, nout, relu),
Dense(nout, nout))

return MEGNetConv(nin, nout, ϕe, ϕv; aggr)
return MEGNetConv(nin, nout, ϕe, ϕv, aggr=aggr)
end

function (l::MEGNetConv)(g, x, e, ps, st)
Expand Down

0 comments on commit 5c0c5a8

Please sign in to comment.