Skip to content

Commit

Permalink
change lux testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rbSparky committed Aug 19, 2024
1 parent cf7d30a commit 93affd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GNNLux/test/shared_testsetup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export test_lux_layer

function test_lux_layer(rng::AbstractRNG, l, g::GNNGraph, x;
outputsize=nothing, sizey=nothing, container=false,
atol=1.0f-2, rtol=1.0f-2)
atol=1.0f-2, rtol=1.0f-2, edge_weight=nothing)

if container
@test l isa GNNContainerLayer
Expand All @@ -27,7 +27,7 @@ function test_lux_layer(rng::AbstractRNG, l, g::GNNGraph, x;
@test LuxCore.parameterlength(l) == LuxCore.parameterlength(ps)
@test LuxCore.statelength(l) == LuxCore.statelength(st)

y, st′ = l(g, x, ps, st)
y, st′ = l(g, x, edge_weight, ps, st)
@test eltype(y) == eltype(x)
if outputsize !== nothing
@test LuxCore.outputsize(l) == outputsize
Expand Down

0 comments on commit 93affd2

Please sign in to comment.