Skip to content

Commit

Permalink
Update conv_tests.jl: Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rbSparky authored Aug 19, 2024
1 parent 62b3405 commit ff2670c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions GNNLux/test/layers/conv_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,16 @@
end
"""


@testset "MEGNetConv" begin
l = MEGNetConv(in_dims => out_dims)

ps = LuxCore.initialparameters(rng, l)
st = LuxCore.initialstates(rng, l)

(x_new, e_new), st_new = l(g, x, ps, st)


e = randn(rng, Float32, in_dims, g.num_edges)
(x_new, e_new), st_new = l(g, x, e, ps, st)

@test size(x_new) == (out_dims, g.num_nodes)
@test size(e_new) == (out_dims, g.num_edges)
end
Expand Down

0 comments on commit ff2670c

Please sign in to comment.