Skip to content

Commit

Permalink
Update conv.jl: show
Browse files Browse the repository at this point in the history
  • Loading branch information
rbSparky authored Sep 15, 2024
1 parent bbbb07c commit 70f16d0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion GNNLux/src/layers/conv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -720,4 +720,11 @@ function (l::NNConv)(g, x, e, ps, st)
y = GNNlib.nn_conv(m, g, x, e)
stnew = _getstate(nn)
return y, stnew
end
end

function Base.show(io::IO, l::NNConv)
print(io, "NNConv($(l.nn)")
l.σ == identity || print(io, ", ", l.σ)
l.use_bias || print(io, ", use_bias=false")
print(io, ")")
end

0 comments on commit 70f16d0

Please sign in to comment.