Skip to content

Commit

Permalink
Add GlobalPool test
Browse files Browse the repository at this point in the history
  • Loading branch information
aurorarossi committed Dec 23, 2024
1 parent a46a756 commit 9ca0835
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions GNNLux/test/layers/pool.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@testitem "Pooling" setup=[TestModuleLux] begin
using .TestModuleLux
@testset "GlobalPool" begin

rng = StableRNG(1234)
g = rand_graph(rng, 10, 40)
in_dims = 3
x = randn(rng, Float32, in_dims, 10)

@testset "GCNConv" begin
l = GlobalPool(mean)
test_lux_layer(rng, l, g, x, sizey=(in_dims,1))
end
end
end

0 comments on commit 9ca0835

Please sign in to comment.