Skip to content

Commit 2eddfc8

Browse files
chebconv
1 parent efefbe0 commit 2eddfc8

File tree

1 file changed

+5
-3
lines changed
  • GraphNeuralNetworks/test/layers

1 file changed

+5
-3
lines changed

GraphNeuralNetworks/test/layers/conv.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,11 @@ end
102102
l = ChebConv(D_IN => D_OUT, k)
103103
for g in TEST_GRAPHS
104104
has_isolated_nodes(g) && continue
105-
g.graph isa AbstractSparseMatrix && continue
106-
@test size(l(g, g.x)) == (D_OUT, g.num_nodes)
107-
test_gradients(l, g, g.x, rtol = RTOL_LOW, test_gpu = true, compare_finite_diff = false)
105+
broken = get_graph_type(g) == :sparse || gpu_device() isa AMDGPUDevice
106+
@test size(l(g, g.x)) == (D_OUT, g.num_nodes) broken=broken
107+
@test test_gradients(
108+
l, g, g.x, rtol = RTOL_LOW, test_gpu = true, compare_finite_diff = false
109+
) broken=broken
108110
end
109111
end
110112

0 commit comments

Comments
 (0)