Skip to content

Commit 535bfc8

Browse files
authored
Merge pull request #338 from FluxML/test
Fix tests
2 parents 5fac9f7 + 82a1c74 commit 535bfc8

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

test/layers/graphlayers.jl

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,8 @@
2222

2323
model2 = WithGraph(fg, model)
2424

25-
@test model2[1].graph T[1/3 1/3 0.0 1/3;
26-
1/3 1/3 1/3 0.0;
27-
0.0 1/3 1/3 1/3;
28-
1/3 0.0 1/3 1/3]
29-
@test model2[2].graph T[0.2 0.2 0.0 0.6;
30-
0.2 0.2 0.6 0.0;
31-
0.0 0.6 0.2 0.2;
32-
0.6 0.0 0.2 0.2]
25+
@test model2[1].graph == GraphSignals.normalized_adjacency_matrix(fg, T; selfloop=true)
26+
@test model2[2].graph == GraphSignals.normalized_adjacency_matrix(fg2, T; selfloop=true)
3327
@test model2[3] isa Dense
3428
end
3529

0 commit comments

Comments
 (0)