File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
function check_num_nodes (g:: GNNGraph , x:: AbstractArray )
2
- @assert g. num_nodes == size (x, ndims (x)) " Got $(size (x, ndims (x))) as last dimension size instead of num_edges =$(g. num_nodes) "
2
+ @assert g. num_nodes == size (x, ndims (x)) " Got $(size (x, ndims (x))) as last dimension size instead of num_nodes =$(g. num_nodes) "
3
3
return true
4
4
end
5
5
function check_num_nodes (g:: GNNGraph , x:: Union{Tuple,NamedTuple} )
Original file line number Diff line number Diff line change 138
138
end
139
139
140
140
@testset " aggregate_neighbors" begin
141
- m = rand (2 , g. num_edges- 1 )
142
- @test_throws AssertionError aggregate_neighbors (g, + , m)
141
+ @testset " sizecheck" begin
142
+ m = rand (2 , g. num_edges- 1 )
143
+ @test_throws AssertionError aggregate_neighbors (g, + , m)
143
144
144
- m = (a= rand (2 , g. num_edges+ 1 ), b= nothing )
145
- @test_throws AssertionError aggregate_neighbors (g, + , m)
145
+ m = (a= rand (2 , g. num_edges+ 1 ), b= nothing )
146
+ @test_throws AssertionError aggregate_neighbors (g, + , m)
147
+ end
146
148
end
147
149
end
You can’t perform that action at this time.
0 commit comments