Skip to content

Commit

Permalink
mean
Browse files Browse the repository at this point in the history
  • Loading branch information
rbSparky committed Aug 8, 2024
1 parent 97cc769 commit bd2c335
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions GNNLux/src/GNNLux.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module GNNLux
using ConcreteStructs: @concrete
using NNlib: NNlib, sigmoid, relu, swish
using Statistics: mean
using LuxCore: LuxCore, AbstractExplicitLayer, AbstractExplicitContainerLayer, parameterlength, statelength, outputsize,
initialparameters, initialstates, parameterlength, statelength
using Lux: Lux, Chain, Dense, GRUCell,
Expand Down
2 changes: 1 addition & 1 deletion GNNLux/src/layers/conv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ end
# 'mean' not defined
#MEGNetConv(ϕe, ϕv; aggr = mean) = MEGNetConv(ϕe, ϕv, aggr)

function MEGNetConv(ch::Pair{Int, Int}; aggr)
function MEGNetConv(ch::Pair{Int, Int}; aggr = mean)
nin, nout = ch
ϕe = Chain(Dense(3nin, nout, relu),
Dense(nout, nout))
Expand Down

0 comments on commit bd2c335

Please sign in to comment.