Skip to content

Commit

Permalink
chebconv
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloLucibello committed Nov 30, 2024
1 parent efefbe0 commit 2eddfc8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions GraphNeuralNetworks/test/layers/conv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,11 @@ end
l = ChebConv(D_IN => D_OUT, k)
for g in TEST_GRAPHS
has_isolated_nodes(g) && continue
g.graph isa AbstractSparseMatrix && continue
@test size(l(g, g.x)) == (D_OUT, g.num_nodes)
test_gradients(l, g, g.x, rtol = RTOL_LOW, test_gpu = true, compare_finite_diff = false)
broken = get_graph_type(g) == :sparse || gpu_device() isa AMDGPUDevice
@test size(l(g, g.x)) == (D_OUT, g.num_nodes) broken=broken
@test test_gradients(
l, g, g.x, rtol = RTOL_LOW, test_gpu = true, compare_finite_diff = false
) broken=broken
end
end

Expand Down

0 comments on commit 2eddfc8

Please sign in to comment.