diff --git a/GNNLux/src/layers/conv.jl b/GNNLux/src/layers/conv.jl index 1f14c3582..009c64cc0 100644 --- a/GNNLux/src/layers/conv.jl +++ b/GNNLux/src/layers/conv.jl @@ -667,20 +667,8 @@ function (l::GCNConv)(g, x, edge_weight, ps, st) return y, stnew end -function LuxCore.initialparameters(rng::AbstractRNG, l::NNConv) - weight = l.init_weight(rng, l.out_dims, l.in_dims) - if l.use_bias - bias = l.init_bias(rng, l.out_dims) - return (; weight, bias) - else - return (; weight) - end -end - -LuxCore.parameterlength(l::NNConv) = l.use_bias ? l.in_dims * l.out_dims + l.out_dims : l.in_dims * l.out_dims # nn wont affect this right? LuxCore.outputsize(d::NNConv) = (d.out_dims,) - function Base.show(io::IO, l::GINConv) print(io, "NNConv($(l.nn)") print(io, ", $(l.ϵ)") @@ -689,4 +677,4 @@ function Base.show(io::IO, l::GINConv) l.add_self_loops || print(io, ", add_self_loops=false") !l.use_edge_weight || print(io, ", use_edge_weight=true") print(io, ")") -end \ No newline at end of file +end